[Libav-user] avcodec_receive_frame

salsaman salsaman at gmail.com
Mon Nov 9 13:12:37 EET 2020


You can't assume 1 packet == 1 frame.



http://lives-video.com
https://www.openhub.net/accounts/salsaman


On Mon, 9 Nov 2020 at 06:09, rohit khali <khali.rohit at gmail.com> wrote:

> Hi,
>
> I am using avcodec_receive_frame() to receive and dump decoded frames.
>
> All my streams are starting with " IDR" OR "I frames(with SPS,PPS)"
> however for a few streams this API immediately returns the decoded frame
> and sometimes with some delay.
>
> Any idea which encoded param does FFMPEG take into account to start giving
> the decoded output as part of avcodec_receive_frame()?
>
> Example:
> *Case:1*
> I (No output)
> P (No output)
> B (I Frame)
> *Case-2:*
> I  (I frame)
> B  (No output)
> B  (No output)
> B (No output)
> P (No output)
> B (No output)
> B (B frame)
>
> Thanks,
> Rohit Khali
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/libav-user
>
> To unsubscribe, visit link above, or email
> libav-user-request at ffmpeg.org with subject "unsubscribe".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20201109/cbb8e77b/attachment.html>


More information about the Libav-user mailing list