Skip to main content

A Python wrapper around ffprobe

Project description

MediaInfo

MediaInfo is a Python wrapper library for ffprobe to provide a clean, developer-friendly API for developers to use when inspecting media files.

This project is licensed under the GNU General Public License version 3 (GPLv3).

ffprobe must be installed and in PATH to use this library. Installing ffmpeg usually includes ffprobe.

This library is still in development, but is stable enough for general use.

Features

  • Video and audio stream inspection
  • Computed helpers for resolution, aspect ratio, FPS, bitrate, etc.
  • Access to raw ffprobe output
  • Extensible stream system
  • Multi-stream media support

Example Usage

python -m pip install pytmg-mediainfo
from mediainfo import MediaInfo

fileinfo = MediaInfo("example.mp4")

print(fileinfo.streams.video.codec_name)
print(fileinfo.streams.video.resolution)
print(f"{fileinfo.streams.audio.samplerate_khz} kHz ({fileinfo.streams.audio.samplerate_category})")

Links

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

pytmg_mediainfo-0.1.3.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytmg_mediainfo-0.1.3-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file pytmg_mediainfo-0.1.3.tar.gz.

File metadata

  • Download URL: pytmg_mediainfo-0.1.3.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pytmg_mediainfo-0.1.3.tar.gz
Algorithm Hash digest
SHA256 59ecd11da0386ee2d95b615d7f53f4a32a24edb200fb04fcc2a70ac337047a32
MD5 e237176046f6eea60832f5113519b1ff
BLAKE2b-256 0059b763ab3a7a44ab587781f1d290b4931eefc416f0f22b8a13da7d71305778

See more details on using hashes here.

File details

Details for the file pytmg_mediainfo-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pytmg_mediainfo-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 217c554c4c953c81ae3ecb52ce14836d597bc42deaf29893ccd27f554b90766b
MD5 95db9d2b822f5ac1bc1e286996e90e7d
BLAKE2b-256 ceb422333f8f0f0cca79d53c9d4ecf25f97ed8f02d90f3341a6f008ac0fe5508

See more details on using hashes here.

Supported by

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