[FFmpeg-user] How to get he total number of frames

Peter White peter.white at posteo.net
Fri Mar 12 18:00:09 EET 2021


On Fri, Mar 12, 2021 at 03:51:11PM +0100, Nicolas George wrote:
> Peter White (12021-03-12):
> > but that is because a packet needs to be decoded first to get the frame.
> 
> Please be complete in your statements:
> 
> ... with some obscure codecs or if libavcodec happens to have been
> compiled without parsers...

To be honest, that was not entirely clear until just now.

> Otherwise counting the packets is perfectly fine, as I have already
> explained.

That point did not come across in this clarity. Thank you for setting my
mind at ease. :)


Cheers,
Peter


More information about the ffmpeg-user mailing list