[Libav-user] How many frames can the AVPacket contains?

Carl Eugen Hoyos ceffmpeg at gmail.com
Thu May 17 12:43:33 EEST 2018


2018-05-17 8:25 GMT+02:00, Anton Prikazchikov <prikaz08-at-mail.ru at ffmpeg.org>:

> I read H264 stream from rtsp using by ffmpeg c++.
>
> I want to know how many video AVFrame-s can single AVPacket contains.
> I guess that one video frame, is it true?

I don't think this is generally correct, at least for PAFF, two packets
are needed for one frame.

Iirc, larger frames are sent through several rtsp packets, use the
parser.

Carl Eugen


More information about the Libav-user mailing list