[Libav-user] ffmpeg libraries turn off buffer

Артем Суслов artyom148dik at mail.ru
Tue Aug 12 15:57:59 CEST 2014


I'm trying to create an application for ios which receives rtsp frames from ip camera. But when I suspend my main thread (for example, minimize my application) and resume it after some time, I see what I read old frame. I think that ffmpeg library create new thread somewhere which fill some buffer with frames. So how can I turn that buffer off? I suppose that I don't need that buffer because I use rtsp over tcp.
And I tried to use flag AVFMT_FLAG_NOBUFFER but it did not help.
I use ffmpeg 2.3.
Thanks
PS
Probably there in no away to turn this internal buffer off but how I can restrict it? To 1 or 2 frames (or seconds). I tried a lot of variants and have no idea what to do.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20140812/cfd5f4e4/attachment.html>


More information about the Libav-user mailing list