Hello,
I am using VLC0.9.8a (vlc-0.9.8a-1.el5.rf.i386.rpm) with JVLC0.9.0 (jvlc-core-0.9.0-SNAPSHOT-20080727).
To launch my application, I added the following argument in VM: -Djna.library.path=/usr/lib
I use the following API of JVLC to synchronize a video and an audio with the method "MediaPlayer.setTime(...)":
org.videolan.jvlc.JVLC
org.videolan.jvlc.MediaDescriptor
org.videolan.jvlc.MediaPlayer
org.videolan.jvlc.event.MediaPlayerListener
I have some problems when my application is launched and read one only video...
My traces are:
[00000001] main libvlc debug: VLC media player - version 0.9.8a Grishenko - (c) 1996-2008 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--disable-rpath' '--disable-static' '--with-PIC' '--enable-release' '--enable-aa' '--enable-alsa' '--enable-arts' '--enable-caca' '--enable-cddax' '--enable-dirac' '--enable-dvbpsi' '--enable-dvdread' '--enable-esd' '--enable-faad' '--enable-fbosd' '--enable-ffmpeg' '--with-ffmpeg-tree=ffmpeg-20080225' '--with-ffmpeg-a52' '--with-ffmpeg-faac' '--with-ffmpeg-mp3lame' '--enable-libamr-nb' '--enable-libamr-wb' '--with-ffmpeg-ogg' '--with-ffmpeg-theora' '--with-ffmpeg-vorbis' '--with--ffmpeg-zlib' '--enable-flac' '--enable-galaktos' '--enable-gnomevfs' '--enable-lirc' '--enable-live555' '--with-live555-tree=/dar/build/vlc-0.9.8a/live' '--enable-loader' '--enable-musicbrainz' '--enable-ncurses' '--enable-opencv' '--enable-pulse' '--enable-pvr' '--enable-real' '--enable-realrtsp' '--enable-shout' '--enable-snapshot' '--enable-svg' '--enable-svgalib' '--enable-switcher' '--enable-twolame' '--enable-upnp' '--enable-v4l' '--enable-xosd' '--enable-xvmc' 'build_alias=i686-redhat-linux-gnu' 'host_alias=i686-redhat-linux-gnu' 'target_alias=i386-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables' 'LDFLAGS=-L/usr/X11R6/lib' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables' 'PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig'
[00000001] main libvlc debug: translation test: code is "C"
[00000001] main libvlc debug: checking builtin modules
[00000001] main libvlc debug: checking plugin modules
[00000001] main libvlc debug: loading plugins cache file /home/pfs/.cache/vlc/plugins-04041e.dat
[00000001] main libvlc debug: recursively browsing `/usr/lib/vlc'
[00000001] main libvlc warning: cannot load module `/usr/lib/vlc/video_filter/libswscale_plugin.so' (/usr/lib/vlc/video_filter/libswscale_plugin.so: undefined symbol: sws_freeFilter)
[00000001] main libvlc debug: module bank initialized, found 288 modules
[00000001] main libvlc debug: opening config file (/home/pfs/.config/vlc/vlcrc)
[00000001] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main libvlc debug: looking for memcpy module: 3 candidates
[00000001] main libvlc debug: using memcpy module "memcpymmxext"
[00000383] main interaction debug: thread 3033717648 (Interaction control) created at priority 0 (interface/interaction.c:382)
[00000385] main input debug: Creating an input for 'Media Library'
[00000383] main interaction debug: thread started
[00000385] main input debug: Input is a meta file: disabling unneeded options
[00000385] main input debug: `file/xspf-open:///home/pfs/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/pfs/.local/share/vlc/ml.xspf'
[00000385] main input debug: creating access 'file' path='/home/pfs/.local/share/vlc/ml.xspf'
[00000386] main access debug: looking for access module: 3 candidates
[00000386] access_file access debug: opening file `/home/pfs/.local/share/vlc/ml.xspf'
[00000386] main access debug: using access module "access_file"
[00000386] main access debug: TIMER module_Need() : 2.145 ms - Total 2.145 ms / 1 intvls (Avg 2.145 ms)
[00000391] main stream debug: Using AStream*Stream
[00000391] main stream debug: pre-buffering...
[00000391] main stream debug: received first data for our buffer
[00000385] main input debug: creating demux: access='file' demux='xspf-open' path='/home/pfs/.local/share/vlc/ml.xspf'
[00000392] main demux debug: looking for demux module: 1 candidate
[00000392] playlist demux debug: using XSPF playlist reader
[00000392] main demux debug: using demux module "playlist"
[00000392] main demux debug: TIMER module_Need() : 0.891 ms - Total 0.891 ms / 1 intvls (Avg 0.891 ms)
[00000385] main input debug: `file/xspf-open:///home/pfs/.local/share/vlc/ml.xspf' successfully opened
[00000407] main xml debug: looking for xml module: 2 candidates
[00000407] main xml debug: using xml module "xml"
[00000407] main xml debug: TIMER module_Need() : 1.328 ms - Total 1.328 ms / 1 intvls (Avg 1.328 ms)
[00000392] playlist demux debug: parsed 0 tracks successfully
[00000407] main xml debug: removing module "xml"
[00000385] main input debug: EOF reached
[00000385] main input debug: control type=1
[00000392] main demux debug: removing module "playlist"
[00000386] main access debug: removing module "access_file"
[00000385] main input debug: TIMER input launching for 'Media Library' : 8.579 ms - Total 8.579 ms / 1 intvls (Avg 8.579 ms)
[00000409] main preparser debug: waiting for thread initialization
[00000409] main preparser debug: thread started
[00000409] main preparser debug: thread 3023215504 (preparser) created at priority 0 (playlist/thread.c:79)
[00000410] main fetcher debug: waiting for thread initialization
[00000410] main fetcher debug: thread started
[00000410] main fetcher debug: thread 3009158032 (fetcher) created at priority 0 (playlist/thread.c:108)
[00000384] main playlist debug: waiting for thread initialization
[00000384] main playlist debug: thread started
[00000384] main playlist debug: rebuilding array of current - root Playlist
[00000384] main playlist debug: rebuild done - 0 items, index -1
[00000384] main playlist debug: thread 2998668176 (playlist) created at priority 0 (playlist/thread.c:117)
[00000411] main interface debug: looking for interface module: 1 candidate
[00000411] main interface debug: using interface module "hotkeys"
[00000411] main interface debug: TIMER module_Need() : 0.589 ms - Total 0.589 ms / 1 intvls (Avg 0.589 ms)
[00000411] main interface debug: thread 2988178320 (interface) created at priority 0 (interface/interface.c:168)
[00000413] main interface debug: looking for interface module: 1 candidate
[00000411] main interface debug: thread started
[00000413] inhibit interface error: Failed to connect to the D-Bus session daemon: Failed to execute dbus-launch to autolaunch D-Bus session
[00000413] main interface warning: no interface module matching "inhibit,none" could be loaded
[00000413] main interface debug: TIMER module_Need() : 8.001 ms - Total 8.001 ms / 1 intvls (Avg 8.001 ms)
[00000413] main interface error: no suitable interface module
[00000001] main libvlc error: interface "inhibit,none" initialization failed
[00000415] main interface debug: looking for interface module: 1 candidate
[00000415] main interface debug: using interface module "screensaver"
[00000415] main interface debug: TIMER module_Need() : 1.222 ms - Total 1.222 ms / 1 intvls (Avg 1.222 ms)
[00000415] main interface debug: thread 2977688464 (interface) created at priority 0 (interface/interface.c:168)
[00000415] main interface debug: thread started
[00000415] screensaver interface warning: failed to connect to the D-BUS daemon: Failed to execute dbus-launch to autolaunch D-Bus session
[00000441] main interface warning: no interface module matching "inhibit,none" could be loaded
[00000441] main interface debug: TIMER module_Need() : 7.107 ms - Total 7.107 ms / 1 intvls (Avg 7.107 ms)
[00000441] main interface error: no suitable interface module
[00000430] main libvlc error: interface "inhibit,none" initialization failed
[00000442] main interface debug: looking for interface module: 1 candidate
[00000442] main interface debug: using interface module "screensaver"
[00000442] main interface debug: TIMER module_Need() : 0.840 ms - Total 0.840 ms / 1 intvls (Avg 0.840 ms)
[00000442] main interface debug: thread 2851810192 (interface) created at priority 0 (interface/interface.c:168)
[00000442] main interface debug: thread started
[00000442] screensaver interface warning: failed to connect to the D-BUS daemon: Failed to execute dbus-launch to autolaunch D-Bus session
jVLC.setVideoOutput(canvas)
*** LibVLC Exception not handled: No active input
Set a breakpoint in 'libvlc_exception_not_handled' to debug.
jVLC.setVideoOutput(canvas) done.
mediaPlayer.play()
[00000443] main input debug: Creating an input for 'NomDeSession-screen1-2009_01_29_14h39m14s-12.mpg'
[00000443] main input debug: waiting for thread initialization
[00000443] main input debug: thread started
[00000443] main input debug: `file:///tmp/video/NomDeSession-screen1-2009_01_29_14h39m14s-12.mpg' gives access `file' demux `' path `/tmp/video/NomDeSession-screen1-2009_01_29_14h39m14s-12.mpg'
[00000443] main input debug: creating demux: access='file' demux='' path='/tmp/video/NomDeSession-screen1-2009_01_29_14h39m14s-12.mpg'
[00000444] main demux debug: looking for access_demux module: 0 candidates
[00000444] main demux warning: no access_demux module matched "file"
[00000444] main demux debug: TIMER module_Need() : 0.341 ms - Total 0.341 ms / 1 intvls (Avg 0.341 ms)
[00000443] main input debug: creating access 'file' path='/tmp/video/NomDeSession-screen1-2009_01_29_14h39m14s-12.mpg'
[00000445] main access debug: looking for access module: 3 candidates
[00000445] access_file access debug: opening file `/tmp/video/NomDeSession-screen1-2009_01_29_14h39m14s-12.mpg'
[00000445] main access debug: using access module "access_file"
[00000445] main access debug: TIMER module_Need() : 0.761 ms - Total 0.761 ms / 1 intvls (Avg 0.761 ms)
[00000446] main stream debug: Using AStream*Stream
[00000446] main stream debug: pre-buffering...
[00000446] main stream debug: received first data for our buffer
[00000443] main input debug: thread 2832501648 (input) created at priority 10 (input/input.c:370)
mediaPlayer.play() done.
[00000443] main input debug: creating demux: access='file' demux='' path='/tmp/video/NomDeSession-screen1-2009_01_29_14h39m14s-12.mpg'
[00000447] main demux debug: looking for demux module: 51 candidates
for willPlay done.
mediaPlayer.setTime(time)
mediaPlayer.setTime(time) done.
mediaPlayer.setTime(position)
mediaPlayer.setTime(position) done.
jVLC.setVideoOutput(canvas)
*** LibVLC Exception not handled: No active input
Set a breakpoint in 'libvlc_exception_not_handled' to debug.
jVLC.setVideoOutput(canvas) done.
mediaPlayer.play()
[00000464] main input debug: Creating an input for 'NomDeSession-screen1-2009_01_29_14h39m14s-12.mpg'
[00000464] main input debug: waiting for thread initialization
[00000464] main input debug: thread started
[00000464] main input debug: `file:///tmp/video/NomDeSession-screen1-2009_01_29_14h39m14s-12.mpg' gives access `file' demux `' path `/tmp/video/NomDeSession-screen1-2009_01_29_14h39m14s-12.mpg'
[00000464] main input debug: creating demux: access='file' demux='' path='/tmp/video/NomDeSession-screen1-2009_01_29_14h39m14s-12.mpg'
[00000466] main demux debug: looking for access_demux module: 0 candidates
[00000466] main demux warning: no access_demux module matched "file"
[00000466] main demux debug: TIMER module_Need() : 0.413 ms - Total 0.413 ms / 1 intvls (Avg 0.413 ms)
[00000464] main input debug: creating access 'file' path='/tmp/video/NomDeSession-screen1-2009_01_29_14h39m14s-12.mpg'
[00000467] main access debug: looking for access module: 3 candidates
[00000467] access_file access debug: opening file `/tmp/video/NomDeSession-screen1-2009_01_29_14h39m14s-12.mpg'
[00000467] main access debug: using access module "access_file"
[00000467] main access debug: TIMER module_Need() : 0.975 ms - Total 0.975 ms / 1 intvls (Avg 0.975 ms)
[00000468] main stream debug: Using AStream*Stream
[00000468] main stream debug: pre-buffering...
[00000468] main stream debug: received first data for our buffer
[00000464] main input debug: creating demux: access='file' demux='' path='/tmp/video/NomDeSession-screen1-2009_01_29_14h39m14s-12.mpg'
[00000469] main demux debug: looking for demux module: 51 candidates
[00000464] main input debug: thread 2806225808 (input) created at priority 10 (input/input.c:370)
mediaPlayer.play() done.
for willPlay done.
mediaPlayer.setTime(time)
mediaPlayer.setTime(time) done.
mediaPlayer.setTime(position)
mediaPlayer.setTime(position) done.
24666 INFO PlayAction - L'action "Rejeu" est réalisée.
24667 DEBUG Utils - (Utils::sendConsoleMessage) Envoi du message : Le rejeu est lancé.
[00000447] main demux debug: using demux module "ps"
[00000447] main demux debug: TIMER module_Need() : 72.538 ms - Total 72.538 ms / 1 intvls (Avg 72.538 ms)
[00000469] main demux debug: using demux module "ps"
[00000469] main demux debug: TIMER module_Need() : 21.909 ms - Total 21.909 ms / 1 intvls (Avg 21.909 ms)
[00000443] main input debug: looking for a subtitle file in /tmp/video/
[00000443] main input debug: `file:///tmp/video/NomDeSession-screen1-2009_01_29_14h39m14s-12.mpg' successfully opened
[00000464] main input debug: looking for a subtitle file in /tmp/video/
[00000464] main input debug: `file:///tmp/video/NomDeSession-screen1-2009_01_29_14h39m14s-12.mpg' successfully opened
[00000447] ps demux warning: garbage at input, trying to resync...
[00000447] ps demux warning: found sync code
[00000447] ps demux debug: we found a length of: 10635622
[00000443] main input debug: control type=7
[00000443] main input debug: control type=1
[00000469] ps demux warning: garbage at input, trying to resync...
[00000469] ps demux warning: found sync code
[00000469] ps demux debug: we found a length of: 10635622
[00000464] main input debug: control type=7
[00000464] main input debug: control type=1
[00000443] main input debug: selecting program id=0
[00000497] main decoder debug: looking for decoder module: 33 candidates
[00000464] main input debug: selecting program id=0
[00000500] main decoder debug: looking for decoder module: 33 candidates
[00000497] main decoder debug: using decoder module "libmpeg2"
[00000497] main decoder debug: TIMER module_Need() : 25.924 ms - Total 25.924 ms / 1 intvls (Avg 25.924 ms)
[00000497] main decoder debug: thread 2779413392 (decoder) created at priority 0 (input/decoder.c:217)
[00000500] main decoder debug: using decoder module "libmpeg2"
[00000500] main decoder debug: TIMER module_Need() : 6.654 ms - Total 6.654 ms / 1 intvls (Avg 6.654 ms)
[00000500] main decoder debug: thread 2767698832 (decoder) created at priority 0 (input/decoder.c:217)
[00000497] main decoder debug: thread started
[00000500] main decoder debug: thread started
[00000497] libmpeg2 decoder debug: 1024x768 (display 1024,768), aspect 576000, sar 1:1, 23.977 fps
[00000500] libmpeg2 decoder debug: 1024x768 (display 1024,768), aspect 576000, sar 1:1, 23.977 fps
[00000497] main decoder debug: no usable vout present, spawning one
[00000500] main decoder debug: no usable vout present, spawning one
[00000504] main video output debug: window size: 1024x768
[00000504] main video output debug: looking for video output module: 10 candidates
[00000506] main video output debug: window size: 1024x768
[00000506] main video output debug: looking for video output module: 10 candidates
[00000504] xvideo video output debug: adaptor 0, port 582, format 0x32315659 (YV12) planar
[00000506] xvideo video output debug: adaptor 0, port 583, format 0x32315659 (YV12) planar
[00000504] xvideo video output debug: XShm video extension v1.1 (with pixmaps, opcode: 149)
[00000504] xvideo video output debug: Window manager supports NetWM
[00000504] xvideo video output debug: Window manager supports _NET_WM_STATE_FULLSCREEN
[00000504] xvideo video output debug: Window manager supports _NET_WM_STATE_ABOVE
[00000504] xvideo video output debug: Window manager supports _NET_WM_STATE_BELOW
[00000504] xvideo video output debug: Window manager supports _NET_WM_STATE_STAYS_ON_TOP
[00000504] main video output debug: using video output module "xvideo"
[00000504] main video output debug: TIMER module_Need() : 11.469 ms - Total 11.469 ms / 1 intvls (Avg 11.469 ms)
[00000504] main video output debug: waiting for thread initialization
[00000504] main video output debug: thread started
[00000506] xvideo video output debug: XShm video extension v1.1 (with pixmaps, opcode: 149)
[00000506] xvideo video output debug: Window manager supports NetWM
[00000506] xvideo video output debug: Window manager supports _NET_WM_STATE_FULLSCREEN
[00000506] xvideo video output debug: Window manager supports _NET_WM_STATE_ABOVE
[00000506] xvideo video output debug: Window manager supports _NET_WM_STATE_BELOW
[00000504] main video output debug: got 8 direct buffer(s)
[00000504] main video output debug: picture in 1024x768 (0,0,1024x768), chroma I420, ar 4:3, sar 1:1
[00000504] main video output debug: picture user 1024x768 (0,0,1024x768), chroma I420, ar 4:3, sar 1:1
[00000504] main video output debug: picture out 1024x768 (0,0,1024x768), chroma I420, ar 4:3, sar 1:1
[00000504] main video output debug: direct render, mapping render pictures 0-6 to system pictures 1-7
[00000504] main video output debug: thread 2756975504 (video output) created at priority 15 (video_output/video_output.c:502)
[00000506] xvideo video output debug: Window manager supports _NET_WM_STATE_STAYS_ON_TOP
[00000506] main video output debug: using video output module "xvideo"
[00000506] main video output debug: TIMER module_Need() : 15.798 ms - Total 15.798 ms / 1 intvls (Avg 15.798 ms)
[00000506] main video output debug: waiting for thread initialization
[00000506] main video output debug: thread started
[00000506] main video output debug: got 8 direct buffer(s)
[00000506] main video output debug: picture in 1024x768 (0,0,1024x768), chroma I420, ar 4:3, sar 1:1
[00000506] main video output debug: picture user 1024x768 (0,0,1024x768), chroma I420, ar 4:3, sar 1:1
[00000506] main video output debug: picture out 1024x768 (0,0,1024x768), chroma I420, ar 4:3, sar 1:1
[00000506] main video output debug: direct render, mapping render pictures 0-6 to system pictures 1-7
[00000506] main video output debug: thread 2737048464 (video output) created at priority 15 (video_output/video_output.c:502)
[00000511] main spu text debug: looking for text renderer module: 3 candidates
[00000511] freetype spu text error: failed to load font file /usr/share/fonts/truetype/freefont/FreeSerifBold.ttf
[00000514] main spu text debug: looking for text renderer module: 3 candidates
[00000514] freetype spu text error: failed to load font file /usr/share/fonts/truetype/freefont/FreeSerifBold.ttf
[00000514] main spu text debug: using text renderer module "svg"
[00000514] main spu text debug: TIMER module_Need() : 33.560 ms - Total 33.560 ms / 1 intvls (Avg 33.560 ms)
[00000511] main spu text debug: using text renderer module "svg"
[00000511] main spu text debug: TIMER module_Need() : 51.282 ms - Total 51.282 ms / 1 intvls (Avg 51.282 ms)
(process:3079): Pango-WARNING **: No builtin or dynamically
loaded modules were found. Pango will not work correctly.
This probably means there was an error in the creation of:
'/etc/pango/pango.modules'
You should create this file by running pango-querymodules.
#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xa1b995f3, pid=3079, tid=2756975504
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b19 mixed mode, sharing linux-x86)
# Problematic frame:
# C [libpangoft2-1.0.so.0+0x75f3]
#
# An error report file with more information is saved as:
# /product/DISTRIB/ENREG_REJEU/IHM/IHM_ENREG_REJEU_CONTROLE_PO/hs_err_pid3079.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
./launchIhm.sh: line 10: 3079 Aborted java -cp ${CP} -Dlog4j.configuration=${LOGGER_OPTION} -Djna.library.path=/usr/lib -Dmock=false -Xmx512m -Xms512m -jar ./lib/GALAXI_CORE.jar ${CONTAINER} ${EXPOSED}
Same execution, another problems:
#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xa1cf9b0c, pid=3426, tid=2756545424
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b19 mixed mode, sharing linux-x86)
# Problematic frame:
# C [libglib-2.0.so.0+0x41b0c]
#
# An error report file with more information is saved as:
# /product/DISTRIB/ENREG_REJEU/IHM/IHM_ENREG_REJEU_CONTROLE_PO/hs_err_pid3426.log
[00000501] main spu text debug: using text renderer module "svg"
[00000501] main spu text debug: TIMER module_Need() : 47.023 ms - Total 47.023 ms / 1 intvls (Avg 47.023 ms)
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
My sources (some parts):
JVLC jVLC = new JVLC();
MediaDescriptor mediaDescriptor = new MediaDescriptor(jvlc, "file://" + file.getAbsolutePath());
MediaPlayer mediaPlayer = mediaDescriptor.getMediaPlayer();
mediaPlayer.addListener(new InternalReplayerListener());;
if (canvas != null) {
jVLC.setVideoOutput(canvas);
}
// To play a video or an audio
if (mediaPlayer != null) {
mediaPlayer.play();
try {
for (; !mediaPlayer.willPlay(); Thread.sleep(100L)) {
System.out.println("Will Play : " + mediaPlayer.willPlay());
}
}
catch(InterruptedException ie) {
}
mediaPlayer.setTime(position);
}
// To pause a video or an audio
if (mediaPlayer != null) {
mediaPlayer.pause();
}
// To stop a video or an audio
if (mediaPlayer != null) {
MediaDescriptor mediaDescriptor = mediaPlayer.getMediaDescriptor();
mediaPlayer.stop();
mediaDescriptor.release();
mediaPlayer = null;
if (jVLC != null) {
jVLC.release();
jVLC = null;
}
}
Can you help me ?
Can you provide me a new version of JVLC?
Thanks.