[Libav-user] reading udp stream "bump" every one second

Joel Frid sjoelf at gmail.com
Mon Oct 12 07:56:30 CEST 2015


 Hello,
I used "An ffmpeg and SDL Tutorial" for opening a udp stream and readin
it's frames.
The stream format is h264 and it's 25 fps.
Everything is working fine except for that once a second, I got a delay of
about 100 millisecond between two frames, which makes the video "bump" once
a second.
For example, the average time interval between two frames of the stream is
about 40 millisecond, but once a second there is an interval of about 100
milli.
I think that once a second, avcodec_decode_video2(pCodecCtx, pFrame,
&frameFinished, &packet) returns with frame not ready, which makes the
delay between the two frames.
Is there a solution for that?
Thanks a lot,
Joel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20151012/7287ef84/attachment.html>


More information about the Libav-user mailing list