You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- # -*- coding: utf-8 -*-
- import magic
-
-
- def is_mp4_video(video_path):
- mime_type = magic.from_buffer(open(video_path, "rb").read(2048), mime=True)
- return mime_type == 'video/mp4'
|