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 protected under version 3 of the GNU General Public License.

You require ffprobe installed, and in your PATH. You can install ffmpeg for your system, which includes ffprobe.

Example Usage

from mediainfo import MediaInfo

fileinfo = MediaInfo("example.mp4")

print(info.streams.video.codec_name)
print(info.streams.video.resolution)
print(f"{info.streams.audio.samplerate_khz} kHz ({info.streams.audio.samplerate_preset})")

https://pypi.org/project/pytmg-mediainfo/ https://github.com/pytmg/mediainfo

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.1.tar.gz (15.9 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.1-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytmg_mediainfo-0.1.1.tar.gz
  • Upload date:
  • Size: 15.9 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.1.tar.gz
Algorithm Hash digest
SHA256 e9cb35afeb3d77944edff1b8424e7a9bee44691885fd04d9430adb9514affcda
MD5 f22248f1eb8aef833e34b63a44bd39e2
BLAKE2b-256 d8bf6ac572dec592cbc28fac5a24dc07d520b8f121f2d2bad9a4949d6a830eca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytmg_mediainfo-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e6714e51e545ac6971729bf5cf9c26d57afed4fbb0bfd5e2331492f82c9cb8fb
MD5 72f284e7563f7ab63f7f4e5e0026c699
BLAKE2b-256 995b898843bc3532b4f34188e2a5e958fea8da9bc214b3b3513a0b5c025209d9

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