Skip to main content

mprobe

Read video and audio metadata with Python 3.10+ and ffprobe (or avprobe). Install FFmpeg separately and ensure ffprobe is on your PATH; pip does not install it.

Install and use

python -m pip install mprobe
from mprobe import mediainfo

info = mediainfo("video.mp4", timeout=30)
print(info.get("duration"))   # seconds, as a string
print(info.get("format_name"))

Accepts strings and pathlib paths. Values are strings; TAG and DISPOSITION contain dictionaries. Repeated fields use the last stream’s value, then the container’s value. Fields vary by file and may be absent. Missing probes raise FileNotFoundError; invalid or missing media raise subprocess.CalledProcessError (details in stderr). A timeout raises subprocess.TimeoutExpired.

Inspired by pydub.

Metadata

Release files for mprobe 0.0.1

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

Source distribution (sdist)

Source distribution for mprobe 0.0.1
File Size Uploaded
mprobe-0.0.1.tar.gz 4.9 kB Details

Built distribution (wheel)

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

Total release size: 8.7 kB

Release files / mprobe-0.0.1.tar.gz

Download URL mprobe-0.0.1.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1e8d5a93f924fa88a8e2907afc3c6bf65bdbd967f98bfd014fe9c27af8111df6
BLAKE2b-256 checksum
How to use checksums
2568ef30ef0088dacd9c1878c7003dfdefbabf01482422fdfde6a2ba1b541856
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / mprobe-0.0.1-py3-none-any.whl

Download URL mprobe-0.0.1-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
898e434e5f1e78e79442eab5d412f1f7c698e6edf0c6793e9ac55816395a6241
BLAKE2b-256 checksum
How to use checksums
9434bdda529becc23d925c6abe26bb8f757cb2c2cca300d1af08cc97066070b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release history Release notifications | RSS feed

This release

0.0.1 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