[Libav-user] FFMPEG to decode I frames

rohit khali khali.rohit at gmail.com
Fri Nov 6 10:43:25 EET 2020


Hi,

My application parses only I frames from H264 bit stream and hands it over
to FFMPEG decoder.
Expectation was that FFMPEG decoder  immediately output decoded frames
since input is I frame. However, FFMPEG can't do this especially for cases
where I frame is not an IDR.

I tried sending a NULL packet and using avocdec_flush_buffers() to flush
out the decoded frame but this logic doesn't seem to work for all cases,
maybe again depending on DPB size or POC.
I was wondering if anyone else has used FFMPEG for such a use case earlier
and what else I can use to immediately receive the I frames.

Thanks,
Rohit Khali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20201106/b5168ee3/attachment.html>


More information about the Libav-user mailing list