Page 1 of 1

VLCExample

Posted: 11 May 2011 12:28
by riwel
Hello:

I have a problem when I compile the example "VLCExample.java". The error is:


[00000001] main libvlc debug: VLC media player - version 0.9.2 Grishenko - (c) 1996-2008 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--host=i586-mingw32msvc' '--build=i386-linux' '--enable-mkv' '--enable-release' '--without-contrib' '--enable-nls' '--enable-shared-libvlc' '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-twolame' '--enable-quicktime' '--enable-real' '--enable-realrtsp' '--enable-ffmpeg' '--with-ffmpeg-mp3lame' '--with-ffmpeg-faac' '--with-ffmpeg-config-path=/usr/win32/bin' '--with-ffmpeg-zlib' '--enable-live555' '--with-live555-tree=/usr/win32/live.com' '--ena
[00000001] main libvlc debug: translation test: code is "C"
[00000001] main libvlc error: no memcpy module matched "any"
[00000009] main access error: no access module matched "file"
[00000008] main input error: open of `file/xspf-open://C:\Documents and Settings\julio\Datos de programa\vlc\ml.xspf' failed: could not create access: no access module matched "file"
[00000012] main interface error: no interface module matched "hotkeys,none"
[00000012] main interface error: no suitable interface module
[00000001] main libvlc error: interface "hotkeys,none" initialization failed
... done.
[00000015] main access error: no access module matched "any"
[00000013] main input error: open of `C:/videos/' failed: could not create access: no access module matched "any"
JNA: Callback org.videolan.jvlc.event.MediaPlayerCallback@4b4333 threw the following exception:
java.lang.RuntimeException: Unsupported event error. Event id: 15
at org.videolan.jvlc.event.MediaPlayerCallback.callback(MediaPlayerCallback.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback(CallbackReference.java:384)
at com.sun.jna.CallbackReference$DefaultCallbackProxy.callback(CallbackReference.java:414)


I don't put arg, Do I have to put arguments in this example? ¿native libreries?¿anything else?

I'am new in JVLC :(

thanks!!!

Re: VLCExample

Posted: 11 May 2011 12:53
by Rémi Denis-Courmont
You're using a too old LibVLC version.

Re: VLCExample

Posted: 11 May 2011 13:32
by riwel
Where I can download a new version?


Thanks!!

Re: VLCExample

Posted: 11 May 2011 16:15
by Rémi Denis-Courmont

Re: VLCExample

Posted: 12 May 2011 09:04
by riwel
I figured it would be this page, but within it is exactly where, I'm quite lost with the wiki .. forum ...

Thanks!!!

Re: VLCExample

Posted: 13 May 2011 00:15
by gnosygnu
I'd also recommend you upgrade from JVLC to vlcj (http://code.google.com/p/vlcj/)
I don't think JVLC will work against the 1.1 version of vlc (significant API changes)

Also, JVLC is unsupported. sherington does a great job of fielding questions/issues.

Hope this helps.

Re: VLCExample

Posted: 13 May 2011 12:01
by riwel
thanks!!!

I tulice vlcj, version 1.2 :( I put the full error...

_ _
__ _| | ___ (_)
\ \ / / |/ __|| |
\ V /| | (__ | |
\_/ |_|\___|/ | 1.2.0
|__/

VLCJ is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

VLCJ is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with VLCJ. If not, see <http://www.gnu.org/licenses/>.

Copyright 2009, 2010, 2011 Caprica Software Limited.

vlcj: (Info.java:66) | INFO | vlcj: 1.2.0
vlcj: (Info.java:67) | INFO | java: 1.6.0_22 Sun Microsystems Inc.
vlcj: (Info.java:68) | INFO | java home: C:\Archivos de programa\Java\jre1.6.0_22
vlcj: (Info.java:69) | INFO | os: Windows XP 5.1 x86
vlcj: (LibVlcFactory.java:106) | INFO | vlc: 0.9.2 Grishenko, changeset c3f827a255
vlcj: (LibVlcFactory.java:107) | INFO | libvlc: libvlc.dll
vlcj: (TestPlayer.java:112) | INFO | version: 0.9.2 Grishenko
vlcj: (TestPlayer.java:113) | INFO | compiler: gcc version 4.2.1-sjlj (mingw32-2)
vlcj: (TestPlayer.java:114) | INFO | changeset: c3f827a255
vlcj: (WindowsCanvas.java:78) | WARN | You are using the WindowsCanvas implementation, this may cause spurious random VM crashes when you shut down your application
vlcj: (LibVlcFactory.java:106) | INFO | vlc: 0.9.2 Grishenko, changeset c3f827a255
vlcj: (LibVlcFactory.java:107) | INFO | libvlc: libvlc.dll
[00000001] main libvlc debug: VLC media player - version 0.9.2 Grishenko - (c) 1996-2008 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--host=i586-mingw32msvc' '--build=i386-linux' '--enable-mkv' '--enable-release' '--without-contrib' '--enable-nls' '--enable-shared-libvlc' '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-twolame' '--enable-quicktime' '--enable-real' '--enable-realrtsp' '--enable-ffmpeg' '--with-ffmpeg-mp3lame' '--with-ffmpeg-faac' '--with-ffmpeg-config-path=/usr/win32/bin' '--with-ffmpeg-zlib' '--enable-live555' '--with-live555-tree=/usr/win32/live.com' '--ena
[00000001] main libvlc debug: translation test: code is "C"
[00000001] main libvlc error: no memcpy module matched "any"
[00000009] main access error: no access module matched "file"
[00000008] main input error: open of `file/xspf-open://C:\Documents and Settings\julio\Datos de programa\vlc\ml.xspf' failed: could not create access: no access module matched "file"
[00000012] main interface error: no interface module matched "hotkeys,none"
[00000012] main interface error: no suitable interface module
[00000001] main libvlc error: interface "hotkeys,none" initialization failed
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: Error looking up function 'libvlc_set_user_agent': No se encontró el proceso especificado.

at com.sun.jna.Function.<init>(Function.java:179)
at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:344)
at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:324)
at com.sun.jna.Library$Handler.invoke(Library.java:203)
at $Proxy0.libvlc_set_user_agent(Unknown Source)
at uk.co.caprica.vlcj.player.MediaPlayerFactory.setUserAgent(MediaPlayerFactory.java:278)
at uk.co.caprica.vlcj.player.MediaPlayerFactory.setUserAgent(MediaPlayerFactory.java:267)
at uk.co.caprica.vlcj.test.basic.TestPlayer.<init>(TestPlayer.java:188)
at uk.co.caprica.vlcj.test.basic.TestPlayer$1.run(TestPlayer.java:121)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)



any idea? thanks!!!

Re: VLCExample

Posted: 13 May 2011 13:27
by sherington
This should be clear from the vlcj downloads page:

vlcj 1.2.0 requires libvlc 1.2.0.
vlcj 1.1.5.1 requires libvlc 1.1.0.

The chances of the ancient vlc 0.9.2 working are nil.

Re: VLCExample

Posted: 13 May 2011 13:55
by Jean-Baptiste Kempf
This should be clear from the vlcj downloads page:

vlcj 1.2.0 requires libvlc 1.2.0.
vlcj 1.1.5.1 requires libvlc 1.1.0.

The chances of the ancient vlc 0.9.2 working are nil.
Thanks for the clarification.

Re: VLCExample

Posted: 17 May 2011 09:54
by riwel
thank you very much!!

I'm clear with this, but I see no lib1.2.0, the Web is the only 1.19 ..

Re: VLCExample

Posted: 17 May 2011 18:32
by sherington
thank you very much!!

I'm clear with this, but I see no lib1.2.0, the Web is the only 1.19 ..
Choose:
a) You have vlc 1.1.9, so use vlcj 1.1.5.1.
b) If you want to use vlcj 1.2.0 you need vlc 1.2.0, so right now you build vlc 1.2.0 yourself from source code or if you use Windows you download a nightly build. Links to which are already posted elsewhere on this forum.

Re: VLCExample

Posted: 18 May 2011 10:00
by riwel
thanks!!! I finally understand you!!!! :D:D:D:D

Thanks for your patience!!!

Re: VLCExample

Posted: 06 Jun 2011 20:40
by moijdikssekool
hello
u say we need 1.2.0 source code of vlc to work with vlcj-1.2.0 but the latest is 1.1.10
i would work with vlcj-1.1.5 (and use an older vlc) but the capricasoftware tuto use vlcj-1.2.0
compilation and launch are ok but:
myplayer.java (from the tuto) gives me, for instance, a black screen, is it due to vlc 1.1.10 instead of 1.2.0?
VlcTest.java (from capricasoftware too) doen't open any windows, it just returns me in console 'cdda:/dev/cdrom@3' (as if i were on Linux) and works only with vlcj-1.2.0

do u know where i can find vlc 1.2.0 binaries or code (the libvlc 1.2.0 if i understand well. I see lots of website using it but nowhere to dl it!), or is there another vlcj example i can work on it?

Re: VLCExample

Posted: 06 Jun 2011 21:15
by moijdikssekool
i get one answer: for myplayer.java, i have to put the film at the root of the eclipse project. And it doesn't need vlc 1.2.0, vlc1.1.10 is enough
For VlcTest.java, no way because it seems to work for linux

Re: VLCExample

Posted: 06 Jun 2011 21:29
by sherington
myplayer.java (from the tuto) gives me, for instance, a black screen, is it due to vlc 1.1.10 instead of 1.2.0?
Impossible for me to say from your description. Look at the error log.
VlcTest.java (from capricasoftware too) doen't open any windows, it just returns me in console 'cdda:/dev/cdrom@3' (as if i were on Linux) and works only with vlcj-1.2.0
VlcTest.java does not exist. If you mean VlcjTest.java, that is an abstract base class containing common initialisation code for all of the vlcj examples, it is not an application itself.

I don't understand the rest of what you said there. If you're playing cdda why do you expect a video window to appear, isn't cdda just audio?
do u know where i can find vlc 1.2.0 binaries or code (the libvlc 1.2.0 if i understand well. I see lots of website using it but nowhere to dl it!),
vlc 1.2.0 builds are available here: http://nightlies.videolan.org/
Source code here: http://wiki.videolan.org/GetTheSource
or is there another vlcj example i can work on it?
If you want to know how to use vlcj 1.1.5.1 with libvlc 1.1.x, then download the vlcj 1.1.5.1-test-sources.jar from the project download page, unpack it and look at the examples. TestPlayer.java is the source code for the main vlcj test application.

You should also download the 1.1.5.1 Javadoc jar file and look at the documentation for MediaPlayer and MediaPlayerFactory - the Javadoc explains how to use it.