[streaming] No Video in H264 streaming

Rosario Mattera manofhonour at tin.it
Sat Jan 23 12:54:24 CET 2010


Hi,
I'm streaming a H.264 video with RTP module and TS muxer. 
My problem is that only audio is available while the screen is black.

My shell client-side is:

VLC media player 0.9.9a Grishenko
[00000001] main libvlc debug: VLC media player - version 0.9.9a
Grishenko - (c) 1996-2009 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure
'--build=i486-linux-gnu' '--enable-maintainer-mode' '--enable-release'
'--prefix=/usr' '--enable-libtool' '--enable-fast-install'
'--with-binary-version=2ubuntu1' '--disable-update-check'
'--disable-gnome' '--disable-gtk' '--disable-familiar' '--disable-fb'
'--enable-ggi' '--enable-sdl' '--enable-esd' '--enable-mad'
'--enable-jack' '--enable-pulse' '--enable-lirc' '--enable-a52'
'--enable-aa' '--enable-dvbpsi' '--enable-mozilla'
'--with-mozilla-pkg=libxul-plugin' '--disable-kde' '--enable-mp4'
'--enable-dvb' '--disable-satellite' '--enable-ogg' '--enable-vorbis'
'--enable-shout' '--enable-qt4' '--disable-slp' '--enable-flac'
'--disable-skins' '--disable-basic-skins' '--enable-skins2'
'--enable-freetype' '--enable-mkv' '--enable-speex' '--enable-caca'
'--enable-live555' '--enable-libmpeg2' '--enable-fribidi'
'--enable-cdio' '--enable-mod' '--enable-theora' '--enable-modplug'
'--enable-dvdnav' '--enable-gnutls' '--enable-ffmpeg' '--enable-ncurses'
'--enable-smb' '--disable-gnomevfs' '--enable-bonjour' '--enable-mpc'
'--enable-vcd' '--enable-vcdx' '--enable-notify' '--enable-twolame'
'--enable-faad' '--disable-zvbi' '--enable-telx'
'--enable-mediacontrol-bindings' '--disable-atmo' '--enable-taglib'
'--enable-libass' '--enable-libdca' '--enable-realrtsp' '--disable-dv'
'--enable-x264' '--enable-alsa' '--enable-v4l' '--enable-v4l2'
'--enable-pvr' '--enable-svgalib' '--enable-dvd' '--without-dvdcss'
'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2' 'LDFLAGS=-Wl,--as-needed'
'CPPFLAGS=' 'CXXFLAGS=-g -O2'
[00000001] main libvlc debug: translation test: code is "C"
[00000001] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT
SSE SSE2 FPU 
[00000001] main libvlc debug: looking for memcpy module: 3 candidates
[00000001] main libvlc debug: using memcpy module "memcpymmxext"
[00000368] main interaction debug: thread started
[00000368] main interaction debug: thread 3079306128 (Interaction
control) created at priority 0 (interface/interaction.c:382)
[00000370] main input debug: Creating an input for 'Media Library'
[00000370] main input debug: Input is a meta file: disabling unneeded
options
[00000370] main input debug:
`file/xspf-open:///home/ant4r3s/.local/share/vlc/ml.xspf' gives access
`file' demux `xspf-open' path `/home/ant4r3s/.local/share/vlc/ml.xspf'
[00000370] main input debug: creating access 'file'
path='/home/ant4r3s/.local/share/vlc/ml.xspf'
[00000371] main access debug: looking for access module: 3 candidates
[00000371] access_file access debug: opening file
`/home/ant4r3s/.local/share/vlc/ml.xspf'
[00000371] main access debug: using access module "access_file"
[00000371] main access debug: TIMER module_Need() : 0,707 ms - Total
0,707 ms / 1 intvls (Avg 0,707 ms)
[00000376] main stream debug: Using AStream*Stream
[00000376] main stream debug: pre-buffering...
[00000376] main stream debug: received first data for our buffer
[00000370] main input debug: creating demux: access='file'
demux='xspf-open' path='/home/ant4r3s/.local/share/vlc/ml.xspf'
[00000377] main demux debug: looking for demux module: 1 candidate
[00000377] playlist demux debug: using XSPF playlist reader
[00000377] main demux debug: using demux module "playlist"
[00000377] main demux debug: TIMER module_Need() : 0,456 ms - Total
0,456 ms / 1 intvls (Avg 0,456 ms)
[00000370] main input debug:
`file/xspf-open:///home/ant4r3s/.local/share/vlc/ml.xspf' successfully
opened
[00000392] main xml debug: looking for xml module: 2 candidates
[00000392] main xml debug: using xml module "xml"
[00000392] main xml debug: TIMER module_Need() : 0,686 ms - Total 0,686
ms / 1 intvls (Avg 0,686 ms)
[00000377] playlist demux debug: parsed 0 tracks successfully
[00000392] main xml debug: removing module "xml"
[00000370] main input debug: EOF reached
[00000370] main input debug: control type=1
[00000377] main demux debug: removing module "playlist"
[00000371] main access debug: removing module "access_file"
[00000370] main input debug: TIMER input launching for 'Media Library' :
4,294 ms - Total 4,294 ms / 1 intvls (Avg 4,294 ms)
[00000394] main preparser debug: thread started
[00000394] main preparser debug: waiting for thread initialization
[00000394] main preparser debug: thread 3070913424 (preparser) created
at priority 0 (playlist/thread.c:79)
[00000395] main fetcher debug: thread started
[00000395] main fetcher debug: waiting for thread initialization
[00000395] main fetcher debug: thread 3056765840 (fetcher) created at
priority 0 (playlist/thread.c:108)
[00000369] main playlist debug: thread started
[00000369] main playlist debug: waiting for thread initialization
[00000369] main playlist debug: rebuilding array of current - root
Playlist
[00000369] main playlist debug: rebuild done - 0 items, index -1
[00000369] main playlist debug: thread 3048373136 (playlist) created at
priority 0 (playlist/thread.c:117)
[00000396] main interface debug: looking for interface module: 1
candidate
[00000396] main interface debug: using interface module "hotkeys"
[00000396] main interface debug: TIMER module_Need() : 0,222 ms - Total
0,222 ms / 1 intvls (Avg 0,222 ms)
[00000396] main interface debug: thread started
[00000396] main interface debug: thread 3039980432 (interface) created
at priority 0 (interface/interface.c:168)
[00000398] main interface debug: looking for interface module: 1
candidate
[00000398] main interface debug: using interface module "inhibit"
[00000398] main interface debug: TIMER module_Need() : 4,333 ms - Total
4,333 ms / 1 intvls (Avg 4,333 ms)
[00000398] main interface debug: thread started
[00000398] main interface debug: thread 3031587728 (interface) created
at priority 0 (interface/interface.c:168)
[00000400] main interface debug: looking for interface module: 1
candidate
[00000400] main interface debug: using interface module "screensaver"
[00000400] main interface debug: TIMER module_Need() : 0,364 ms - Total
0,364 ms / 1 intvls (Avg 0,364 ms)
[00000400] main interface debug: thread started
[00000400] main interface debug: thread 3023195024 (interface) created
at priority 0 (interface/interface.c:168)
[00000402] main interface debug: looking for interface module: 22
candidates
[00000402] main interface debug: using interface module "signals"
[00000402] main interface debug: TIMER module_Need() : 0,287 ms - Total
0,287 ms / 1 intvls (Avg 0,287 ms)
[00000402] main interface debug: thread started
[00000402] main interface debug: thread 3006409616 (interface) created
at priority 0 (interface/interface.c:168)
[00000001] main libvlc: Running vlc with the default interface. Use
'cvlc' to use vlc without interface.
[00000404] main interface debug: looking for interface module: 4
candidates
[00000404] main interface debug: using interface module "qt4"
[00000404] main interface debug: TIMER module_Need() : 33,464 ms - Total
33,464 ms / 1 intvls (Avg 33,464 ms)
[00000404] main interface debug: thread started
[00000404] main interface debug: thread 2983488400 (interface) created
at priority 0 (interface/interface.c:168)
[00000404] qt4 interface debug: Error while initializing qt-specific
localization
[00000404] qt4 interface debug: New item: rtp://@localhost:1234
[00000369] main playlist debug: adding item
`rtp://@localhost:1234' ( rtp://@localhost:1234 )
[00000369] main playlist debug: rebuilding array of current - root
Playlist
[00000369] main playlist debug: rebuild done - 1 items, index -1
[00000369] main playlist debug: starting new item
[00000369] main playlist debug: processing request item
rtp://@localhost:1234 node null skip 0
[00000369] main playlist debug: resyncing on rtp://@localhost:1234
[00000369] main playlist debug: rtp://@localhost:1234 is at 0
[00000369] main playlist debug: creating new input thread
[00000407] main input debug: Creating an input for
'rtp://@localhost:1234'
[00000407] main input debug: thread started
[00000407] main input debug: waiting for thread initialization
[00000407] main input debug: `rtp://@localhost:1234' gives access `rtp'
demux `' path `@localhost:1234'
[00000407] main input debug: creating demux: access='rtp' demux=''
path='@localhost:1234'
[00000408] main demux debug: looking for access_demux module: 1
candidate
[00000408] main demux debug: net: opening localhost datagram port 1234
[00000408] main demux debug: net: opening localhost datagram port 1235
[00000408] main demux debug: using access_demux module "rtp"
[00000408] main demux debug: TIMER module_Need() : 2,020 ms - Total
2,020 ms / 1 intvls (Avg 2,020 ms)
[00000407] main input debug: `rtp://@localhost:1234' successfully opened
[00000408] rtp demux debug: detected MPEG2 TS
[00000408] rtp demux debug: added payload type 33 (f = 90000 Hz)
[00000410] main stream debug: thread started
[00000410] main stream debug: creating demux: access='' demux='ts'
path=''
[00000407] main input debug: thread 2943466384 (input) created at
priority 10 (input/input.c:370)
[00000404] qt4 interface debug: Updating the stream status: 3
[00000410] main stream debug: thread 2934553488 (stream out) created at
priority 10 (input/demux.c:358)
[00000408] rtp demux debug: added RTP source (d34209b4)
[00000407] main input debug: control type=1
[00000411] main demux debug: looking for demux module: 1 candidate
[00000411] main demux debug: using demux module "ts"
[00000411] main demux debug: TIMER module_Need() : 1,527 ms - Total
1,527 ms / 1 intvls (Avg 1,527 ms)
[00000411] ts demux debug: pid[69] unknown
[00000411] ts demux debug: pid[68] unknown
libdvbpsi error (PSI decoder): TS discontinuity (received 5, expected 0)
for PID 0
[00000411] ts demux debug: PATCallBack called
[00000411] ts demux debug: new PAT ts_id=16360 version=16 current_next=1
[00000411] ts demux debug:   * number=1 pid=66
libdvbpsi error (PSI decoder): TS discontinuity (received 5, expected 0)
for PID 66
[00000411] ts demux debug: PMTCallBack called
[00000411] ts demux debug: new PMT program number=1 version=5 pid_pcr=69
[00000411] ts demux debug:  * descriptor : IOD (0x1d)
[00000411] ts demux debug:   * es pid=68 type=15 fcc=mp4a
[00000407] main input debug: selecting program id=1
[00000413] main decoder debug: looking for decoder module: 30 candidates
[00000413] main decoder debug: using decoder module "faad"
[00000413] main decoder debug: TIMER module_Need() : 4,696 ms - Total
4,696 ms / 1 intvls (Avg 4,696 ms)
[00000439] main packetizer debug: looking for packetizer module: 18
candidates
[00000404] qt4 interface debug: New Event: type 1108
[00000439] packetizer_mpeg4audio packetizer debug: running MPEG4 audio
packetizer
[00000439] packetizer_mpeg4audio packetizer debug: no decoder specific
info, must be an ADTS or LOAS stream
[00000439] main packetizer debug: using packetizer module
"packetizer_mpeg4audio"
[00000439] main packetizer debug: TIMER module_Need() : 1,799 ms - Total
1,799 ms / 1 intvls (Avg 1,799 ms)
[00000413] main decoder debug: thread started
[00000413] main decoder debug: thread 2921986960 (decoder) created at
priority 5 (input/decoder.c:217)
[00000411] ts demux debug:   * es pid=69 type=27 fcc=h264
[00000452] main decoder debug: looking for decoder module: 30 candidates
[00000452] avcodec decoder debug: libavcodec initialized (interface
3412992 )
[00000452] avcodec decoder debug: ffmpeg codec (H264 - MPEG-4 AVC (part
10)) started
[00000452] main decoder debug: using decoder module "avcodec"
[00000452] main decoder debug: TIMER module_Need() : 35,398 ms - Total
35,398 ms / 1 intvls (Avg 35,398 ms)
[00000460] main packetizer debug: looking for packetizer module: 18
candidates
[00000460] main packetizer debug: using packetizer module
"packetizer_h264"
[00000460] main packetizer debug: TIMER module_Need() : 0,262 ms - Total
0,262 ms / 1 intvls (Avg 0,262 ms)
[00000452] main decoder debug: thread started
[00000452] main decoder debug: thread 2905037712 (decoder) created at
priority 0 (input/decoder.c:217)
[00000411] ts demux warning: first packet for pid=69 cc=0xb
[00000411] ts demux warning: first packet for pid=68 cc=0xf
[00000439] packetizer_mpeg4audio packetizer debug: detected ADTS format
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000439] packetizer_mpeg4audio packetizer: AAC channels: 2 samplerate:
44100
[00000413] faad decoder warning: decoded zero sample
[00000413] main decoder debug: no aout present, spawning one
[00000461] main audio output debug: looking for audio output module: 3
candidates
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000461] alsa audio output debug: opening ALSA device `default'
[00000461] main audio output debug: thread started
[00000461] main audio output debug: thread 2820635536 (aout) created at
priority 15 (alsa.c:687)
[00000461] main audio output debug: using audio output module "alsa"
[00000461] main audio output debug: TIMER module_Need() : 29,209 ms -
Total 29,209 ms / 1 intvls (Avg 29,209 ms)
[00000461] main audio output debug: output 'fl32' 44100 Hz Stereo
frame=1 samples/8 bytes
[00000461] main audio output debug: mixer 'fl32' 44100 Hz Stereo frame=1
samples/8 bytes
[00000461] main audio output debug: no need for any filter
[00000461] main audio output debug: looking for audio mixer module: 3
candidates
[00000461] main audio output debug: using audio mixer module
"float32_mixer"
[00000461] main audio output debug: TIMER module_Need() : 0,454 ms -
Total 0,454 ms / 1 intvls (Avg 0,454 ms)
[00000461] main audio output debug: input 'fl32' 44100 Hz Stereo frame=1
samples/8 bytes
[00000461] main audio output debug: filter(s) 'fl32'->'fl32' 48510
Hz->44100 Hz Stereo->Stereo
[00000463] main audio output debug: looking for audio filter module: 24
candidates
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000463] main audio output debug: using audio filter module
"bandlimited_resampler"
[00000463] main audio output debug: TIMER module_Need() : 12,099 ms -
Total 12,099 ms / 1 intvls (Avg 12,099 ms)
[00000461] main audio output debug: found a filter for the whole
conversion
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer warning: waiting for SPS/PPS
[00000460] packetizer_h264 packetizer debug: found NAL_SPS (sps_id=0)
[00000460] packetizer_h264 packetizer debug: found NAL_PPS (pps_id=0
sps_id=0)
[00000452] main decoder debug: no usable vout present, spawning one
[00000472] main video output debug: window size: 1280x720
[00000472] main video output debug: looking for video output module: 6
candidates
[00000472] xvideo video output debug: adaptor 0, port 57, format
0x32315659 (YV12) planar
[00000475] main window debug: looking for vout window module: 1
candidate
[00000475] main window debug: TIMER module_Need() : 27,224 ms - Total
27,224 ms / 1 intvls (Avg 27,224 ms)
[00000475] main window debug: no window provider available
[00000472] xvideo video output debug: XShm video extension v1.1 (without
pixmaps, opcode: 140)
[00000472] xvideo video output debug: Window manager supports NetWM
[00000472] xvideo video output debug: Window manager supports
_NET_WM_STATE_FULLSCREEN
[00000472] xvideo video output debug: Window manager supports
_NET_WM_STATE_ABOVE
[00000472] xvideo video output debug: Window manager supports
_NET_WM_STATE_BELOW
[00000472] main video output debug: using video output module "xvideo"
[00000472] main video output debug: TIMER module_Need() : 262,129 ms -
Total 262,129 ms / 1 intvls (Avg 262,129 ms)
[00000472] main video output debug: thread started
[00000472] main video output debug: got 8 direct buffer(s)
[00000472] main video output debug: picture in 1280x720 (0,0,1280x720),
chroma I420, ar 16:9, sar 1:1
[00000472] main video output debug: picture user 1280x720
(0,0,1280x720), chroma I420, ar 16:9, sar 1:1
[00000472] main video output debug: picture out 1280x720 (0,0,1280x720),
chroma I420, ar 16:9, sar 1:1
[00000472] main video output debug: direct render, mapping render
pictures 0-6 to system pictures 1-7
[00000472] main video output debug: waiting for thread initialization
[00000472] main video output debug: thread 2808638352 (video output)
created at priority 15 (video_output/video_output.c:502)
[00000404] qt4 interface debug: New Event: type 1109
[00000461] main audio output warning: output date isn't PTS date,
requesting resampling (62571)
[00000461] main audio output warning: buffer is 62843 late, triggering
upsampling
[00000461] main audio output warning: resampling stopped after 12090656
usec (drift: 1062)
[00000461] alsa audio output debug: recovered from buffer underrun
[00000369] main playlist debug: incoming request - stopping current
input
[00000408] main demux debug: waitpipe: object killed
[00000369] main playlist debug: dying input
[00000408] main demux debug: socket 25 polling interrupted
[00000407] main input debug: EOF reached
[00000407] main input debug: control type=0
[00000407] main input debug: control: stopping input
[00000408] rtp demux debug: removing RTP source (d34209b4)
[00000411] ts demux debug: eof ?
[00000410] main stream debug: thread ended
[00000410] main stream debug: thread 2934553488 joined
(input/demux.c:385)
[00000411] ts demux debug: pid list:
[00000411] ts demux debug:   - pid[0] seen
[00000411] ts demux debug:   - pid[66] seen
[00000413] main decoder debug: removing module "faad"
[00000413] main decoder debug: thread ended
[00000413] main decoder debug: thread 2921986960 joined
(input/decoder.c:248)
[00000413] main decoder debug: killing decoder fourcc `mp4a', 0 PES in
FIFO
[00000463] main audio output debug: removing module
"bandlimited_resampler"
[00000404] qt4 interface debug: Updating the stream status: 8
[00000461] main audio output debug: thread ended
[00000461] main audio output debug: thread 2820635536 joined
(alsa.c:742)
[00000461] main audio output debug: removing module "alsa"
[00000461] main audio output debug: removing module "float32_mixer"
[00000439] main packetizer debug: removing module
"packetizer_mpeg4audio"
[00000411] ts demux debug:   - pid[68] seen
[00000452] avcodec decoder debug: ffmpeg codec (H264 - MPEG-4 AVC (part
10)) stopped
[00000452] main decoder debug: removing module "avcodec"
[00000452] main decoder debug: thread ended
[00000452] main decoder debug: thread 2905037712 joined
(input/decoder.c:248)
[00000452] main decoder debug: killing decoder fourcc `h264', 0 PES in
FIFO
[00000369] main playlist debug: dying input
[00000472] main video output debug: thread ended
[00000472] main video output debug: thread 2808638352 joined
(video_output/video_output.c:536)
[00000472] main video output debug: removing module "xvideo"
[00000460] main packetizer debug: removing module "packetizer_h264"
[00000407] main input debug: Program doesn't contain anymore ES
[00000411] ts demux debug:   - pid[69] seen
[00000411] ts demux debug:   - pid[8191] seen
[00000411] main demux debug: removing module "ts"
[00000408] message demux warning: message queue overflowed
[00000408] main demux debug: removing module "rtp"
[00000407] main input debug: thread ended
[00000369] main playlist debug: dead input
[00000407] main input debug: thread 2943466384 joined
(playlist/engine.c:244)
[00000407] main input debug: TIMER input launching for
'rtp://@localhost:1234' : 28,450 ms - Total 28,450 ms / 1 intvls (Avg
28,450 ms)


Can anyone suggest me a solution?
Thank you so much

Rosario Mattera



More information about the streaming mailing list