JVLC+WINDOWS

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
zaiboot
New Cone
New Cone
Posts: 4
Joined: 14 Aug 2008 17:34

JVLC+WINDOWS

Postby zaiboot » 14 Aug 2008 17:54

Hi everyone.

Here is my question.
I am developing a java application, that plays mp3, avi, etc.....
So I choose jvlc, because is cross platform, so I am developing the app in netbeans plus windows, but the actual app will run in linux.

So I downloaded: http://trac.videolan.org/jvlc/wiki/download, and make this .bat:

Code: Select all

java -cp jvlc-core-0.9.0-SNAPSHOT-20080727.jar org.videolan.jvlc.example.VLCExample c:/temp/1.mp3
And this is the result:

Code: Select all

>java -cp jvlc-core-0.9.0-SNAPSHOT-20080727.jar org.videolan.jvlc.example.VLCExample c:/temp/1.mp3 == Starting VLCExample == Creating a JVLC instance with args: 0) c:/temp/1.mp3 [00000018] main interface error: no interface module matched "hotkeys,none" [00000018] main interface error: no suitable interface module [00000001] main private error: interface "hotkeys,none" initialization failed ... done. Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up func tion 'libvlc_media_new': No se encontr¾ el proceso especificado. at com.sun.jna.Function.<init>(Function.java:126) at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:219) at com.sun.jna.Library$Handler.invoke(Library.java:191) at com.sun.jna.Native$2.invoke(Native.java:577) at $Proxy0.libvlc_media_new(Unknown Source) at org.videolan.jvlc.MediaDescriptor.<init>(MediaDescriptor.java:49) at org.videolan.jvlc.example.VLCExample.main(VLCExample.java:32)
I have already copied the plugins directory.
Here is a screenshot of my jvlc lib path:
Image

Thank you for your help, in advance.
Edgar Madrigal Fallas.

zaiboot
New Cone
New Cone
Posts: 4
Joined: 14 Aug 2008 17:34

Re: JVLC+WINDOWS

Postby zaiboot » 15 Aug 2008 01:14

I am replying myself.
Just in case someone have the same error:
I made a change in the .bat file, and added two args to the player:

Code: Select all

java -cp jvlc-core-0.9.0-SNAPSHOT-20080727.jar org.videolan.jvlc.example.VLCExample c:/temp/1.mp3 -vvv "--plugin-path=plugins\\"
Now the error changes to:

Code: Select all

>java -cp jvlc-core-0.9.0-SNAPSHOT-20080727.jar org.videolan.jvlc.example.VLCExample c:/temp/1.mp3 -vvv "--plugin-path=plugins\\" == Starting VLCExample == Creating a JVLC instance with args: 0) c:/temp/1.mp3 1) -vvv 2) --plugin-path=plugins\ [00000001] main private debug: opening config file C:\Documents and Settings\Administrador\Datos de programa\vlc\vlcrc [00000001] main private debug: checking builtin modules [00000001] main private debug: checking plugin modules [00000001] main private debug: loading plugins cache file C:\Documents and Settings\Administrador\Datos de programa/vlc/cache/plugins-04041e.dat [00000001] main private warning: This doesn't look like a valid plugins cache (language changed) [00000001] main private debug: recursively browsing `c:\temp\modules' [00000001] main private debug: recursively browsing `c:\temp\plugins' [00000001] main private debug: recursively browsing `c:\temp\plugins\' [00000001] main private debug: module bank initialized, found 11 modules [00000001] main private debug: opening config file C:\Documents and Settings\Administrador\Datos de programa\vlc\vlcrc [00000001] main private debug: CPU has capabilities 486 586 MMX 3DNow! MMXEXT SSE SSE2 FPU [00000001] main private debug: looking for memcpy module: 3 candidates [00000001] main private debug: using memcpy module "memcpymmxext" [00000016] main playlist debug: waiting for thread completion [00000016] main playlist debug: thread 912 (playlist) created at priority 0 (playlist/playlist.c:184) [00000017] main private debug: waiting for thread completion [00000017] main private debug: thread 896 (preparser) created at priority 0 (playlist/playlist.c:210) [00000018] main interface debug: looking for interface module: 0 candidates [00000018] main interface error: no interface module matched "hotkeys,none" [00000018] main interface error: no suitable interface module [00000001] main private error: interface "hotkeys,none" initialization failed ... done. Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function [b]'libvlc_media_new'[/b]: No se encontr¾ el proceso especificado. at com.sun.jna.Function.<init>(Function.java:126) at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:219) at com.sun.jna.Library$Handler.invoke(Library.java:191) at com.sun.jna.Native$2.invoke(Native.java:577) at $Proxy0.libvlc_media_new(Unknown Source) at org.videolan.jvlc.MediaDescriptor.<init>(MediaDescriptor.java:49) at org.videolan.jvlc.example.VLCExample.main(VLCExample.java:32)
So my guess is, try libvlc 0.9.
If someone comes with other solution, please post it.

Jossnaz
Blank Cone
Blank Cone
Posts: 73
Joined: 04 Jun 2008 17:59

Re: JVLC+WINDOWS

Postby Jossnaz » 26 Aug 2008 22:38

i have the same problem and I was trying to get it work here:

viewtopic.php?f=14&t=47912


i tried it with my guide, compiled everything again from scratch and frustration goes on:

Code: Select all

C:\Program Files\VideoLAN\VLC>java -cp jvlc-core-0.9.0-SNAPSHOTlm.jar;jna.jar;. org.videolan.jvlc.example.VLCExample e:/temp/wmf.mpg == Starting VLCExample == Creating a JVLC instance with args: 0) e:/temp/wmf.mpg [00000017] main interface error: no interface module matched "hotkeys,none" [00000017] main interface error: no suitable interface module [00000001] main private error: interface "hotkeys,none" initialization failed ... done. Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up func tion 'libvlc_media_new': The specified procedure could not be found. at com.sun.jna.Function.<init>(Function.java:126) at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:219) at com.sun.jna.Library$Handler.invoke(Library.java:191) at com.sun.jna.Native$2.invoke(Native.java:577) at $Proxy0.libvlc_media_new(Unknown Source) at org.videolan.jvlc.MediaDescriptor.<init>(MediaDescriptor.java:49) at org.videolan.jvlc.example.VLCExample.main(VLCExample.java:32)
and I get same error with the binary distribution.

Jossnaz
Blank Cone
Blank Cone
Posts: 73
Joined: 04 Jun 2008 17:59

Re: JVLC+WINDOWS

Postby Jossnaz » 27 Aug 2008 00:51

check out for a working eclipse way (u have compile jvlc there urself)

viewtopic.php?f=14&t=47912


this is not a solution for the ?not working? binary package!

Jossnaz
Blank Cone
Blank Cone
Posts: 73
Joined: 04 Jun 2008 17:59

Re: JVLC+WINDOWS

Postby Jossnaz » 27 Aug 2008 00:57

btw to the OP posting, when you add arguments as mentioned in crosspost to the vlc example the error looks like this, it actually gives an error of libvlc.dll although this file IS there:

Code: Select all

C:\Program Files\VideoLAN\VLC>java -cp jvlc-core-0.9.0-SNAPSHOTlm.jar;jna.jar;. VLCExample == Starting VLCExample == Creating a JVLC instance without args[00000001] main libvlc debug: VLC media pla yer - version 0.9.0 Grishenko - (c) 1996-2008 the VideoLAN team [00000001] main libvlc debug: libvlc was configured with ./configure '--enable- debug' '--host=i586-mingw32msvc' '--build=i386-linux' '--enable-shared-libvlc' ' --enable-sdl' '--with-sdl-config-path=/usr/win32/bin' '--disable-gtk' '--disable -hal' '--disable-libcdio' '--enable-nls' '--enable-skins2' '--enable-ffmpeg' '-- with-ffmpeg-mp3lame' '--with-ffmpeg-faac' '--with-ffmpeg-zlib' '--with-ffmpeg-co nfig-path=/usr/win32/bin' '--enable-faad' '--enable-flac' '--enable-theora' '--e nable-twolame' '--enable-dvdread' '--disable-vcdx' '--disable-cddax' '--enable-m ozilla' '- [00000001] main libvlc debug: translation test: code is "C" [00000001] main libvlc debug: opening config file (C:\Documents and Settings\Luk as Meier\Application Data\vlc\vlcrc) [00000001] main libvlc debug: loading config for module "main" [00000001] main libvlc debug: checking builtin modules [00000001] main libvlc debug: checking plugin modules [00000001] main libvlc debug: loading plugins cache file C:\Documents and Settin gs\Lukas Meier\Application Data\vlc\plugins-04041e.dat [00000001] main libvlc warning: This doesn't look like a valid plugins cache (la nguage changed) [00000001] main libvlc debug: recursively browsing `C:\WINDOWS\system32\modules' [00000001] main libvlc debug: recursively browsing `C:\WINDOWS\system32\plugins' [00000001] main libvlc debug: recursively browsing `c:\Program Files\VideoLAN\VL C\plugins' [00000339] main module warning: cannot find symbol "vlc_entry__0_9_0m" in file ` c:\Program Files\VideoLAN\VLC\plugins\libvlc.dll' (The specified procedure could not be found. (error 127)) [00000359] main module warning: cannot find symbol "vlc_entry__0_9_0m" in file ` c:\Program Files\VideoLAN\VLC\plugins\vlc.dll' (The specified procedure could no t be found. (error 127)) [00000001] main libvlc debug: module bank initialized, found 262 modules [00000001] main libvlc debug: opening config file (C:\Documents and Settings\Luk as Meier\Application Data\vlc\vlcrc) [00000001] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT FPU [00000001] main libvlc debug: looking for memcpy module: 3 candidates [00000001] main libvlc debug: using memcpy module "memcpymmxext" [00000360] main interaction debug: thread 5172 (Interaction control) created at priority 0 (interface/interaction.c:379) [00000360] main interaction debug: thread started [00000362] main input debug: Creating an input for 'Media Library' [00000362] main input debug: Input is a meta file: disabling unneeded options [00000362] main input debug: `file/xspf-open://C:\Documents and Settings\Lukas M eier\Application Data\vlc\ml.xspf' gives access `file' demux `xspf-open' path `C :\Documents and Settings\Lukas Meier\Application Data\vlc\ml.xspf' [00000362] main input debug: creating access 'file' path='C:\Documents and Setti ngs\Lukas Meier\Application Data\vlc\ml.xspf' [00000363] main access debug: looking for access module: 2 candidates [00000363] access_file access debug: opening file `C:\Documents and Settings\Luk as Meier\Application Data\vlc\ml.xspf' [00000363] main access debug: using access module "access_file" [00000363] main access debug: TIMER module_Need() : 0.856 ms - Total 0.856 ms / 1 intvls (Avg 0.856 ms) [00000364] main stream debug: Using AStream*Stream [00000364] main stream debug: pre-buffering... [00000364] main stream debug: received first data for our buffer [00000362] main input debug: creating demux: access='file' demux='xspf-open' pat h='C:\Documents and Settings\Lukas Meier\Application Data\vlc\ml.xspf' [00000365] main demux debug: looking for demux module: 1 candidate [00000365] playlist demux debug: using XSPF playlist reader [00000365] main demux debug: using demux module "playlist" [00000365] main demux debug: TIMER module_Need() : 0.298 ms - Total 0.298 ms / 1 intvls (Avg 0.298 ms) [00000362] main input debug: `file/xspf-open://C:\Documents and Settings\Lukas M eier\Application Data\vlc\ml.xspf' successfully opened [00000366] main xml debug: looking for xml module: 2 candidates [00000366] main xml debug: using xml module "xml" [00000366] main xml debug: TIMER module_Need() : 0.180 ms - Total 0.180 ms / 1 i ntvls (Avg 0.180 ms) [00000365] playlist demux debug: parsed 0 tracks successfully [00000366] main xml debug: removing module "xml" [00000362] main input debug: EOF reached [00000362] main input debug: control type=1 [00000365] main demux debug: removing module "playlist" [00000363] main access debug: removing module "access_file" [00000362] main input debug: Destroying the input for 'Media Library' [00000362] main input debug: TIMER input launching for 'Media Library' : 30.436 ms - Total 30.436 ms / 1 intvls (Avg 30.436 ms) [00000367] main preparser debug: waiting for thread completion [00000367] main preparser debug: thread started [00000367] main preparser debug: thread 5248 (preparser) created at priority 0 ( playlist/thread.c:80) [00000368] main fetcher debug: waiting for thread completion [00000368] main fetcher debug: thread started [00000368] main fetcher debug: thread 5260 (fetcher) created at priority 0 (play list/thread.c:110) [00000361] main playlist debug: waiting for thread completion [00000361] main playlist debug: thread started [00000361] main playlist debug: thread 5256 (playlist) created at priority 0 (pl aylist/thread.c:119) [00000369] main interface debug: looking for interface module: 1 candidate [00000369] main interface debug: using interface module "hotkeys" [00000369] main interface debug: TIMER module_Need() : 0.313 ms - Total 0.313 ms / 1 intvls (Avg 0.313 ms) [00000361] main playlist debug: rebuilding array of current - root Playlist [00000361] main playlist debug: rebuild done - 0 items, index -1 [00000369] main interface debug: thread 5280 (interface) created at priority 0 ( interface/interface.c:168) [00000369] main interface debug: thread started ... done. Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFacto ry at org.videolan.jvlc.event.MediaPlayerCallback.<init>(MediaPlayerCallbac k.java:49) at org.videolan.jvlc.MediaPlayer.addListener(MediaPlayer.java:156) at VLCExample.main(VLCExample.java:34) Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) ... 3 more


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: roacs and 11 guests