Problem about streaming H.264 encoded flv files over UDP

About encoding, codec settings, muxers and filter usage
ruibob
New Cone
New Cone
Posts: 2
Joined: 03 Dec 2009 04:57

Problem about streaming H.264 encoded flv files over UDP

Postby ruibob » 04 Dec 2009 05:06

Hi,all. I have some trouble when stream H.264 encoded flv files over UDP using TS. The server seems to work, but the client does not output video. I think the decoder does not work, but not for sure. Could anybody have a look and lend some help ?

Both the server and client use vlc 1.03, windows version.

the commandline use for client: vlc -vvv -I dummy udp://@127.0.0.1:1234
the commandline use for server: vlc "D:\test.flv" :sout=#std{access=udp,mux=ts,dst=127.0.0.1:1234} -I dummy

the console output for server:

[0xc131dc] dummy interface: using the dummy interface module...
[0xc01044] packetizer_mpeg4audio packetizer: AAC channels: 2 samplerate: 48000

the console output for client:

[0xc20d6c] dummy interface: using the dummy interface module...
[0xc20d6c] main interface debug: using interface module "dummy"
[0xc20d6c] main interface debug: TIMER module_need() : 11.000 ms - Total 11.000
ms / 1 intvls (Avg 11.000 ms)
[0xc20d6c] main interface debug: thread (interface) created at priority 0 (inter
face/interface.c:151)
[0xbf4e3c] main playlist debug: rebuilding array of current - root 播放列表
[0xbf4e3c] main playlist debug: rebuild done - 1 items, index -1
[0xc20d6c] main interface debug: thread started
[0xbf4e3c] main playlist debug: processing request item null node 播放列表 skip
0
[0xbf4e3c] main playlist debug: starting new item
[0xc20d6c] main interface debug: thread ended
[0xbf4e3c] main playlist debug: creating new input thread
[0xc16dcc] main input debug: Creating an input for 'udp://127.0.0.1:1234'
[0xc16dcc] main input debug: thread (input) created at priority 1 (input/input.c
:230)
[0xc16dcc] main input debug: thread started
[0xc16dcc] main input debug: using timeshift granularity of 50 MBytes
[0xc16dcc] main input debug: using timeshift path 'C:\DOCUME~1\csm\LOCALS~1\Temp
'
[0xc16dcc] main input debug: `udp://@127.0.0.1:1234' gives access `udp' demux `'
path `@127.0.0.1:1234'
[0xc16dcc] main input debug: creating demux: access='udp' demux='' path='@127.0.
0.1:1234'
[0xc20604] main demux debug: looking for access_demux module: 0 candidates
[0xc20604] main demux debug: no access_demux module matched "udp"
[0xc20604] main demux debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1
intvls (Avg 0.000 ms)
[0xc16dcc] main input debug: creating access 'udp' path='@127.0.0.1:1234'
[0xc1f5ec] main access debug: looking for access module: 1 candidate
[0xc1f5ec] access_udp access debug: opening server=:0 local=127.0.0.1:1234
[0xc1f5ec] main access debug: net: opening 127.0.0.1 datagram port 1234
[0xc1f5ec] main access debug: using access module "access_udp"
[0xc1f5ec] main access debug: TIMER module_need() : 18.000 ms - Total 18.000 ms
/ 1 intvls (Avg 18.000 ms)
[0xc17dbc] main stream debug: Using AStream*Block
[0xc17dbc] main stream debug: pre buffering
[0xc17dbc] main stream debug: received first data after 45 ms
[0xc17dbc] main stream debug: prebuffering done 1316 bytes in 0s - 28 kbytes/s
[0xbef5d4] main stream debug: looking for stream_filter module: 2 candidates
[0xbef5d4] main stream debug: TIMER module_need() : 0.000 ms - Total 0.000 ms /
1 intvls (Avg 0.000 ms)
[0xbef5d4] main stream debug: looking for stream_filter module: 1 candidate
[0xbef5d4] main stream debug: using stream_filter module "stream_filter_record"
[0xbef5d4] main stream debug: TIMER module_need() : 0.000 ms - Total 0.000 ms /
1 intvls (Avg 0.000 ms)
[0xc16dcc] main input debug: creating demux: access='udp' demux='' path='@127.0.
0.1:1234'
[0xc20604] main demux debug: looking for demux module: 51 candidates
[0xc20604] main demux debug: using demux module "ts"
[0xc20604] main demux debug: TIMER module_need() : 366.000 ms - Total 366.000 ms
/ 1 intvls (Avg 366.000 ms)
[0xc16dcc] main input debug: looking for a subtitle file in D:\Program Files\Vid
eoLAN\VLC\
[0xc20604] ts demux debug: DEMUX_SET_GROUP 0 0
[0xc1f5ec] access_udp access warning: unimplemented query in control
[0xc16dcc] main input debug: `udp://@127.0.0.1:1234' successfully opened
[0xc20604] ts demux debug: pid[68] unknown
libdvbpsi error (PSI decoder): TS discontinuity (received 5, expected 0) for PID
0
[0xc20604] ts demux debug: PATCallBack called
[0xc20604] ts demux debug: new PAT ts_id=19166 version=31 current_next=1
[0xc20604] ts demux debug: * number=1 pid=66
libdvbpsi error (PSI decoder): TS discontinuity (received 5, expected 0) for PID
66
[0xc20604] ts demux debug: PMTCallBack called
[0xc20604] ts demux debug: new PMT program number=1 version=7 pid_pcr=68
[0xc20604] ts demux debug: * descriptor : IOD (0x1d)
[0xc20604] ts demux error: MPEG-4 descriptor not found
[0xc20604] ts demux debug: * es pid=68 type=15 fcc=mp4a
[0xc16dcc] main input debug: selecting program id=1
[0xc0228c] main decoder debug: looking for decoder module: 35 candidates
[0xc0228c] main decoder debug: using decoder module "faad"
[0xc0228c] main decoder debug: TIMER module_need() : 8.000 ms - Total 8.000 ms /
1 intvls (Avg 8.000 ms)
[0xc1245c] main packetizer debug: looking for packetizer module: 21 candidates
[0xc1245c] packetizer_mpeg4audio packetizer debug: running MPEG4 audio packetize
r
[0xc1245c] packetizer_mpeg4audio packetizer debug: no decoder specific info, mus
t be an ADTS or LOAS stream
[0xc1245c] main packetizer debug: using packetizer module "packetizer_mpeg4audio
"
[0xc1245c] main packetizer debug: TIMER module_need() : 10.000 ms - Total 10.000
ms / 1 intvls (Avg 10.000 ms)
[0xc0228c] main decoder debug: thread (decoder) created at priority 2 (input/dec
oder.c:315)
[0xc0228c] main decoder debug: thread started
[0xc1245c] packetizer_mpeg4audio packetizer debug: detected ADTS format
[0xc16dcc] main input debug: Buffering 0%
[0xc1245c] packetizer_mpeg4audio packetizer: AAC channels: 2 samplerate: 48000
[0xc16dcc] main input debug: Buffering 22%
[0xc16dcc] main input debug: Buffering 45%
[0xc0228c] faad decoder warning: decoded zero sample
[0xc16dcc] main input debug: creating aout
[0xbf702c] main audio output debug: looking for audio output module: 3 candidate
s
[0xbf702c] aout_directx audio output debug: OpenAudio
[0xc16dcc] main input debug: Buffering 77%
[0xbf702c] aout_directx audio output debug: found device:
[0xbf702c] aout_directx audio output debug: found device: SoundMAX HD Audio
[0xbf702c] aout_directx audio output debug: device supports 2 channels (DEFAULT!
)
[0xbf702c] aout_directx audio output debug: device supports 1 channel
[0xbf702c] aout_directx audio output debug: creating DirectSoundThread
[0xcbf4bc] main generic debug: thread (DirectSound Notification Thread) created
at priority 15 (directx.c:427)
[0xcbf4bc] main generic debug: thread started
[0xbf702c] main audio output debug: using audio output module "aout_directx"
[0xcbf4bc] aout_directx generic debug: DirectSoundThread ready
[0xbf702c] main audio output debug: TIMER module_need() : 53.000 ms - Total 53.0
00 ms / 1 intvls (Avg 53.000 ms)
[0xbf702c] main audio output debug: output 's16l' 48000 Hz Stereo frame=1 sample
s/4 bytes
[0xbf702c] main audio output debug: mixer 'fl32' 48000 Hz Stereo frame=1 samples
/8 bytes
[0xbf702c] main audio output debug: filter(s) 'fl32'->'s16l' 48000 Hz->48000 Hz
Stereo->Stereo
[0xc20e1c] main audio output debug: looking for audio filter module: 24 candidat
es
[0xc20e1c] main audio output debug: using audio filter module "converter_float"
[0xc20e1c] main audio output debug: TIMER module_need() : 10.000 ms - Total 10.0
00 ms / 1 intvls (Avg 10.000 ms)
[0xbf702c] main audio output debug: found a filter for the whole conversion
[0xbf702c] main audio output debug: looking for audio mixer module: 3 candidates

[0xbf702c] main audio output debug: using audio mixer module "float32_mixer"
[0xbf702c] main audio output debug: TIMER module_need() : 1.000 ms - Total 1.000
ms / 1 intvls (Avg 1.000 ms)
[0xbf702c] main audio output debug: input 'fl32' 48000 Hz Stereo frame=1 samples
/8 bytes
[0xc17ba4] main audio filter debug: looking for audio filter module: 1 candidate

[0xc17ba4] scaletempo audio filter debug: format: 48000 rate, 2 nch, 4 bps, fl32

[0xc17ba4] scaletempo audio filter debug: params: 30 stride, 0.200 overlap, 14 s
earch
[0xc17ba4] scaletempo audio filter debug: 1.000 scale, 1440.000 stride_in, 1440
stride_out, 1152 standing, 288 overlap, 672 search, 2400 queue, fl32 mode
[0xc17ba4] main audio filter debug: using audio filter module "scaletempo"
[0xc17ba4] main audio filter debug: TIMER module_need() : 1.000 ms - Total 1.000
ms / 1 intvls (Avg 1.000 ms)
[0xbf702c] main audio output debug: filter(s) 'fl32'->'fl32' 52800 Hz->48000 Hz
Stereo->Stereo
[0xcad714] main audio output debug: looking for audio filter module: 24 candidat
es
[0xcad714] main audio output debug: using audio filter module "bandlimited_resam
pler"
[0xcad714] main audio output debug: TIMER module_need() : 0.000 ms - Total 0.000
ms / 1 intvls (Avg 0.000 ms)
[0xbf702c] main audio output debug: found a filter for the whole conversion
[0xc0228c] main decoder debug: End of audio preroll
[0xc16dcc] main input debug: Stream buffering done (306 ms in 152 ms)
[0xc16dcc] main input debug: Decoder buffering done in 0 ms
[0xbf702c] main audio output warning: buffer is 44211 late, triggering upsamplin
g
[0xbf702c] main audio output warning: timing screwed, stopping resampling
[0xbf702c] main audio output warning: buffer is 52931 late, triggering upsamplin
g
[0xbf702c] main audio output warning: resampling stopped after 610000 usec (drif
t: -18081)
[0xbf702c] main audio output warning: buffer is 46531 late, triggering upsamplin
g
[0xbf702c] main audio output warning: resampling stopped after 5916000 usec (dri
ft: -15239)

Thanks in advance !

bob

ILEoo
Developer
Developer
Posts: 91
Joined: 05 Nov 2008 16:29

Re: Problem about streaming H.264 encoded flv files over UDP

Postby ILEoo » 04 Dec 2009 11:04

You should run that server with -vvv as client output shows that there isn't any video on that ts-stream.

ruibob
New Cone
New Cone
Posts: 2
Joined: 03 Dec 2009 04:57

Re: Problem about streaming H.264 encoded flv files over UDP

Postby ruibob » 04 Dec 2009 11:46

You should run that server with -vvv as client output shows that there isn't any video on that ts-stream.
Thanks ILEoo.

I have added -vvv in server's commandline, but still get nothing on the client. The output shows that the server streams the file successfully and the client receives the TS-stream. I wonder whether the problem is caused by the decoder .

The server's output:

[0xc1030c] dummy interface: using the dummy interface module...
[0xc1030c] main interface debug: using interface module "dummy"
[0xc1030c] main interface debug: TIMER module_need() : 9.000 ms - Total 9.000 ms
/ 1 intvls (Avg 9.000 ms)
[0xc1030c] main interface debug: thread (interface) created at priority 0 (inter
face/interface.c:151)
[0xc1ef5c] main playlist debug: processing request item null node 播放列表 skip
0
[0xc1ef5c] main playlist debug: rebuilding array of current - root 播放列表
[0xc1030c] main interface debug: thread started
[0xc1030c] main interface debug: thread ended
[0xc1ef5c] main playlist debug: rebuild done - 1 items, index -1
[0xc1ef5c] main playlist debug: starting new item
[0xc1ef5c] main playlist debug: creating new input thread
[0xc21dac] main input debug: Creating an input for 'test.flv'
[0xc21dac] main input debug: thread (input) created at priority 1 (input/input.c
:230)
[0xc21dac] main input debug: thread started
[0xc2062c] main stream output debug: stream=`std'
[0xc21cec] main stream out debug: looking for sout stream module: 1 candidate
[0xc21cec] main stream out debug: set config option: sout-standard-access to udp

[0xc21cec] main stream out debug: set config option: sout-standard-mux to ts
[0xc21cec] main stream out debug: set config option: sout-standard-dst to 127.0.
0.1:1234
[0xc21cec] stream_out_standard stream out debug: creating `udp/ts://127.0.0.1:12
34'
[0xc21cec] stream_out_standard stream out debug: extension is 1:1234
[0xc21cec] stream_out_standard stream out debug: extension -> mux=(null)
[0xc21cec] stream_out_standard stream out debug: using `udp/ts://127.0.0.1:1234'

[0xc242fc] main access out debug: looking for sout access module: 1 candidate
[0xc242fc] main access out debug: net: connecting to [127.0.0.1]:1234
[0xc242fc] access_output_udp access out debug: source: 127.0.0.1 port 3245
[0xc242fc] access_output_udp access out debug: destination: 127.0.0.1 port 1234
[0xc242fc] main access out debug: using sout access module "access_output_udp"
[0xc242fc] main access out debug: TIMER module_need() : 14.000 ms - Total 14.000
ms / 1 intvls (Avg 14.000 ms)
[0xc21cec] stream_out_standard stream out debug: access opened
[0xc27f7c] main mux debug: looking for sout mux module: 1 candidate
[0xc27f7c] mux_ts mux debug: shaping=200000 pcr=70000 dts_delay=400000
[0xc27f7c] main mux debug: using sout mux module "mux_ts"
[0xc27f7c] main mux debug: TIMER module_need() : 6.000 ms - Total 6.000 ms / 1 i
ntvls (Avg 6.000 ms)
[0xc2062c] main stream output debug: muxer support adding stream at any time
[0xc2062c] main stream output debug: muxer prefers to wait for all ES before sta
rting to mux
[0xc21cec] stream_out_standard stream out debug: mux opened
[0xc21cec] main stream out debug: using sout stream module "stream_out_standard"

[0xc21cec] main stream out debug: TIMER module_need() : 32.000 ms - Total 32.000
ms / 1 intvls (Avg 32.000 ms)
[0xc21dac] main input debug: using timeshift granularity of 50 MBytes
[0xc21dac] main input debug: using timeshift path 'C:\DOCUME~1\csm\LOCALS~1\Temp
'
[0xc21dac] main input debug: `D:\test.flv' gives access `' demux `' path `D:\tes
t.flv'
[0xc21dac] main input debug: creating demux: access='' demux='' path='D:\test.fl
v'
[0xc10d34] main demux debug: looking for access_demux module: 3 candidates
[0xc10d34] main demux debug: TIMER module_need() : 2.000 ms - Total 2.000 ms / 1
intvls (Avg 2.000 ms)
[0xc21dac] main input debug: creating access '' path='D:\test.flv'
[0xbeffc4] main access debug: looking for access module: 5 candidates
[0xbeffc4] vcd access debug: trying .cue file: D:\test.cue
[0xbeffc4] vcd access debug: could not find .cue file
[0xbeffc4] access_file access debug: opening file `D:\test.flv'
[0xbeffc4] main access debug: using access module "access_file"
[0xbeffc4] main access debug: TIMER module_need() : 2.000 ms - Total 2.000 ms /
1 intvls (Avg 2.000 ms)
[0xbef624] main stream debug: Using AStream*Stream
[0xbef624] main stream debug: pre buffering
[0xbef624] main stream debug: received first data after 0 ms
[0xbef624] main stream debug: pre-buffering done 1024 bytes in 0s - 1000000 kbyt
es/s
[0xc29864] main stream debug: looking for stream_filter module: 2 candidates
[0xc29864] main stream debug: TIMER module_need() : 1.000 ms - Total 1.000 ms /
1 intvls (Avg 1.000 ms)
[0xc29864] main stream debug: looking for stream_filter module: 1 candidate
[0xc29864] main stream debug: using stream_filter module "stream_filter_record"
[0xc29864] main stream debug: TIMER module_need() : 0.000 ms - Total 0.000 ms /
1 intvls (Avg 0.000 ms)
[0xc21dac] main input debug: creating demux: access='' demux='' path='D:\test.fl
v'
[0xc10d34] main demux debug: looking for demux module: 51 candidates
[0xc10d34] lua demux debug: Trying Lua scripts in C:\Documents and Settings\csm\
Application Data\vlc\lua\playlist
[0xc10d34] lua demux debug: Trying Lua scripts in D:\Program Files\VideoLAN\VLC\
\lua\playlist
[0xc10d34] lua demux debug: Trying Lua playlist script D:\Program Files\VideoLAN
\VLC\\lua\playlist\anevia_streams.lua
[0xc10d34] lua demux debug: Trying Lua playlist script D:\Program Files\VideoLAN
\VLC\\lua\playlist\appletrailers.lua
[0xc10d34] lua demux debug: Trying Lua playlist script D:\Program Files\VideoLAN
\VLC\\lua\playlist\bbc_co_uk.lua
[0xc10d34] lua demux debug: Trying Lua playlist script D:\Program Files\VideoLAN
\VLC\\lua\playlist\break.lua
[0xc10d34] lua demux debug: Trying Lua playlist script D:\Program Files\VideoLAN
\VLC\\lua\playlist\canalplus.lua
[0xc10d34] lua demux debug: Trying Lua playlist script D:\Program Files\VideoLAN
\VLC\\lua\playlist\cue.lua
[0xc10d34] lua demux debug: Trying Lua playlist script D:\Program Files\VideoLAN
\VLC\\lua\playlist\dailymotion.lua
[0xc10d34] lua demux debug: Trying Lua playlist script D:\Program Files\VideoLAN
\VLC\\lua\playlist\france2.lua
[0xc10d34] lua demux debug: Trying Lua playlist script D:\Program Files\VideoLAN
\VLC\\lua\playlist\googlevideo.lua
[0xc10d34] lua demux debug: Trying Lua playlist script D:\Program Files\VideoLAN
\VLC\\lua\playlist\joox.lua
[0xc10d34] lua demux debug: Trying Lua playlist script D:\Program Files\VideoLAN
\VLC\\lua\playlist\koreus.lua
[0xc10d34] lua demux debug: Trying Lua playlist script D:\Program Files\VideoLAN
\VLC\\lua\playlist\lelombrik.lua
[0xc10d34] lua demux debug: Trying Lua playlist script D:\Program Files\VideoLAN
\VLC\\lua\playlist\megavideo.lua
[0xc10d34] lua demux debug: Trying Lua playlist script D:\Program Files\VideoLAN
\VLC\\lua\playlist\metacafe.lua
[0xc10d34] lua demux debug: Trying Lua playlist script D:\Program Files\VideoLAN
\VLC\\lua\playlist\mpora.lua
[0xc10d34] lua demux debug: Trying Lua playlist script D:\Program Files\VideoLAN
\VLC\\lua\playlist\vimeo.lua
[0xc10d34] lua demux debug: Trying Lua playlist script D:\Program Files\VideoLAN
\VLC\\lua\playlist\youtube.lua
[0xc10d34] lua demux debug: Trying Lua playlist script D:\Program Files\VideoLAN
\VLC\\lua\playlist\youtube_homepage.lua
[0xc10d34] lua demux debug: Trying Lua scripts in D:\Program Files\VideoLAN\VLC\
\share\lua\playlist
[0xc10d34] avformat demux debug: detected format: flv
[0xc21dac] main input debug: selecting program id=0
[0xc10d34] avformat demux debug: adding es: video codec = h264
[0xc10d34] avformat demux debug: adding es: audio codec = mp4a
[0xc10d34] avformat demux debug: AVFormat supported stream
[0xc10d34] avformat demux debug: - format = flv (FLV format)
[0xc10d34] avformat demux debug: - start time = 0
[0xc10d34] avformat demux debug: - duration = 60266000
[0xc10d34] main demux debug: using demux module "avformat"
[0xc10d34] main demux debug: TIMER module_need() : 86.000 ms - Total 86.000 ms /
1 intvls (Avg 86.000 ms)
[0xc21dac] main input debug: looking for a subtitle file in D:\
[0xc022c4] main packetizer debug: looking for packetizer module: 21 candidates
[0xc022c4] main packetizer debug: using packetizer module "packetizer_h264"
[0xc022c4] main packetizer debug: TIMER module_need() : 14.000 ms - Total 14.000
ms / 1 intvls (Avg 14.000 ms)
[0xc022c4] main packetizer debug: thread (decoder) created at priority 0 (input/
decoder.c:315)
[0xc022c4] main packetizer debug: thread started
[0xc3b984] main packetizer debug: looking for packetizer module: 21 candidates
[0xc3b984] packetizer_mpeg4audio packetizer debug: running MPEG4 audio packetize
r
[0xc3b984] packetizer_mpeg4audio packetizer debug: no decoder specific info, mus
t be an ADTS or LOAS stream
[0xc3b984] main packetizer debug: using packetizer module "packetizer_mpeg4audio
"
[0xc3b984] main packetizer debug: TIMER module_need() : 1.000 ms - Total 1.000 m
s / 1 intvls (Avg 1.000 ms)
[0xc3b984] main packetizer debug: thread (decoder) created at priority 2 (input/
decoder.c:315)
[0xc3b984] main packetizer debug: thread started
[0xc21dac] main input debug: starting in async mode
[0xc10d34] main demux debug: looking for meta reader module: 1 candidate
[0xc10d34] main demux debug: TIMER module_need() : 2.000 ms - Total 2.000 ms / 1
intvls (Avg 2.000 ms)
[0xc21dac] main input debug: `D:\test.flv' successfully opened
[0xc21dac] main input debug: switching to sync mode
[0xc21dac] main input debug: Buffering 0%
[0xc3b984] packetizer_mpeg4audio packetizer debug: detected ADTS format
[0xc21dac] main input debug: Buffering 7%
[0xc21dac] main input debug: Buffering 14%
[0xc3b984] packetizer_mpeg4audio packetizer: AAC channels: 2 samplerate: 48000
[0xc2062c] main stream output debug: adding a new sout input (sout_input:0xc429f
0)
[0xc27f7c] main mux debug: adding a new input
[0xc27f7c] mux_ts mux debug: adding input codec=mp4a pid=68
[0xc21dac] main input debug: Buffering 21%
[0xc27f7c] mux_ts mux debug: new PCR PID is 68
[0xc21dac] main input debug: Buffering 28%
[0xc21dac] main input debug: Buffering 35%
[0xc21dac] main input debug: Buffering 42%
[0xc21dac] main input debug: Buffering 50%
[0xc21dac] main input debug: Buffering 56%
[0xc21dac] main input debug: Buffering 64%
[0xc21dac] main input debug: Buffering 71%
[0xc21dac] main input debug: Buffering 78%
[0xc21dac] main input debug: Buffering 85%
[0xc21dac] main input debug: Buffering 92%
[0xc21dac] main input debug: Buffering 99%
[0xc21dac] main input debug: Stream buffering done (320 ms in 2 ms)
[0xc21dac] main input debug: Decoder buffering done in 0 ms
[0xc242fc] access_output_udp access out debug: late packet for UDP input (516000
)
[0xc242fc] access_output_udp access out debug: late packet for UDP input (460519
)
[0xc242fc] access_output_udp access out debug: packet has been sent too late (51
6000)
[0xc242fc] access_output_udp access out debug: late packet for UDP input (405038
)
[0xc242fc] access_output_udp access out debug: packet has been sent too late (46
0519)
[0xc242fc] access_output_udp access out debug: packet has been sent too late (40
5038)
[0xc242fc] access_output_udp access out debug: late packet for UDP input (349556
)
[0xc242fc] access_output_udp access out debug: late packet for UDP input (294900
)
[0xc242fc] access_output_udp access out debug: packet has been sent too late (34
9556)
[0xc242fc] access_output_udp access out debug: late packet for UDP input (246200
)
[0xc242fc] access_output_udp access out debug: packet has been sent too late (29
5900)
[0xc242fc] access_output_udp access out debug: late packet for UDP input (196500
)
[0xc242fc] access_output_udp access out debug: packet has been sent too late (24
6200)
[0xc242fc] access_output_udp access out debug: late packet for UDP input (146800
)
[0xc242fc] access_output_udp access out debug: packet has been sent too late (19
6500)
[0xc242fc] access_output_udp access out debug: packet has been sent too late (14
6800)
[0xc242fc] access_output_udp access out debug: late packet for UDP input (97100)

[0xc242fc] access_output_udp access out debug: late packet for UDP input (47400)

[0xc242fc] access_output_udp access out debug: packet has been sent too late (97
100)
[0xc242fc] access_output_udp access out debug: packet has been sent too late (47
400)


The client's output:

[0xc2103c] dummy interface: using the dummy interface module...
[0xc2103c] main interface debug: using interface module "dummy"
[0xc2103c] main interface debug: TIMER module_need() : 8.000 ms - Total 8.000 ms
/ 1 intvls (Avg 8.000 ms)
[0xc2103c] main interface debug: thread (interface) created at priority 0 (inter
face/interface.c:151)
[0xc2103c] main interface debug: thread started
[0xbf4e3c] main playlist debug: rebuilding array of current - root 播放列表
[0xbf4e3c] main playlist debug: rebuild done - 1 items, index -1
[0xbf4e3c] main playlist debug: processing request item null node 播放列表 skip
0
[0xbf4e3c] main playlist debug: starting new item
[0xbf4e3c] main playlist debug: creating new input thread
[0xc16dcc] main input debug: Creating an input for 'udp://127.0.0.1:1234'
[0xc2103c] main interface debug: thread ended
[0xc16dcc] main input debug: thread (input) created at priority 1 (input/input.c
:230)
[0xc16dcc] main input debug: thread started
[0xc16dcc] main input debug: using timeshift granularity of 50 MBytes
[0xc16dcc] main input debug: using timeshift path 'C:\DOCUME~1\csm\LOCALS~1\Temp
'
[0xc16dcc] main input debug: `udp://@127.0.0.1:1234' gives access `udp' demux `'
path `@127.0.0.1:1234'
[0xc16dcc] main input debug: creating demux: access='udp' demux='' path='@127.0.
0.1:1234'
[0xc20604] main demux debug: looking for access_demux module: 0 candidates
[0xc20604] main demux debug: no access_demux module matched "udp"
[0xc20604] main demux debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1
intvls (Avg 0.000 ms)
[0xc16dcc] main input debug: creating access 'udp' path='@127.0.0.1:1234'
[0xc11ba4] main access debug: looking for access module: 1 candidate
[0xc11ba4] access_udp access debug: opening server=:0 local=127.0.0.1:1234
[0xc11ba4] main access debug: net: opening 127.0.0.1 datagram port 1234
[0xc11ba4] main access debug: using access module "access_udp"
[0xc11ba4] main access debug: TIMER module_need() : 19.000 ms - Total 19.000 ms
/ 1 intvls (Avg 19.000 ms)
[0xc17dbc] main stream debug: Using AStream*Block
[0xc17dbc] main stream debug: pre buffering
[0xc17dbc] main stream debug: received first data after 0 ms
[0xc17dbc] main stream debug: prebuffering done 1316 bytes in 0s - 642 kbytes/s
[0xbef5d4] main stream debug: looking for stream_filter module: 2 candidates
[0xbef5d4] main stream debug: TIMER module_need() : 0.000 ms - Total 0.000 ms /
1 intvls (Avg 0.000 ms)
[0xbef5d4] main stream debug: looking for stream_filter module: 1 candidate
[0xbef5d4] main stream debug: using stream_filter module "stream_filter_record"
[0xbef5d4] main stream debug: TIMER module_need() : 1.000 ms - Total 1.000 ms /
1 intvls (Avg 1.000 ms)
[0xc16dcc] main input debug: creating demux: access='udp' demux='' path='@127.0.
0.1:1234'
[0xc20604] main demux debug: looking for demux module: 51 candidates
[0xc20604] main demux debug: using demux module "ts"
[0xc20604] main demux debug: TIMER module_need() : 283.000 ms - Total 283.000 ms
/ 1 intvls (Avg 283.000 ms)
[0xc16dcc] main input debug: looking for a subtitle file in D:\Program Files\Vid
eoLAN\VLC\
[0xc20604] ts demux debug: DEMUX_SET_GROUP 0 0
[0xc11ba4] access_udp access warning: unimplemented query in control
[0xc16dcc] main input debug: `udp://@127.0.0.1:1234' successfully opened
[0xc20604] ts demux debug: pid[68] unknown
libdvbpsi error (PSI decoder): TS discontinuity (received 3, expected 0) for PID
0
[0xc20604] ts demux debug: PATCallBack called
[0xc20604] ts demux debug: new PAT ts_id=3681 version=23 current_next=1
[0xc20604] ts demux debug: * number=1 pid=66
libdvbpsi error (PSI decoder): TS discontinuity (received 3, expected 0) for PID
66
[0xc20604] ts demux debug: PMTCallBack called
[0xc20604] ts demux debug: new PMT program number=1 version=28 pid_pcr=68
[0xc20604] ts demux debug: * descriptor : IOD (0x1d)
[0xc20604] ts demux error: MPEG-4 descriptor not found
[0xc20604] ts demux debug: * es pid=68 type=15 fcc=mp4a
[0xc16dcc] main input debug: selecting program id=1
[0xc0228c] main decoder debug: looking for decoder module: 35 candidates
[0xc0228c] main decoder debug: using decoder module "faad"
[0xc0228c] main decoder debug: TIMER module_need() : 9.000 ms - Total 9.000 ms /
1 intvls (Avg 9.000 ms)
[0xc137ac] main packetizer debug: looking for packetizer module: 21 candidates
[0xc137ac] packetizer_mpeg4audio packetizer debug: running MPEG4 audio packetize
r
[0xc137ac] packetizer_mpeg4audio packetizer debug: no decoder specific info, mus
t be an ADTS or LOAS stream
[0xc137ac] main packetizer debug: using packetizer module "packetizer_mpeg4audio
"
[0xc137ac] main packetizer debug: TIMER module_need() : 9.000 ms - Total 9.000 m
s / 1 intvls (Avg 9.000 ms)
[0xc0228c] main decoder debug: thread (decoder) created at priority 2 (input/dec
oder.c:315)
[0xc0228c] main decoder debug: thread started
[0xc20604] ts demux warning: first packet for pid=68 cc=0xd
[0xc16dcc] main input debug: Buffering 0%
[0xc137ac] packetizer_mpeg4audio packetizer debug: detected ADTS format
[0xc16dcc] main input debug: Buffering 25%
[0xc137ac] packetizer_mpeg4audio packetizer: AAC channels: 2 samplerate: 48000
[0xc16dcc] main input debug: Buffering 50%
[0xc0228c] faad decoder warning: decoded zero sample
[0xc16dcc] main input debug: creating aout
[0xbf702c] main audio output debug: looking for audio output module: 3 candidate
s
[0xbf702c] aout_directx audio output debug: OpenAudio
[0xbf702c] aout_directx audio output debug: found device:
[0xbf702c] aout_directx audio output debug: found device: SoundMAX HD Audio
[0xbf702c] aout_directx audio output debug: device supports 2 channels (DEFAULT!
)
[0xbf702c] aout_directx audio output debug: device supports 1 channel
[0xbf702c] aout_directx audio output debug: creating DirectSoundThread
[0xcae974] main generic debug: thread (DirectSound Notification Thread) created
at priority 15 (directx.c:427)
[0xcae974] main generic debug: thread started
[0xbf702c] main audio output debug: using audio output module "aout_directx"
[0xcae974] aout_directx generic debug: DirectSoundThread ready
[0xbf702c] main audio output debug: TIMER module_need() : 48.000 ms - Total 48.0
00 ms / 1 intvls (Avg 48.000 ms)
[0xbf702c] main audio output debug: output 's16l' 48000 Hz Stereo frame=1 sample
s/4 bytes
[0xbf702c] main audio output debug: mixer 'fl32' 48000 Hz Stereo frame=1 samples
/8 bytes
[0xbf702c] main audio output debug: filter(s) 'fl32'->'s16l' 48000 Hz->48000 Hz
Stereo->Stereo
[0xc17ba4] main audio output debug: looking for audio filter module: 24 candidat
es
[0xc17ba4] main audio output debug: using audio filter module "converter_float"
[0xc17ba4] main audio output debug: TIMER module_need() : 11.000 ms - Total 11.0
00 ms / 1 intvls (Avg 11.000 ms)
[0xbf702c] main audio output debug: found a filter for the whole conversion
[0xbf702c] main audio output debug: looking for audio mixer module: 3 candidates

[0xbf702c] main audio output debug: using audio mixer module "float32_mixer"
[0xbf702c] main audio output debug: TIMER module_need() : 2.000 ms - Total 2.000
ms / 1 intvls (Avg 2.000 ms)
[0xc16dcc] main input debug: Buffering 74%
[0xbf702c] main audio output debug: input 'fl32' 48000 Hz Stereo frame=1 samples
/8 bytes
[0xc1e04c] main audio filter debug: looking for audio filter module: 1 candidate

[0xc1e04c] scaletempo audio filter debug: format: 48000 rate, 2 nch, 4 bps, fl32

[0xc1e04c] scaletempo audio filter debug: params: 30 stride, 0.200 overlap, 14 s
earch
[0xc1e04c] scaletempo audio filter debug: 1.000 scale, 1440.000 stride_in, 1440
stride_out, 1152 standing, 288 overlap, 672 search, 2400 queue, fl32 mode
[0xc1e04c] main audio filter debug: using audio filter module "scaletempo"
[0xc1e04c] main audio filter debug: TIMER module_need() : 2.000 ms - Total 2.000
ms / 1 intvls (Avg 2.000 ms)
[0xbf702c] main audio output debug: filter(s) 'fl32'->'fl32' 52800 Hz->48000 Hz
Stereo->Stereo
[0xbf0514] main audio output debug: looking for audio filter module: 24 candidat
es
[0xbf0514] main audio output debug: using audio filter module "bandlimited_resam
pler"
[0xbf0514] main audio output debug: TIMER module_need() : 0.000 ms - Total 0.000
ms / 1 intvls (Avg 0.000 ms)
[0xbf702c] main audio output debug: found a filter for the whole conversion
[0xc0228c] main decoder debug: End of audio preroll
[0xc16dcc] main input debug: Buffering 99%
[0xc16dcc] main input debug: Stream buffering done (375 ms in 169 ms)
[0xc16dcc] main input debug: Decoder buffering done in 0 ms
[0xbf702c] main audio output warning: buffer is 47588 late, triggering upsamplin
g
[0xbf702c] main audio output warning: timing screwed, stopping resampling
[0xbf702c] main audio output warning: buffer is 80763 late, triggering upsamplin
g
[0xbf702c] main audio output warning: resampling stopped after 1085000 usec (dri
ft: -38884)
[0xbf702c] main audio output warning: buffer is 51814 late, triggering upsamplin
g
[0xbf702c] main audio output warning: timing screwed, stopping resampling
[0xbf702c] main audio output warning: buffer is 79737 late, triggering upsamplin
g
[0xbf702c] main audio output warning: resampling stopped after 6735000 usec (dri
ft: -43939)
[0xbf702c] main audio output warning: buffer is 43439 late, triggering upsamplin
g

ILEoo
Developer
Developer
Posts: 91
Joined: 05 Nov 2008 16:29

Re: Problem about streaming H.264 encoded flv files over UDP

Postby ILEoo » 09 Dec 2009 09:57

Logs say that server only adds stream to mp4a (adding input codec... -line) so it doesn't get that h264 video from file. Are you sure the file works correctly with vlc (you can play it with vlc without problems, with video and audio?)


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 15 guests