Problem while reading G711U RTP stream
Posted: 21 Jul 2009 14:07
Hi,
I'm developing an application that send a G711U stream over RTP/UDP. VLC can't handle my stream correctly (nothing is rendered), MPlayer rendering is correct.
Problem is identical on Windows and Linux, scope visualisation only display 1/3 of screen.
As MPlayer rendering is correct, I think that all audio data are correctly sent, maybe an RTP problem ? (wrong timestamp or something like that)
Here is the stacktrace :
I'm developing an application that send a G711U stream over RTP/UDP. VLC can't handle my stream correctly (nothing is rendered), MPlayer rendering is correct.
Problem is identical on Windows and Linux, scope visualisation only display 1/3 of screen.
As MPlayer rendering is correct, I think that all audio data are correctly sent, maybe an RTP problem ? (wrong timestamp or something like that)
Here is the stacktrace :
Thanks for help !main debug: adding item `rtp://10.50.2.3:23152' ( rtp://@10.50.2.3:23152 )
main debug: rebuilding array of current - root Liste de lecture
qt4 debug: Adding a new MRL to recent ones: rtp://@10.50.2.3:23152
main debug: rebuild done - 2 items, index 0
main debug: processing request item rtp://10.50.2.3:23152 node null skip 0
main debug: resyncing on rtp://10.50.2.3:23152
main debug: rtp://10.50.2.3:23152 is at 1
main debug: starting new item
main debug: creating new input thread
main debug: Creating an input for 'rtp://10.50.2.3:23152'
main debug: thread (input) created at priority 1 (../.././src/input/input.c:230)
main debug: thread started
main debug: using timeshift granularity of 50 MBytes
main debug: using timeshift path 'C:\DOCUME~1\GRRI\LOCALS~1\Temp'
main debug: `rtp://@10.50.2.3:23152' gives access `rtp' demux `' path `@10.50.2.3:23152'
main debug: creating demux: access='rtp' demux='' path='@10.50.2.3:23152'
main debug: looking for access_demux module: 1 candidate
qt4 debug: IM: Setting an input
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
main debug: net: opening 10.50.2.3 datagram port 23152
main debug: using access_demux module "rtp"
main debug: TIMER module_need() : 85.000 ms - Total 85.000 ms / 1 intvls (Avg 85.000 ms)
main debug: looking for a subtitle file in C:\Program Files\VideoLAN\VLC\
main debug: `rtp://@10.50.2.3:23152' successfully opened
rtp debug: detected G.711 A-law
rtp debug: added payload type 8 (f = 8000 Hz)
main debug: selecting program id=0
main debug: looking for decoder module: 35 candidates
araw debug: samplerate:8000Hz channels:1 bits/sample:0
main debug: using decoder module "araw"
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: thread (decoder) created at priority 2 (../.././src/input/decoder.c:315)
main debug: thread started
rtp debug: added RTP source (694341ed)
main debug: Buffering 0%
main debug: reusing aout
main debug: looking for audio output module: 3 candidates
aout_directx debug: OpenAudio
aout_directx debug: found device: P?riph?rique audio principal
aout_directx debug: found device: SoundMAX Digital Audio
main debug: Buffering 16%
aout_directx debug: device supports 2 channels (DEFAULT!)
aout_directx debug: device supports 1 channel
aout_directx debug: Windows says your SpeakerConfig is stereo
aout_directx debug: creating DirectSoundThread
main debug: thread started
aout_directx debug: DirectSoundThread ready
main debug: thread (DirectSound Notification Thread) created at priority 15 (../../.././modules/audio_output/directx.c:427)
main debug: using audio output module "aout_directx"
main debug: TIMER module_need() : 29.000 ms - Total 29.000 ms / 1 intvls (Avg 29.000 ms)
main debug: output 's16l' 8000 Hz Stereo/Mono frame=1 samples/4 bytes
main debug: mixer 'fl32' 8000 Hz Stereo/Mono frame=1 samples/8 bytes
main debug: filter(s) 'fl32'->'s16l' 8000 Hz->8000 Hz Stereo/Mono->Stereo/Mono
main debug: looking for audio filter module: 24 candidates
main debug: using audio filter module "converter_float"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: found a filter for the whole conversion
main debug: looking for audio mixer module: 3 candidates
main debug: using audio mixer module "float32_mixer"
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: input 's16l' 8000 Hz Mono frame=1 samples/2 bytes
main debug: looking for audio filter module: 1 candidate
scaletempo warning: bad input or output format
scaletempo warning: input and output formats are not similar
main warning: no audio filter module matching "scaletempo" could be loaded
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: looking for audio filter module: 1 candidate
scaletempo debug: format: 8000 rate, 1 nch, 4 bps, fl32
scaletempo debug: params: 30 stride, 0.200 overlap, 14 search
scaletempo debug: 1.000 scale, 240.000 stride_in, 240 stride_out, 192 standing, 48 overlap, 112 search, 400 queue, fl32 mode
main debug: using audio filter module "scaletempo"
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: filter(s) 's16l'->'fl32' 8000 Hz->8000 Hz Mono->Mono
main debug: looking for audio filter module: 24 candidates
main debug: using audio filter module "converter_float"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: found a filter for the whole conversion
main debug: filter(s) 'fl32'->'fl32' 8000 Hz->8000 Hz Mono->Stereo/Mono
main debug: looking for audio filter module: 24 candidates
main debug: using audio filter module "trivial_channel_mixer"
main debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: found a filter for the whole conversion
main debug: filter(s) 'fl32'->'fl32' 8800 Hz->8000 Hz Stereo/Mono->Stereo/Mono
main debug: looking for audio filter module: 24 candidates
main debug: using audio filter module "bandlimited_resampler"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: found a filter for the whole conversion
main debug: End of audio preroll
main debug: Buffering 32%
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
main debug: Buffering 48%
qt4 debug: Updating the geometry
qt4 debug: Updating the geometry
qt4 debug: New caching: 47
qt4 debug: New caching: 47
main debug: Buffering 64%
main debug: Buffering 80%
qt4 debug: New caching: 80
qt4 debug: New caching: 80
main debug: Buffering 96%
main debug: Stream buffering done (1120 ms in 130 ms)
main debug: Decoder buffering done in 0 ms
main warning: PTS is out of range (-10000), dropping buffer
main warning: audio drift is too big (-140000), clearing out
main warning: audio drift is too big (-140000), clearing out
main warning: audio drift is too big (-140000), clearing out
main warning: audio drift is too big (130000), dropping buffer
qt4 debug: New caching: 100
qt4 debug: New caching: 100
main warning: audio drift is too big (-170000), clearing out
main warning: PTS is out of range (867428), dropping buffer
main warning: PTS is out of range (707428), dropping buffer
main warning: PTS is out of range (547428), dropping buffer
main warning: PTS is out of range (387428), dropping buffer
main warning: PTS is out of range (227428), dropping buffer
main warning: PTS is out of range (67428), dropping buffer
main warning: audio drift is too big (427428), dropping buffer
main warning: audio drift is too big (267428), dropping buffer
main warning: buffer is 107428 late, triggering upsampling
main warning: audio drift is too big (-173572), clearing out
main warning: timing screwed, stopping resampling
main warning: mixer start isn't output start (-11684)
main warning: PTS is out of range (869653), dropping buffer
main warning: PTS is out of range (709653), dropping buffer
main warning: PTS is out of range (549653), dropping buffer
main warning: PTS is out of range (389653), dropping buffer
main warning: PTS is out of range (229653), dropping buffer
main warning: PTS is out of range (69653), dropping buffer
main warning: audio drift is too big (430225), dropping buffer
main warning: audio drift is too big (270225), dropping buffer
main warning: buffer is 110225 late, triggering upsampling
main warning: PTS is out of range (730917), dropping buffer
main warning: PTS is out of range (570917), dropping buffer
main warning: PTS is out of range (410917), dropping buffer
main warning: PTS is out of range (250917), dropping buffer
main warning: PTS is out of range (90917), dropping buffer
main warning: audio drift is too big (419489), dropping buffer
main warning: audio drift is too big (259489), dropping buffer
main warning: buffer is 99489 late, triggering upsampling
main debug: audio output is starving (202572), playing silence
main warning: audio drift is too big (-181511), clearing out
main warning: timing screwed, stopping resampling
main warning: mixer start isn't output start (-14752)
main warning: audio drift is too big (-139000), clearing out