Skip to content

MP4 / ISO base media file format (ISO/IEC 14496-12 - MPEG-4 Part 12) file parser library

License

Notifications You must be signed in to change notification settings

GordonSo/pymp4parse

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MP4 ISO Base Media File Format Parser Library

Parses out and returns a limited set of MP4 boxes

Usage:

Parse boxes

import pymp4parse

boxes = pymp4parse.F4VParser.parse(filename='my.mp4')
for box in boxes:
    print box.type
    print dir(box)

Check is MP4 file

Reads the first box header at byte 0. Returns False if box header does not exist or is invalid

>>> pymp4parse.F4VParser.is_mp4(filename='my.mp4')
True
>>> pymp4parse.F4VParser.is_mp4(filename='/etc/resolv.conf')
False

Installation

pip install https://github.com/use-sparingly/mp4parse/zipball/master

Prerequisites

Pip should install prerequisites. In case you're manually installing, you'll need:

  1. Bitstring - https://pypi.python.org/pypi/bitstring/

About

MP4 / ISO base media file format (ISO/IEC 14496-12 - MPEG-4 Part 12) file parser library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%