[vlc-devel] How to get JVLC to play youtube...

Tony Anecito adanecito at yahoo.com
Mon Nov 2 15:44:31 CET 2009


Hi Rafael,

Thanks for the response. All I am doing is taking the url that works in vlc.exe and using it for the example programs for jvlc. I suspect that there are some command line settings that I need to pass to the jvlc object that creates an instance of vlclib.

The url I used for both the playlist and mediaplayer examples is:
http://www.youtube.com/watch?v=8ETDE0VGJY4

I tried the command line options you listed for the jvlc example for mediaplayer (the recommended object for jvlc) and go the following output for the -vvv option.

It looks as if the wrong demux is selected. It uses lua and for the vlc player it finds the avcodec according to the message window.

Regards,
-Tony


Output from eclipse as follows:
== Starting VLCExample ==
Creating a JVLC instance with args: 
0) --plugin-path=e:\plugins
1) --http-caching=1200
2) --ignore-config
3) -I
4) rc
5) -vvv
[0x2f841e4] main libvlc debug: VLC media player - version 1.0.3 Goldeneye - (c) 1996-2009 the VideoLAN team
[0x2f841e4] main libvlc debug: libvlc was configured with ././configure  '--host=i586-mingw32msvc' '--build=i386-linux' '--enable-dirac' '--enable-mkv' '--enable-taglib' '--enable-debug' '--without-contrib' '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-twolame' '--enable-quicktime' '--enable-real' '--enable-avcodec' '--enable-dca' '--enable-mpc' '--enable-libass' '--enable-x264' '--enable-schroedinger' '--enable-realrtsp' '--enable-live555' '--with-live555-tree=/usr/win32/live.com' '--enable-dvdread' '--with-dvdnav-config-path=/usr/win32/bin' '--enable-shout' '--enable-goom' '--enable-caca' '--with-caca-config-path=/usr/win32/bin' '--enable-portaudio' '--enable-sdl' '--with-sdl-config-path=/usr/win32/bin' '--enable-qt4' '--enable-mozilla' '--with-mozilla-sdk-path=/usr/win32/gecko-sdk' '--enable-activex' '--enable-sse' '--enable-mmx' '--disable-fluidsynth' '--disable-gnomevfs' '--disable-hal'
 '--disable-cddax' '--disable-vcdx' '--disable-libcdio' '--disable-vcdinfo' '--disable-libcddb' '--disable-dvb' '--enable-zvbi' '--disable-telx' '--disable-pulse' 'build_alias=i386-linux' 'host_alias=i586-mingw32msvc' 'CC=i586-mingw32msvc-gcc' 'LDFLAGS=-L/usr/win32/lib' 'CPPFLAGS=-I/usr/win32/include -I/usr/win32/include/ebml' 'CXX=i586-mingw32msvc-g++'
[0x2f841e4] main libvlc debug: translation test: code is "C"
[0x2f841e4] main libvlc debug: checking plugin modules
[0x2f841e4] main libvlc debug: loading plugins cache file C:\Documents and Settings\Administrator\Application Data\vlc\plugins-04041e.dat
[0x2f841e4] main libvlc debug: recursively browsing `C:\java\jdk1.6.0_07\jre\bin\modules'
[0x2f841e4] main libvlc debug: recursively browsing `C:\java\jdk1.6.0_07\jre\bin\plugins'
[0x2f841e4] main libvlc debug: recursively browsing `e:\plugins'
[0x2f841e4] main libvlc warning: cannot find symbol "vlc_entry__1_0_0e" in file `e:\plugins\libvlc.dll' (The specified procedure could not be found. (error 127))
[0x2f841e4] main libvlc warning: cannot find symbol "vlc_entry__1_0_0e" in file `e:\plugins\libvlccore.dll' (The specified procedure could not be found. (error 127))
[0x2f841e4] main libvlc debug: module bank initialized (369 modules)
[0x2f841e4] main libvlc debug: CPU has capabilities 486 586 MMX 3DNow! MMXEXT SSE SSE2 FPU 
[0x2f841e4] main libvlc debug: looking for memcpy module: 4 candidates
[0x2f841e4] main libvlc debug: using memcpy module "memcpymmxext"
[0x457dacc] main input debug: Creating an input for 'Media Library'
[0x457dacc] main input debug: Input is a meta file: disabling unneeded options
[0x457dacc] main input debug: using timeshift granularity of 50 MBytes
[0x457dacc] main input debug: using timeshift path 'C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp'
[0x457dacc] main input debug: `file/xspf-open:///C:/Documents%20and%20Settings/Administrator/Application%20Data/vlc/ml.xspf' gives access `file' demux `xspf-open' path `C:\Documents and Settings\Administrator\Application Data\vlc\ml.xspf'
[0x457dacc] main input debug: creating demux: access='file' demux='xspf-open' path='C:\Documents and Settings\Administrator\Application Data\vlc\ml.xspf'
[0x45774bc] main demux debug: looking for access_demux module: 1 candidate
[0x45774bc] main demux warning: no access_demux module matching "file" could be loaded
[0x45774bc] main demux debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[0x457dacc] main input debug: creating access 'file' path='C:\Documents and Settings\Administrator\Application Data\vlc\ml.xspf'
[0x456d77c] main access debug: looking for access module: 2 candidates
[0x456d77c] access_file access debug: opening file `C:\Documents and Settings\Administrator\Application Data\vlc\ml.xspf'
[0x456d77c] main access debug: using access module "access_file"
[0x456d77c] main access debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[0x457d6dc] main stream debug: Using AStream*Stream
[0x457d6dc] main stream debug: pre buffering
[0x457d6dc] main stream debug: received first data after 0 ms
[0x457d6dc] main stream debug: pre-buffering done 304 bytes in 0s - 296875 kbytes/s
[0x45842bc] main stream debug: looking for stream_filter module: 2 candidates
[0x45842bc] main stream debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[0x45842bc] main stream debug: looking for stream_filter module: 1 candidate
[0x45842bc] main stream debug: using stream_filter module "stream_filter_record"
[0x45842bc] main stream debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[0x457dacc] main input debug: creating demux: access='file' demux='xspf-open' path='C:\Documents and Settings\Administrator\Application Data\vlc\ml.xspf'
[0x45774bc] main demux debug: looking for demux module: 1 candidate
[0x45774bc] playlist demux debug: using XSPF playlist reader
[0x45774bc] main demux debug: using demux module "playlist"
[0x45774bc] main demux debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[0x457dacc] main input debug: `file/xspf-open:///C:/Documents%20and%20Settings/Administrator/Application%20Data/vlc/ml.xspf' successfully opened
[0x4585c94] main xml debug: looking for xml module: 2 candidates
[0x4585c94] main xml debug: using xml module "xml"
[0x4585c94] main xml debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[0x45774bc] playlist demux debug: parsed 0 tracks successfully
[0x4585c94] main xml debug: removing module "xml"
[0x457dacc] main input debug: EOF reached
[0x45774bc] main demux debug: removing module "playlist"
[0x45842bc] main stream debug: removing module "stream_filter_record"
[0x456d77c] main access debug: removing module "access_file"
[0x457dacc] main input debug: Destroying the input for 'Media Library'
[0x457dacc] main input debug: TIMER input launching for 'Media Library' : 4.000 ms - Total 4.000 ms / 1 intvls (Avg 4.000 ms)
[0x30b3fe4] main playlist debug: Activated
[0x30b3fe4] main playlist debug: rebuilding array of current - root Playlist
[0x30b3fe4] main playlist debug: rebuild done - 0 items, index -1
[0x457d6dc] main interface debug: looking for interface module: 1 candidate
[0x457d6dc] main interface debug: using interface module "hotkeys"
[0x457d6dc] main interface debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[0x457d6dc] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151)
[0x457d6dc] main interface debug: thread started
... done.
[0x457dacc] main input debug: Creating an input for 'http://www.youtube.com/watch?v=8ETDE0VGJY4'
[0x457dacc] main input debug: thread (input) created at priority 1 (input/input.c:230)
[0x457dacc] main input debug: thread started
[0x457dacc] main input debug: using timeshift granularity of 50 MBytes
[0x457dacc] main input debug: using timeshift path 'C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp'
[0x457dacc] main input debug: `http://www.youtube.com/watch?v=8ETDE0VGJY4' gives access `http' demux `' path `www.youtube.com/watch?v=8ETDE0VGJY4'
[0x457dacc] main input debug: creating demux: access='http' demux='' path='www.youtube.com/watch?v=8ETDE0VGJY4'
[0x45774bc] main demux debug: looking for access_demux module: 0 candidates
[0x45774bc] main demux debug: no access_demux module matched "http"
[0x45774bc] main demux debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[0x457dacc] main input debug: creating access 'http' path='www.youtube.com/watch?v=8ETDE0VGJY4'
[0x4583af4] main access debug: looking for access module: 2 candidates
[0x4583af4] access_http access debug: http: server='www.youtube.com' port=80 file='/watch?v=8ETDE0VGJY4
[0x4583af4] main access debug: net: connecting to www.youtube.com port 80
[0x4583af4] main access debug: connection: Resource temporarily unavailable
[0x4583af4] main access debug: connection succeeded (socket = 1824)
[0x4583af4] access_http access debug: protocol 'HTTP' answer code 200
[0x4583af4] access_http access debug: Server: Apache
[0x4583af4] access_http access debug: Accepting Cookie: use_hitbox=72c46ff6cbcdb7c5585c36411b6b334edAEAAAAw; path=/; domain=.youtube.com
[0x4583af4] access_http access debug: Accepting Cookie: VISITOR_INFO1_LIVE=HA-Tsz0NFr0; path=/; domain=.youtube.com; expires=Wed, 30-Jun-2010 14:41:04 GMT
[0x4583af4] access_http access debug: Accepting Cookie: GEO=a767526ef8113f62325f3be8e0521ff1cwsAAAAzVVPM5M/aSu7vgA==; path=/; domain=.youtube.com
[0x4583af4] access_http access debug: Accepting Cookie: watched_video_id_list=337f47217b6fd8474157340d9f30b827WwEAAABzCwAAADhFVERFMFZHSlk0; path=/; domain=.youtube.com
[0x4583af4] access_http access debug: Content-Type: text/html; charset=utf-8
[0x4583af4] access_http access debug: Transfer-Encoding: chunked
[0x4583af4] main access debug: using access module "access_http"
[0x4583af4] main access debug: TIMER module_need() : 207.000 ms - Total 207.000 ms / 1 intvls (Avg 207.000 ms)
[0x4585c94] main stream debug: Using AStream*Stream
[0x4585c94] main stream debug: pre buffering
[0x4585c94] main stream debug: received first data after 0 ms
[0x4585c94] main stream debug: pre-buffering done 643 bytes in 0s - 627929 kbytes/s
[0x45842bc] main stream debug: looking for stream_filter module: 2 candidates
[0x45842bc] main stream debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[0x45842bc] main stream debug: looking for stream_filter module: 1 candidate
[0x45842bc] main stream debug: using stream_filter module "stream_filter_record"
[0x45842bc] main stream debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
[0x457dacc] main input debug: creating demux: access='http' demux='' path='www.youtube.com/watch?v=8ETDE0VGJY4'
[0x45774bc] main demux debug: looking for demux module: 51 candidates
[0x45774bc] lua demux debug: Trying Lua scripts in C:\Documents and Settings\Administrator\Application Data\vlc\lua\playlist
[0x45774bc] lua demux debug: Trying Lua playlist script C:\Documents and Settings\Administrator\Application Data\vlc\lua\playlist\anevia_streams.lua
[0x45774bc] lua demux debug: Trying Lua playlist script C:\Documents and Settings\Administrator\Application Data\vlc\lua\playlist\appletrailers.lua
[0x45774bc] lua demux debug: Trying Lua playlist script C:\Documents and Settings\Administrator\Application Data\vlc\lua\playlist\bbc_co_uk.lua
[0x45774bc] lua demux debug: Trying Lua playlist script C:\Documents and Settings\Administrator\Application Data\vlc\lua\playlist\break.lua
[0x45774bc] lua demux debug: Trying Lua playlist script C:\Documents and Settings\Administrator\Application Data\vlc\lua\playlist\canalplus.lua
[0x45774bc] lua demux debug: Trying Lua playlist script C:\Documents and Settings\Administrator\Application Data\vlc\lua\playlist\cue.lua
[0x45774bc] lua demux debug: Trying Lua playlist script C:\Documents and Settings\Administrator\Application Data\vlc\lua\playlist\dailymotion.lua
[0x45774bc] lua demux debug: Trying Lua playlist script C:\Documents and Settings\Administrator\Application Data\vlc\lua\playlist\france2.lua
[0x45774bc] lua demux debug: Trying Lua playlist script C:\Documents and Settings\Administrator\Application Data\vlc\lua\playlist\googlevideo.lua
[0x45774bc] lua demux debug: Trying Lua playlist script C:\Documents and Settings\Administrator\Application Data\vlc\lua\playlist\joox.lua
[0x45774bc] lua demux debug: Trying Lua playlist script C:\Documents and Settings\Administrator\Application Data\vlc\lua\playlist\koreus.lua
[0x45774bc] lua demux debug: Trying Lua playlist script C:\Documents and Settings\Administrator\Application Data\vlc\lua\playlist\lelombrik.lua
[0x45774bc] lua demux debug: Trying Lua playlist script C:\Documents and Settings\Administrator\Application Data\vlc\lua\playlist\megavideo.lua
[0x45774bc] lua demux debug: Trying Lua playlist script C:\Documents and Settings\Administrator\Application Data\vlc\lua\playlist\metacafe.lua
[0x45774bc] lua demux debug: Trying Lua playlist script C:\Documents and Settings\Administrator\Application Data\vlc\lua\playlist\mpora.lua
[0x45774bc] lua demux debug: Trying Lua playlist script C:\Documents and Settings\Administrator\Application Data\vlc\lua\playlist\vimeo.lua
[0x45774bc] lua demux debug: Trying Lua playlist script C:\Documents and Settings\Administrator\Application Data\vlc\lua\playlist\youtube.lua
[0x45774bc] lua demux debug: Lua playlist script C:\Documents and Settings\Administrator\Application Data\vlc\lua\playlist\youtube.lua's probe() function was successful
[0x45774bc] main demux debug: using demux module "lua"
[0x45774bc] main demux debug: TIMER module_need() : 67.000 ms - Total 67.000 ms / 1 intvls (Avg 67.000 ms)
[0x457dacc] main input debug: looking for a subtitle file in C:\Documents and Settings\tony anecito\workspace\JVLC Player\
[0x457dacc] main input debug: `http://www.youtube.com/watch?v=8ETDE0VGJY4' successfully opened
Media instance played. MRL: http://www.youtube.com/watch?v=8ETDE0VGJY4
[0x45774bc] lua demux debug: Path: http://www.youtube.com/v/8ETDE0VGJY4
[0x45774bc] lua demux debug: Name: Star Trek Trailer 3 HD 720p
[0x45774bc] lua demux debug: Description: The new trailer of Star Trek in HD
[0x45774bc] lua demux debug: ArtURL: http://img.youtube.com/vi/8ETDE0VGJY4/default.jpg
An error has occurred.
Media instance end reached. MRL: http://www.youtube.com/watch?v=8ETDE0VGJY4
[0x45774bc] main demux debug: removing module "lua"
[0x45842bc] main stream debug: removing module "stream_filter_record"
[0x4583af4] main access debug: removing module "access_http"
[0x4583af4] main access debug: waitpipe: object killed
[0x457dacc] main input debug: thread ended



--- On Mon, 11/2/09, Rafaël Carré <rafael.carre at gmail.com> wrote:

> From: Rafaël Carré <rafael.carre at gmail.com>
> Subject: Re: [vlc-devel] How to get JVLC to play youtube...
> To: vlc-devel at videolan.org
> Date: Monday, November 2, 2009, 4:23 AM
> On Mon, 2 Nov 2009 00:21:02 -0800
> (PST)
> Tony Anecito <adanecito at yahoo.com>
> wrote:
> 
> > [0x5709824] avformat demux debug: detected format:
> swf
> 
> Youtube videos are flv (and mp4?), not swf
> 
> Are you trying to open the youtube _player_ (the flash
> thing) and not
> the video ?
> 
> > [swf @ 0x571ee00]Compressed SWF format not supported
> > [0x5709824] avformat demux error: av_open_input_stream
> failed
> 
> vlc --ignore-config -I rc -vv "http://www.youtube.com/watch?v=Yu_moia-oVI"
> ...
> [0x21ec830] lua demux debug: Lua playlist script
> /home/fun/.local/vlc/share/vlc/lua/playlist/youtube.lua's
> probe() function was successful
> [0x21ec830] main demux debug: using demux module "lua"
> ... now lua demux gives a new http:// URI ...
> [0x2223b40] avformat demux debug: detected format: flv
> 
> 
> -- 
> Rafaël Carré
> 
> -----Inline Attachment Follows-----
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
> 


      



More information about the vlc-devel mailing list