Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ffprobe_CMD=f'{ffmpeg_path}ffprobe '+\
- '-v error -select_streams v:0 -show_entries stream '+\
- '-of json {}'.format(in_file)
- vod_info = subprocess.check_output(ffprobe_CMD, shell=True)
- vod_info = json.loads(vod_info)
- width = (vod_info['streams'][0]['width'])
- height = (vod_info['streams'][0]['height'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement