VLC can play stream while LibVLC hangs

This forum is about all development around libVLC.
adish
Blank Cone
Blank Cone
Posts: 29
Joined: 16 Jun 2011 21:43

VLC can play stream while LibVLC hangs

Postby adish » 17 Mar 2013 12:37

Hi,

I've got a UDP video stream that I can view and play with VLC (2.0.5).
Using the same version, LibVLC hangs on the same stream.

Here's the verbose log of VLC:

Code: Select all

[01d8edb0] logger interface: VLC media player - 2.0.5 Twoflower [01d8edb0] logger interface: Copyright c 1996-2012 VLC authors and VideoLAN [01d8edb0] logger interface: Warning: if you cannot access the GUI anymore, open a command-line window, go to the directory where you installed VLC and run "vlc -I qt" [01d8edb0] logger interface: using logger. [01d8edb0] logger interface warning: no log filename provided, using `vlc-log.tx t' [01d8edb0] logger interface debug: opening logfile `vlc-log.txt' [01d8edb0] main interface debug: using interface module "logger" [01d8edb0] main interface debug: TIMER module_need() : 26.524 ms - Total 26.524 ms / 1 intvls (Avg 26.524 ms) [01d77bb8] main playlist debug: adding item `udp://233.15.186.128:8208' ( udp://@233.15.186.128:8208 ) [01d8e950] qt4 interface debug: Adding a new MRL to recent ones: udp://@233.15.186.128:8208 [01d77bb8] main playlist debug: rebuilding array of current - root Playlist [01d77bb8] main playlist debug: rebuild done - 1 items, index -1 [01d77bb8] main playlist debug: processing request item: udp://233.15.186.128:8208, node: null, skip: 0 [01d77bb8] main playlist debug: resyncing on udp://233.15.186.128:8208 [01d77bb8] main playlist debug: udp://233.15.186.128:8208 is at 0 [01d77bb8] main playlist debug: starting playback of the new playlist item [01d77bb8] main playlist debug: resyncing on udp://233.15.186.128:8208 [01d77bb8] main playlist debug: udp://233.15.186.128:8208 is at 0 [01d77bb8] main playlist debug: creating new input thread [02dbd540] main input debug: Creating an input for 'udp://233.15.186.128:8208' [01d8e950] qt4 interface debug: IM: Setting an input [02dbd540] main input debug: using timeshift granularity of 50 MiB, in path 'C:\Users\ADMINI~1\AppData\Local\Temp\1' [02dbd540] main input debug: `udp://@233.15.186.128:8208' gives access `udp' demux `' path `@233.15.186.128:8208' [02dbd540] main input debug: creating demux: access='udp' demux='' location='@233.15.186.128:8208' file='\\@233.15.186.128:8208' [01dc8d80] main demux debug: looking for access_demux module: 0 candidates [01dc8d80] main demux debug: no access_demux module matched "udp" [01dc8d80] main demux debug: TIMER module_need() : 3.491 ms - Total 3.491 ms / 1 intvls (Avg 3.491 ms)[01d77bb8] main playlist debug: no fetch required for (null) (art currently (null)) [02dbd540] main input debug: creating access 'udp' location='@233.15.186.128:8208', path='\\@233.15.186.128:8208' [01dcb9f8] main access debug: looking for access module: 1 candidate [01dcb9f8] access_udp access debug: opening server=:0 local=233.15.186.128:8208 [01dcb9f8] main access debug: net: opening 233.15.186.128 datagram port 8208 [01dcb9f8] main access debug: using access module "access_udp" [01dcb9f8] main access debug: TIMER module_need() : 132.604 ms - Total 132.604 ms / 1 intvls (Avg 132.604 ms) [02e57058] main stream debug: Using block method for AStream* [02e57058] main stream debug: starting pre-buffering [02e57058] main stream debug: received first data after 0 ms [02e57058] main stream debug: prebuffering done 1316 bytes in 0s - 505 KiB/s [02e57108] main stream debug: looking for stream_filter module: 4 candidates [02e57108] main stream debug: no stream_filter module matching "any" could be loaded [02e57108] main stream debug: TIMER module_need() : 57.302 ms - Total 57.302 ms / 1 intvls (Avg 57.302 ms) [02e57108] main stream debug: looking for stream_filter module: 1 candidate [02e57108] main stream debug: using stream_filter module "stream_filter_record" [02e57108] main stream debug: TIMER module_need() : 3.626 ms - Total 3.626 ms / 1 intvls (Avg 3.626 ms) [02dbd540] main input debug: creating demux: access='udp' demux='' location='@233.15.186.128:8208' file='\\@233.15.186.128:8208' [01dc8ef0] main demux debug: looking for demux module: 55 candidates [01dc8ef0] ts demux debug: pid[32] unknown [01dc8ef0] ts demux debug: pid[33] unknown libdvbpsi error (PSI decoder): TS discontinuity (received 15, expected 0) for PID 0 [01dc8ef0] ts demux debug: PATCallBack called [01dc8ef0] ts demux debug: new PAT ts_id=602 version=5 current_next=1 [01dc8ef0] ts demux debug: * number=42 pid=87 libdvbpsi error (PSI decoder): TS discontinuity (received 6, expected 0) for PID 87 [01dc8ef0] ts demux debug: PMTCallBack called [01dc8ef0] ts demux debug: new PMT program number=42 version=4 pid_pcr=32 [01dc8ef0] ts demux debug: * descriptor : registration CUEI [01dc8ef0] ts demux debug: * es pid=32 type=27 fcc=h264 [02dbd540] main input debug: selecting program id=42 [01dc8ef0] ts demux debug: * es pid=33 type=129 dr->i_tag=0x81 [01dc8ef0] ts demux debug: * es pid=33 type=129 fcc=a52 [01dc8ef0] ts demux debug: * es pid=219 type=134 *unknown* [01dcb9f8] access_udp access warning: unimplemented query in control [01dc8ef0] main demux debug: using demux module "ts" [01dc8ef0] main demux debug: TIMER module_need() : 40.570 ms - Total 40.570 ms / 1 intvls (Avg 40.570 ms) [02d5c4b8] main decoder debug: looking for decoder module: 32 candidates [02d5c4b8] avcodec decoder debug: libavcodec initialized (interface 0x361e00) [02d5c4b8] avcodec decoder debug: trying to use direct rendering [02d5c4b8] avcodec decoder debug: allowing 3 thread(s) for decoding [02d5c4b8] avcodec decoder debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) started [02d5c4b8] avcodec decoder debug: using frame thread mode with 3 threads [02d5c4b8] main decoder debug: using decoder module "avcodec" [02d5c4b8] main decoder debug: TIMER module_need() : 39.449 ms - Total 39.449 ms / 1 intvls (Avg 39.449 ms) [04207890] main packetizer debug: looking for packetizer module: 21 candidates [04207890] main packetizer debug: using packetizer module "packetizer_h264" [04207890] main packetizer debug: TIMER module_need() : 11.414 ms - Total 11.414 ms / 1 intvls (Avg 11.414 ms) [04207bd8] main decoder debug: looking for decoder module: 32 candidates [04207bd8] main decoder debug: using decoder module "a52" [04207bd8] main decoder debug: TIMER module_need() : 8.770 ms - Total 8.770 ms / 1 intvls (Avg 8.770 ms) [01dc8ef0] ts demux debug: DEMUX_SET_GROUP 0 00000000 [01dcb9f8] access_udp access warning: unimplemented query in control [01da00a8] main demux meta debug: looking for meta reader module: 2 candidates [01da00a8] lua demux meta debug: Trying Lua scripts in C:\Users\Administrator\AppData\Roaming\vlc\lua\meta\reader [01da00a8] lua demux meta debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader [01da00a8] lua demux meta debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\reader\filename.luac [01da00a8] main demux meta debug: no meta reader module matching "any" could be loaded [01da00a8] main demux meta debug: TIMER module_need() : 26.632 ms - Total 26.632 ms / 1 intvls (Avg 26.632 ms) [02dbd540] main input debug: `udp://@233.15.186.128:8208' successfully opened [01dc8ef0] ts demux warning: first packet for pid=32 cc=0xb [01dc8ef0] ts demux warning: first packet for pid=33 cc=0xe [02dbd540] main input debug: Buffering 0% [0[02dbd540]42 main input debug: 0Buffering 2%7 890] packetizer_h264 packetizer warning: waiting for SPS/PPS [04207890][02dbd packetizer_h264 packetizer warning: 5waiting for SPS/PPS4 0] main input debug: Buffering 5% [04207890] packetizer_h264 packetizer warning: waiting for SPS/PPS [02dbd540] main input debug: [Buffering 8%04 207890] packetizer_h264 packetizer warning: waiting for SPS/PPS [042078[90] packetizer_h264 packetizer warning: 0waiting for SPS/PPS2 dbd540] main input debug: Buffering 11% [04207890] packetizer_h264 packetizer warning: waiting for SPS/PPS[02dbd540] main input debug: Buffering 14% [[02dbd540] main input debug: Buffering 17% [02dbd540] main input debug: Buffering 20% [02dbd540] main input debug: Buffering 23% [02dbd540] main input debug: Buffering 26% ...
Here's LibVLC's log:

Code: Select all

[012c7db0] main stream error: cannot pre fill buffer [0136c4d8] main libvlc debug: VLC media player - 2.0.5 Twoflower [0136c4d8] main libvlc debug: Copyright c 1996-2012 VLC authors and VideoLAN [0136c4d8] main libvlc debug: revision 2.0.5-0-g1661b7d [0136c4d8] main libvlc debug: configured with ../extras/package/win32/../../../configure '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-twolame' '--enable-quicktime' '--enable-avcodec' '--enable-merge-ffmpeg' '--enable-dca' '--enable-mpc' '--enable-libass' '--enable-x264' '--enable-schroedinger' '--enable-realrtsp' '--enable-live555' '--enable-dvdread' '--enable-shout' '--enable-goom' '--enable-caca' '--disable-portaudio' '--disable-sdl' '--enable-qt4' '--enable-skins2' '--enable-sse' '--enable-mmx' '--enable-libcddb' '--enable-zvbi' '--disable-telx' '--enable-sqlite' '--disable-dirac' '--host=i586-mingw32msvc' 'host_alias=i586-mingw32msvc' [0136c4d8] main libvlc debug: searching plug-in modules [0136c4d8] main libvlc debug: loading plugins cache file C:\work\proj\plugins\plugins.dat [0136c4d8] main libvlc debug: recursively browsing `C:\work\proj\plugins' [0136c4d8] main libvlc debug: saving plugins cache C:\work\proj\plugins\plugins.dat [0136c4d8] main libvlc debug: plug-ins loaded: 389 modules [0136c4d8] main libvlc debug: translation test: code is "C" [0136c4d8] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 FPU [0136c4d8] main libvlc debug: looking for memcpy module: 4 candidates [0136c4d8] main libvlc debug: using memcpy module "memcpymmxext" [0135c8e8] main interface debug: looking for interface module: 1 candidate [0135c8e8] main interface debug: using interface module "hotkeys" [01[0136d798] main playlist debug: rebuilding array of current - root Playlist3 6d798] main playlist debug: playlist threads correctly activated[ 0136d798] main playlist debug: rebuild done - 0 items, index -1[ 0136d798] main playlist debug: adding item `(null)' ( file:///C:/work/proj/ ) [0038aef0][ main input debug: 0Creating an input for '(null)'038ae68] main input debug: Creating an input for 'udp://233.14.186.129:8208' [0038ae68] main input debug: using timeshift granularity of 50 MiB, in path 'C:\Users\ADMINI~1\AppData\Local\Temp\1' [0038ae68] main input debug: `udp://@233.14.186.129:8208' gives access `udp' demux `' path `@233.14.186.129:8208' [0038ae68] main input debug: creating demux: access='udp' demux='' location='@233.14.186.129:8208' file='\\@233.14.186.129:8208' [01360ac0] main demux debug: looking for access_demux module: 0 candidates [01360ac0] main demux debug: no access_demux module matched "udp" [0038ae68] main input debug: creating access 'udp' location='@233.14.186.129:8208', path='\\@233.14.186.129:8208' [0135a3c8] main access debug: looking for access module: 1 candidate [0135a3c8] access_udp access debug: opening server=:0 local=233.14.186.129:8208[ 0136d7[0135a3c8] main access debug: 9net: opening 233.14.186.129 datagram port 82088 ] main playlist debug: no fetch required for (null) (art currently (null)) [0135a3c8] main access debug: using access module "access_udp" [012c7520] main stream debug: Using block method for AStream* [012c7520] main stream debug: starting pre-buffering
and it just hangs there after 'main stream debug: starting pre-buffering'.

Is there some flag the VLC uses that I should pass to LibVLC?

Please advise.
Thanks,
Adi

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC can play stream while LibVLC hangs

Postby Jean-Baptiste Kempf » 17 Mar 2013 14:56

Firewall on your app?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

adish
Blank Cone
Blank Cone
Posts: 29
Joined: 16 Jun 2011 21:43

Re: VLC can play stream while LibVLC hangs

Postby adish » 17 Mar 2013 15:14

Yes! That was it.
Thanks.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC can play stream while LibVLC hangs

Postby Jean-Baptiste Kempf » 17 Mar 2013 16:32

:)
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 11 guests