f3mo / vdhdr

vdhdr - determine the type of a video by reading the file signature

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vdhdr

vdhdr determines the MME type of video contained in a file or byte stream. It's based on python's imghdr

formats
mp4
wmv
mov
mkv
ogg
avi
flv

Installation

git clone https://github.com/f3mo/vdhdr.git
cd vdhdr
python3 setup.py install

usage

import vdhdr
vdhdr.what('test.flv') # returns string

vdhdr.what('test.gif') # returns None

About

vdhdr - determine the type of a video by reading the file signature

License:GNU General Public License v3.0


Languages

Language:Python 100.0%