Answers for "python ffmpeg get video fps"

0

python ffmpeg get video fps

import ffmpeg

probe = ffmpeg.probe(filename_video)
video_info = next(s for s in probe['streams'] if s['codec_type'] == 'video')
fps = int(video_info['r_frame_rate'].split('/')[0])
Posted by: Guest on June-22-2021

Python Answers by Framework

Browse Popular Code Answers by Language