Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
1234567 |
- # -*- 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'
|