Skip to main content

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

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pybenzinaparse-0.2.2.tar.gz (20.6 kB view details)

Uploaded Source

File details

Details for the file pybenzinaparse-0.2.2.tar.gz.

File metadata

  • Download URL: pybenzinaparse-0.2.2.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.11

File hashes

Hashes for pybenzinaparse-0.2.2.tar.gz
Algorithm Hash digest
SHA256 f9ac4e9b47ff893398359fc3a4b83a398ab7e0a5d6e59e482b673382bf949b5d
MD5 14601919728a5657f807e6c6d8a97c93
BLAKE2b-256 25471daeae51cf33b3d44dc80db5a9383faf68f0e5b57fcb4b254e1123530902

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page