Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. ffprobe_CMD=f'{ffmpeg_path}ffprobe '+\
  2.             '-v error -select_streams v:0 -show_entries stream '+\
  3.             '-of json  {}'.format(in_file)
  4.  
  5.             vod_info = subprocess.check_output(ffprobe_CMD, shell=True)
  6.             vod_info = json.loads(vod_info)
  7.  
  8.  
  9.  
  10.             width = (vod_info['streams'][0]['width'])
  11.             height = (vod_info['streams'][0]['height'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement