Page 1 of 1

how to adjust jitter buffer for VLC

Posted: 17 Sep 2013 07:48
by soho1001
Hi All,


I got a big problem when I use VLC 2.1.0-rc2 to play live H.264 stream.
the stream format is rtp. it includes Audio+ video.
Video format: H.264, 1280x720, 30fps
Audio format: PCM_S16_LE, 2 channel, 48000 sample rate

VLC can not play the stream stability.
Because VLC complain about the timing issue. the log is :
main warning: playback too late (68079): up-sampling
main warning: picture is too late to be displayed (missing 41 ms)
main debug: picture might be displayed late (missing 11 ms)
main warning: picture is too late to be displayed (missing 41 ms)
main debug: picture might be displayed late (missing 11 ms)
main warning: picture is too late to be displayed (missing 55 ms)
main warning: picture is too late to be displayed (missing 25 ms)
main warning: picture is too late to be displayed (missing 40 ms)
main debug: picture might be displayed late (missing 10 ms)
main warning: timing screwed (drift: 144968 us): stopping resampling
main warning: playback too late (144906): up-sampling
main warning: picture is too late to be displayed (missing 54 ms)
main warning: picture is too late to be displayed (missing 24 ms)
main warning: picture is too late to be displayed (missing 44 ms)
main debug: picture might be displayed late (missing 14 ms)
main warning: picture is too late to be displayed (missing 64 ms)
main warning: picture is too late to be displayed (missing 24 ms)
main debug: picture might be displayed late (missing 7 ms)
main warning: picture is too late to be displayed (missing 57 ms)
main debug: picture might be displayed late (missing 17 ms)
main warning: picture is too late to be displayed (missing 67 ms)
main warning: picture is too late to be displayed (missing 37 ms)
main warning: picture is too late to be displayed (missing 77 ms)
main warning: picture is too late to be displayed (missing 47 ms)
main warning: picture is too late to be displayed (missing 31 ms)
main warning: picture is too late to be displayed (missing 71 ms)
main warning: picture is too late to be displayed (missing 41 ms)
main debug: picture might be displayed late (missing 11 ms)
main warning: picture is too late to be displayed (missing 51 ms)
main warning: playback way too late (183592): flushing buffers
main debug: inserting 95658 zeroes
main warning: playback too late (61599): up-sampling
main warning: timing screwed (drift: 127608 us): stopping resampling
main warning: playback too late (127545): up-sampling
main warning: playback way too late (184736): flushing buffers
main debug: inserting 95972 zeroes
main warning: playback too late (61802): up-sampling
avcodec error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
main warning: timing screwed (drift: 124527 us): stopping resampling
main warning: playback too late (124465): up-sampling
main warning: picture is too late to be displayed (missing 861 ms)
main warning: picture is too late to be displayed (missing 791 ms)
main warning: picture is too late to be displayed (missing 801 ms)
main warning: picture is too late to be displayed (missing 752 ms)
main warning: picture is too late to be displayed (missing 392 ms)
main warning: playback way too late (180792): flushing buffers
main debug: inserting 95770 zeroes
if VLC display the log message above, then VLC can not recover to normal state.
then no more video data can be displayed, but audio data can be played normally.
It seems VLC does not handle the jitter as better as it can.
When I try to play by "ffplay", it is normally and stable.
Does anyone have idea?
Also, I can see many people post the question about:
error: more than 5 seconds of late video -> dropping frame
It seems VLC does not fix the BIG BUG for a long time.

Re: how to adjust jitter buffer for VLC

Posted: 17 Sep 2013 14:42
by Jean-Baptiste Kempf
Try to increase cahcing.

Re: how to adjust jitter buffer for VLC

Posted: 17 Sep 2013 15:00
by soho1001
Hi,

the "network-caching=1000" is used curentlly.
Do you mean I can try to increase network-caching size?
Could you provide the hints :
why this kind of message from VLC debug log is network cache related?

Re: how to adjust jitter buffer for VLC

Posted: 28 Oct 2013 18:06
by TigerNightmare
Just wanted to say that setting File caching (ms) under Input/Codecs to 1000 killed this problem for me.