Get dimensions of a video file

前端 未结 8 2073
情歌与酒
情歌与酒 2020-12-01 09:39

Is there a way in python to get the dimensions of a video file or some other library that would accomplish this? The equivalent of a Media Info or something? Th

8条回答
  •  天涯浪人
    2020-12-01 10:08

    This library seems to have an example that does just that on its main page (print_info(vs)):

    http://code.google.com/p/ffvideo/

    It's a wrapper around ffmpeg (there seems to be a few Python libraries for using ffmpeg).

提交回复
热议问题