python ffmpeg get video fps

Solutions on MaxInterview for python ffmpeg get video fps by the best coders in the world

showing results for - "python ffmpeg get video fps"
Sofia
08 Nov 2016
1import ffmpeg
2
3probe = ffmpeg.probe(filename_video)
4video_info = next(s for s in probe['streams'] if s['codec_type'] == 'video')
5fps = int(video_info['r_frame_rate'].split('/')[0])
similar questions
queries leading to this page
python ffmpeg get video fps