How to modify the setting for late packet

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
soho1001
Blank Cone
Blank Cone
Posts: 19
Joined: 06 Sep 2013 07:53

How to modify the setting for late packet

Postby soho1001 » 23 Sep 2013 10:48

Hi ,

When I check VLC source code,
I see the code segment below:

Code: Select all

if( !p_dec->b_pace_control && (p_sys->i_late_frames > 0) && (mdate() - p_sys->i_late_frames_start > INT64_C(5000000)) ) { if( p_sys->i_pts > VLC_TS_INVALID ) { msg_Err( p_dec, "more than 5 seconds of late video -> " "dropping frame (computer too slow ?)" ); p_sys->i_pts = VLC_TS_INVALID; /* To make sure we recover properly */ } block_Release( p_block ); p_sys->i_late_frames--; return NULL; }
It is vlc-2.0.8/modules/codec/avcodec/video.c, function DecodeVideo()
Why the time is 5 seconds? Is it possible to support configurable?
Because if I use WiFi 2.4G to play a live stream, it is very easily to get the message:
"more than 5 seconds of late video ->dropping frame (computer too slow ?)"
then video is freeze. It can not recover in case I see the message.
Is it possible to enable for configurable?

Rémi Denis-Courmont
Developer
Developer
Posts: 15263
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to modify the setting for late packet

Postby Rémi Denis-Courmont » 23 Sep 2013 19:07

Because 5 seconds is far more than reasonable already.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

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

Re: How to modify the setting for late packet

Postby soho1001 » 24 Sep 2013 04:16

In open space, WiFi 2.4G may have heavy congestion that will cause the stream server can not send video + audio stream data on time. It may not get problem if user use ethernet to get video stream.
VLC client will get freeze easily in the condition.
Is it possible to open the option for configurable?
Such that user can set the properly value for the application that he use.

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

Re: How to modify the setting for late packet

Postby soho1001 » 24 Sep 2013 09:59

Because 5 seconds is far more than reasonable already.
Hi ,

Because I test it by WiFi 2.4G open space, udp stream.
VLC may get rtp sequence misorder since udp pasket loss.
It is possible about udp packet loss when testing in WiFi open space.
If the inaccuracy about synchronization of video + audio can be enlarge, it may more make sense that the stream will not get freeze.
if the stream is freeze and VLC CAN NOT back to normal state, it seems more fragile.

alexkarnaukhov
Blank Cone
Blank Cone
Posts: 12
Joined: 09 Jul 2013 13:25

Re: How to modify the setting for late packet

Postby alexkarnaukhov » 03 Feb 2014 07:36

Hi people,

I confirm this problem!

It`s very easy to put VLC in such laggy state with this messages about "slow CPU" when playing some rtsp stream over media with high packet loss, such is WiFi with a low signal.
And even if then you increase your wifi signal strenght (come closer to WiFi access point), VLC will not return to normal playing state. I tried to use libvlc in my program to catch some event, wich could indicate me about entering into this state, so I could restart stream, but with no success.
Another important thing is that such behaviour appears only with network-caching lower then <1 sec, but I really need to decrease latency as much as possible...

Can I do something to avoid this problem?


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 45 guests