ffprobe:frame:count_number_of_frames
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ffprobe:frame:count_number_of_frames [2025/05/27 09:16] – created peter | ffprobe:frame:count_number_of_frames [2025/05/27 09:20] (current) – peter | ||
---|---|---|---|
Line 16: | Line 16: | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Get frame count from video file metadata ===== | ||
+ | |||
+ | <code bash> | ||
+ | ffprobe -select_streams v:0 -show_entries stream=nb_frames -of default=noprint_wrappers=1 input.mp4 | ||
+ | </ | ||
+ | |||
+ | <WRAP important> | ||
+ | **WARNING: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | <code bash> | ||
+ | ffprobe -count_frames -select_streams v:0 -show_entries stream=nb_read_frames -of default=nokey=1: | ||
+ | </ | ||
+ | |||
+ | <WRAP important> | ||
+ | **WARNING: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | <code bash> | ||
+ | ffmpeg -i input.mp4 -map 0:v:0 -c copy -f null - | ||
+ | </ | ||
+ | |||
+ | <WRAP important> | ||
+ | **WARNING: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
ffprobe/frame/count_number_of_frames.1748337388.txt.gz · Last modified: 2025/05/27 09:16 by peter