Answers for "ffmpeg python get total frames"

0

ffmpeg python get total frames

import ffmpeg

probe = ffmpeg.probe(path_to_video)
video_info = next(s for s in probe['streams'] if s['codec_type'] == 'video')
num_frames= int(video_info['nb_frames'])
Posted by: Guest on June-22-2021

Code answers related to "ffmpeg python get total frames"

Python Answers by Framework

Browse Popular Code Answers by Language