How VLC to decide the packet is late?

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 VLC to decide the packet is late?

Postby soho1001 » 23 Sep 2013 11:30

Hi All,

I got a big problem when I use VLC 2.1.0-rc2 to play live H.264 stream that is output by ffserver.
the stream format is rtp. it includes Audio+ video. One rtp stream is for Audio and another is for Video.
The payload type is 96 for Video, and 97 for Audio.
Video format: H.264, 1280x720, 30fps.
Audio format: PCM_S16_LE, 2 channel, 48000 sample rate.
I see the error when VLC debug message is enabled.
"avcodec error: more than 5 seconds of late video -> dropping frame (computer too slow ?)"
then the video stream is freeze.
But I can see the packet are received continually. Why all the packet are treated as "late packet" when the error message is output ?
It seems VLC use the time that the packet as received, but not the timestamp in rtp header, right?
Does any one have ideas?

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 VLC to decide the packet is late?

Postby Jean-Baptiste Kempf » 27 Sep 2013 18:42

It uses the packet pts to check.
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 VLC to decide the packet is late?

Postby soho1001 » 30 Sep 2013 15:29

Hi,
Could you kindly help to explain the meaning of pts of packet?
Do you mean VLC use the timestamp in RTP header?
Does VLC use the difference between 2 timestamp of RTP pcaket?
if the difference is too large, then the second packet will be treated as late packet?
Could you kindly help to provide the hints?


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 26 guests