How to modify the setting for late packet
Posted: 23 Sep 2013 10:48
Hi ,
When I check VLC source code,
I see the code segment below:
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?
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;
}
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?