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

Nicolas George george at nsup.org
Tue Mar 9 13:13:53 EET 2021


Peter White (12021-03-09):
> Unless it happens to be one of those special cases that don't have that
> info in their metadata, like matroska:

Did I suggest to limit to the output of -show_format or -show_streams?
If you want information about frames, guess what you should use?

> Other than being a little ugly, my way seems to yield the correct result
> with any video. I like universal solutions, so I stuck with it, and
> recommended it.

FFprobe yields the correct result, and in a cleaner way. Just use it
properly.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20210309/3f7d386d/attachment.sig>


More information about the ffmpeg-user mailing list