Page 1 of 1

problems with vlc H.261 decode

Posted: 01 Dec 2012 21:23
by gonzo1948
I am having problems getting vlc to receive a RTP/H.261 video stream. I am using a separate SDP file:

Code: Select all

v=0 o=andres 12345 123456 IN IP4 127.0.0.1 s=almds server i=bla bla bla t=0 0 a=sendonly m=video 8000 RTP/AVP 31 c=IN IP4 239.0.0.10/1 a=rtpmap:31 H261/90000 a=fmtp:31 CIF=2;D=1
All I get is a green screen and no video stream. Here is the message output:

Code: Select all

main debug: adding item `almdsH261.sdp' ( file:///home/andres/almdsH261.sdp ) qt4 debug: Adding a new MRL to recent ones: /home/andres/almdsH261.sdp main debug: rebuilding array of current - root Playlist main debug: rebuild done - 9 items, index 7 main debug: processing request item almdsH261.sdp node Playlist skip 0 main debug: resyncing on almdsH261.sdp main debug: almdsH261.sdp is at 8 main debug: starting new item main debug: creating new input thread main debug: Creating an input for 'almdsH261.sdp' main debug: thread (input) created at priority 10 (input/input.c:214) main debug: TIMER input launching for 'almdsH261.sdp' : 16.014 ms - Total 16.014 ms / 1 intvls (Avg 16.014 ms) main debug: Creating an input for 'almdsH261.sdp' main debug: thread started main debug: using timeshift granularity of 50 MiB main debug: using timeshift path '/tmp' main debug: `file:///home/andres/almdsH261.sdp' gives access `file' demux `' path `/home/andres/almdsH261.sdp' main debug: creating demux: access='file' demux='' path='/home/andres/almdsH261.sdp' main debug: looking for access_demux module: 2 candidates main debug: no access_demux module matching "file" could be loaded main debug: TIMER module_need() : 0.554 ms - Total 0.554 ms / 1 intvls (Avg 0.554 ms) main debug: creating access 'file' path='/home/andres/almdsH261.sdp' main debug: looking for access module: 2 candidates filesystem debug: opening file `/home/andres/almdsH261.sdp' main debug: using access module "filesystem" main debug: TIMER module_need() : 0.466 ms - Total 0.466 ms / 1 intvls (Avg 0.466 ms) main debug: Using AStream*Stream main debug: pre buffering main debug: received first data after 0 ms main debug: pre-buffering done 178 bytes in 0s - 5112 KiB/s main debug: looking for stream_filter module: 5 candidates main debug: no stream_filter module matching "any" could be loaded main debug: TIMER module_need() : 0.401 ms - Total 0.401 ms / 1 intvls (Avg 0.401 ms) main debug: looking for stream_filter module: 1 candidate main debug: using stream_filter module "stream_filter_record" main debug: TIMER module_need() : 0.381 ms - Total 0.381 ms / 1 intvls (Avg 0.381 ms) main debug: creating demux: access='file' demux='' path='/home/andres/almdsH261.sdp' main debug: looking for demux module: 52 candidates live555 debug: RTP subsession 'video/H261' main debug: selecting program id=0 live555 debug: setup start: 0.000000 stop:0.000000 live555 debug: play start: 0.000000 stop:0.000000 main debug: using demux module "live555" main debug: TIMER module_need() : 1.200 ms - Total 1.200 ms / 1 intvls (Avg 1.200 ms) main debug: looking for a subtitle file in /home/andres/ main debug: looking for decoder module: 30 candidates avcodec debug: libavcodec already initialized avcodec debug: trying to use direct rendering avcodec debug: ffmpeg codec (H.261) started main debug: using decoder module "avcodec" main debug: TIMER module_need() : 2.250 ms - Total 2.250 ms / 1 intvls (Avg 2.250 ms) main debug: thread (decoder) created at priority 0 (input/decoder.c:301) main debug: thread started main debug: no fetch required for (null) (art currently (null)) main debug: looking for meta reader module: 2 candidates lua debug: Trying Lua scripts in /home/andres/.local/share/vlc/lua/meta/reader lua debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader lua debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader main debug: no meta reader module matching "any" could be loaded main debug: TIMER module_need() : 2.029 ms - Total 2.029 ms / 1 intvls (Avg 2.029 ms) main debug: `file:///home/andres/almdsH261.sdp' successfully opened qt4 debug: IM: Setting an input main debug: Buffering 0% main debug: no usable vout present, spawning one main debug: looking for text renderer module: 2 candidates freetype debug: Building font databases. freetype debug: Using Serif Bold as font from file /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf freetype debug: using fontsize: 2 main debug: using text renderer module "freetype" main debug: TIMER module_need() : 3.243 ms - Total 3.243 ms / 1 intvls (Avg 3.243 ms) main debug: Buffering 0% main debug: Buffering 0% main debug: looking for video filter2 module: 15 candidates swscale debug: 32x32 chroma: YUVA -> 16x16 chroma: YUVA with scaling using Bicubic (good quality) main debug: using video filter2 module "swscale" main debug: TIMER module_need() : 2.020 ms - Total 2.020 ms / 1 intvls (Avg 2.020 ms) main debug: Buffering 0% main debug: looking for video filter2 module: 15 candidates yuvp debug: YUVP to YUVA converter main debug: using video filter2 module "yuvp" main debug: TIMER module_need() : 0.768 ms - Total 0.768 ms / 1 intvls (Avg 0.768 ms) main debug: window size: 352x288 main debug: Deinterlacing available main debug: deinterlace 0, mode blend, is_needed 0 main debug: looking for video output module: 1 candidate vout_wrapper debug: Opening vout display wrapper main debug: looking for vout display module: 7 candidates main debug: looking for vout window xid module: 4 candidates qt4 debug: requesting video... main debug: Buffering 0% main debug: Buffering 0% main debug: Buffering 0% qt4 debug: Video was requested 0, 0 main debug: using vout window xid module "qt4" main debug: TIMER module_need() : 130.159 ms - Total 130.159 ms / 1 intvls (Avg 130.159 ms) main debug: looking for inhibit module: 1 candidate main debug: using inhibit module "xdg_screensaver" main debug: TIMER module_need() : 0.654 ms - Total 0.654 ms / 1 intvls (Avg 0.654 ms) xdg_screensaver debug: started xdg-screensaver (PID = 12506) xcb_xv debug: connected to X11.0 server xcb_xv debug: vendor : The X.Org Foundation xcb_xv debug: version: 10707000 xcb_xv debug: using screen 0x108 xcb_xv debug: using XVideo extension v2.2 xcb_xv debug: using adaptor Intel(R) Textured Video xcb_xv debug: using port 77 xcb_xv debug: using image format 0x30323449 xcb_xv debug: using X11 visual ID 0x21 (depth: 24) xcb_xv debug: using X11 window 0x03800000 xcb_xv debug: using X11 graphic context 0x03800002 main debug: VoutDisplayEvent 'fullscreen' 0 main debug: VoutDisplayEvent 'resize' 352x288 window main debug: using vout display module "xcb_xv" main debug: TIMER module_need() : 140.764 ms - Total 140.764 ms / 1 intvls (Avg 140.764 ms) main debug: using video output module "vout_wrapper" main debug: TIMER module_need() : 141.374 ms - Total 141.374 ms / 1 intvls (Avg 141.374 ms) main debug: got 25 direct buffer(s) main debug: pic render sz 352x288, of (0,0), vsz 352x288, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0 main debug: pic in sz 352x288, of (0,0), vsz 352x288, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0 main debug: pic out sz 352x288, of (0,0), vsz 352x288, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0 main debug: direct render, mapping render pictures 0-23 to system pictures 1-24 avcodec debug: using direct rendering xcb_xv debug: display is visible main debug: End of video preroll main debug: Received first picture freetype debug: using fontsize: 18 main debug: looking for video blending module: 1 candidate blend debug: chroma: YUVA -> I420 main debug: using video blending module "blend" main debug: TIMER module_need() : 0.594 ms - Total 0.594 ms / 1 intvls (Avg 0.594 ms) main debug: Buffering 0% main debug: Buffering 0% main debug: Post-processing available main warning: vlc_object_find_name(postproc) is not safe! main debug: Buffering 0% main debug: VoutDisplayEvent 'resize' 427x288 window main debug: Buffering 0% main debug: Buffering 0% main debug: Buffering 0% main debug: Buffering 0% . . repeated many times . main debug: Buffering 0% main debug: Buffering 0% xcb_xv debug: display is visible main debug: auto hidding mouse main debug: Buffering 0% main debug: Buffering 0% main debug: Buffering 0% . . repeated many, many times . main debug: Buffering 0% main debug: Buffering 0% main debug: Buffering 0% main debug: incoming request - stopping current input main debug: dying input xcb_xv debug: display is visible main debug: control type=0 main debug: control: stopping input main debug: dying input main warning: early picture skipped main warning: early picture skipped main warning: early picture skipped main warning: early picture skipped main warning: early picture skipped avcodec warning: cannot decode one frame (1389 bytes) avcodec debug: ffmpeg codec (H.261) stopped main debug: removing module "avcodec" main debug: killing decoder fourcc `h261', 208 PES in FIFO main debug: [0] 4 0 main debug: [1] 4 0 main debug: [2] 2 0 main debug: [3] 4 0 main debug: [4] 4 0 main debug: [5] 4 0 main debug: [6] 4 0 main debug: [7] 4 0 main debug: [8] 4 0 main debug: [9] 4 0 main debug: [10] 4 0 main debug: [11] 4 0 main debug: [12] 4 0 main debug: [13] 4 0 main debug: [14] 4 0 main debug: [15] 4 0 main debug: [17] 4 0 main debug: [18] 4 0 main debug: [19] 4 0 main debug: [20] 4 0 main debug: [21] 4 0 main debug: [22] 4 0 main debug: [23] 4 0 main debug: saving a free vout main debug: removing module "live555" main debug: removing module "stream_filter_record" main debug: removing module "filesystem" main debug: Program doesn't contain anymore ES main debug: thread ended main debug: dead input main debug: destroying useless vout main debug: removing module "xdg_screensaver" qt4 debug: releasing video... qt4 debug: IM: Deleting the input qt4 debug: Video is not needed anymore main debug: removing module "qt4" main debug: removing module "xcb_xv" main debug: removing module "vout_wrapper" main debug: removing module "blend" main debug: removing module "freetype" main debug: removing module "yuvp" main debug: removing module "swscale" main debug: [16] 4 0
Is there anything else I need to specify to fix the buffering problem??

Thanks,

-Andres

Re: problems with vlc H.261 decode

Posted: 02 Dec 2012 18:28
by Jean-Baptiste Kempf
Not sure if a lot of people have actually tested H261 since a long time...