[FFmpeg-user] [ffmpeg-user] Usage of AVDiscard AVContext::skip_frame etc.

Denis Loh denis.loh at googlemail.com
Thu May 17 19:38:31 CEST 2012


Hi,

I am developing a VoIP software using opalvoip 
[http://www.opalvoip.org]. It is using ffmpeg to decode an incoming 
H.264 stream. There, I have some issues when I have a high network load. 
This is causing the packets coming later than usual to the decoder. 
Unfortunately, if packets get lost during transmission, e.g. when the 
connection is stalled for short, it seems to me that ffmpeg buffers the 
last packets until the next correct packets arrive (but I am absolutely 
not sure, if it is so...). This leads to a high delay of the video 
stream and asynchronous playback of audio and video.

I was wondering if I can tell ffmpeg to decode the incoming frames as 
fast as possible. So, I found the AVDiscard AVContext::skip_frame, but I 
have no clue how to use them. Are these parameters the correct way to 
achieve the required behaviour?

Thank you for every kind of help!

Denis


More information about the ffmpeg-user mailing list