Get dimensions of a video file

前端 未结 8 2062
情歌与酒
情歌与酒 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 09:52

    Old question but... To get the size of a file:

    file_size_in_Mio = os.path.getsize(name_of_video) //(1024*1024)
    

提交回复
热议问题