Skip to main content

Parses out and returns a limited set of MP4 boxes

Usage

Parse boxes

import bitstring as bs

from pybenzinaparse import Parser

bstr = bs.ConstBitStream(filename="my.mp4")
for box in Parser.parse(bstr):
    print box.header.type
    # Load the box content in memory
    box.load(bstr)

Check is MP4 file

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

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

Metadata

Release files for pybenzinaparse 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pybenzinaparse 0.2.2
File Size Uploaded
pybenzinaparse-0.2.2.tar.gz 20.6 kB Details

Release files / pybenzinaparse-0.2.2.tar.gz

Download URL pybenzinaparse-0.2.2.tar.gz
Size 20.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f9ac4e9b47ff893398359fc3a4b83a398ab7e0a5d6e59e482b673382bf949b5d
BLAKE2b-256 checksum
How to use checksums
25471daeae51cf33b3d44dc80db5a9383faf68f0e5b57fcb4b254e1123530902
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.11

Release history Release notifications | RSS feed

This release

0.2.2 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page