[Libav-user] How to get some packet information before decoding

Gonzalo Garramuño ggarra13 at gmail.com
Sat Apr 18 17:59:09 EEST 2020


El 18/04/2020 a las 11:46, Mohammed Bey Ahmed Khernache escribió:
> Hello,
> could someone tell me how to get:
>     1- the total number of packets that a video bit-stream contain?
Not possible, afaik.
>     2- the packet type (I, P, or B)?

You can get the frame type with av_get_picture_type_char( 
frame->pict_type ) (returns I, P, B or ?).

> Actually, I need to have these information *before to start 
> **decoding* of packets.
>
Not possible, afaik.

-- 
Gonzalo Garramuño

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20200418/0c7bb626/attachment.html>


More information about the Libav-user mailing list