Search code examples
ffprobe

How to limit the number of frames ffprobe interprets?


I have this command

ffprobe -show_frames -select_streams v  -print_format json -i c:\test.mpg

However, it prints off all the frame info. Is there anyway I can limit ffprobe to just look at the first 10 frames? Thanks

B


Solution

  • -read_intervals will do the trick. e.g. %+2 is to read first 2 sec, %+#2 to read 2 frames.

    For example: -read_intervals "%+2"