how to adjust jitter buffer for VLC

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
soho1001
Blank Cone
Blank Cone
Posts: 19
Joined: 06 Sep 2013 07:53

how to adjust jitter buffer for VLC

Postby soho1001 » 17 Sep 2013 07:48

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: how to adjust jitter buffer for VLC

Postby Jean-Baptiste Kempf » 17 Sep 2013 14:42

Try to increase cahcing.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

soho1001
Blank Cone
Blank Cone
Posts: 19
Joined: 06 Sep 2013 07:53

Re: how to adjust jitter buffer for VLC

Postby soho1001 » 17 Sep 2013 15:00

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?

TigerNightmare
Blank Cone
Blank Cone
Posts: 24
Joined: 08 Jul 2010 16:40

Re: how to adjust jitter buffer for VLC

Postby TigerNightmare » 28 Oct 2013 18:06

Just wanted to say that setting File caching (ms) under Input/Codecs to 1000 killed this problem for me.
My specs:
Windows7 Professional 64bit SP1
Intel Core i7-3930K @ 3.20 GHz(6 cores)
16 GB DDR3
4 GB EVGA GTX 770


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 16 guests