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

_______________________________________________
Libav-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to