Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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])
 
PREVIOUS NEXT
Tagged: #python #ffmpeg #video #fps
ADD COMMENT
Topic
Name
6+2 =