Skip to content

Repository files navigation

pymp4

Python MP4 box parser and toolkit

Usage

pymp4 is based on the excellent parsing library construct.

>>>frompymp4.parserimportBox>>>fromioimportBytesIO>>>Box.build(dict(
type=b"ftyp",
major_brand="iso5",
minor_version=1,
compatible_brands=["iso5", "avc1"]))
b'\x00\x00\x00\x18ftypiso5\x00\x00\x00\x01iso5avc1'>>>ftyp=Box.parse(b'\x00\x00\x00\x18ftypiso5\x00\x00\x00\x01iso5avc1')
>>>print(ftyp)
Container:
type=ftypmajor_brand=iso5minor_version=1compatible_brands=ListContainer:
iso5avc1

About

A Python MP4 Parser and toolkit

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages