Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

yapyMP4

Open In Colab

Why another one?

"Yet Another Parser in Python for Mp4"

This was implemented as a "learning exercise" and a thin (metadata reading) interface for the MP4 container format. It is not as complete as other standard tools (such as ffmpeg) but this code aspires to provide some functionality that is only available through c/c++ interfaces for manipulating and getting meta-data about parts of mp4 files.

The initial motivation is/was to be able to request and partially download mp4 files from streaming endpoints (such as youtube) while only downloading the first few bytes of metadata (in order to learn the chunk/sample offsets).

Usage:

(see also the notebook)

from src.ypapymp4 import MP4Atom

# This will throw an error if the class does not find all the expected root nodes if check_offsets_avail is set to true 
root = MP4Atom.init_from_chunk('test.mp4', head_chunk_max_size = 200000,check_offsets_avail = False)

Metadata

Release files for yapymp4 0.0.2a0

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

Source distribution (sdist)

Source distribution for yapymp4 0.0.2a0
File Size Uploaded
yapymp4-0.0.2a0.tar.gz 11.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yapymp4 0.0.2a0
File Interpreter ABI Platform
yapymp4-0.0.2a0-py3-none-any.whl Python 3 none any Details

Total release size: 23.1 kB

Release files / yapymp4-0.0.2a0.tar.gz

Download URL yapymp4-0.0.2a0.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8f01a3a4f24d4c4586a92285b593b21491b5a9ca5dfc1ea1ac492cb41359deac
BLAKE2b-256 checksum
How to use checksums
d73d658736282bb90b47f3e1e2140d940d200b27f7cb763890d30ecfdf160a6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.28.1 setuptools/59.5.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.10

Release files / yapymp4-0.0.2a0-py3-none-any.whl

Download URL yapymp4-0.0.2a0-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a15acb0470d8ff19f032f0ffa1d8b8151da2f39da9d90253faf9589db37e1b18
BLAKE2b-256 checksum
How to use checksums
2a1b93ad994daa02dcc00d5e573eab48ba784cb77af4607085670e9ae0273b50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.28.1 setuptools/59.5.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.2a0 This release

2 release files

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