Skip to main content

FFmpeg wrapper for python

Project description

pyffmpeg | Downloads

FFmpeg wrapper for python. It uses the most up-to-date FFmpeg binary to provide both FFmpeg and FFprobe functionality. So you can kill two birds with one stone.

The beautiful thing about this is that it comes with it's own FFmpeg executable. It is compressed, making it the smallest one you can find. Becuase it's cross-platform and python 3, it is the only option available for building cross-platform apps with ffmpeg in python.

FFmpeg Version

Uses current FFmpeg version

Installation

pip install pyffmpeg

Usage

FFmpeg

from pyffmpeg import FFmpeg

inp = 'path/to/music_folder/f.mp4'
out = 'path/to/music_folder/f.mp3'

ff = FFmpeg()

output_file = ff.convert(inp, out)

print(output_file)

FFprobe

Provides FFprobe functions and values

from pyffmpeg import FFprobe

input_file = 'path/to/music.mp3'
fp = FFprobe(input_file)

print(fp.duration)

will print

> 00:04:32:32

NB: The above digits are just for illustration purposes.

Wiki

The wiki can be located here

Contributing

Please read Contributing

Legal

This library uses prebuilt binaries of FFmpeg licensed under the LGPLv2.1 and can be downloaded via the following 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pyffmpeg-2.4.2.18.1-py3-none-win_amd64.whl (41.0 MB view details)

Uploaded Python 3 Windows x86-64

pyffmpeg-2.4.2.18.1-py3-none-win32.whl (41.0 MB view details)

Uploaded Python 3 Windows x86

pyffmpeg-2.4.2.18.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.0 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64

pyffmpeg-2.4.2.18.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (17.0 MB view details)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

pyffmpeg-2.4.2.18.1-py3-none-macosx_11_0_arm64.whl (17.5 MB view details)

Uploaded Python 3 macOS 11.0+ ARM64

pyffmpeg-2.4.2.18.1-py3-none-macosx_10_9_x86_64.whl (17.5 MB view details)

Uploaded Python 3 macOS 10.9+ x86-64

pyffmpeg-2.4.2.18.1-py3-none-macosx_10_9_universal2.whl (17.5 MB view details)

Uploaded Python 3 macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file pyffmpeg-2.4.2.18.1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for pyffmpeg-2.4.2.18.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 0f04fa1c3f730442eaccf9fe09341fb463419a5ec6b8f8c854c10eeadd082dd5
MD5 8dc40e041fbaa9aa07bcaf992c85488d
BLAKE2b-256 673917391146ef0673569a443e6921bedb2712cc92656dd7334fefd78fc02fe1

See more details on using hashes here.

File details

Details for the file pyffmpeg-2.4.2.18.1-py3-none-win32.whl.

File metadata

  • Download URL: pyffmpeg-2.4.2.18.1-py3-none-win32.whl
  • Upload date:
  • Size: 41.0 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pyffmpeg-2.4.2.18.1-py3-none-win32.whl
Algorithm Hash digest
SHA256 ce40aedc88ebdc2095afe44fa95ebb0221d57696a943373962bfb20532a48ea6
MD5 1e1bf090cf8d440fabfb74b53b91d732
BLAKE2b-256 794f40d63a9fd3927fc3d1c3ee6309c0eb65edc4ff0df8192e42dc7859735a3e

See more details on using hashes here.

File details

Details for the file pyffmpeg-2.4.2.18.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyffmpeg-2.4.2.18.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d613a38ed716e33c67c851382061ef1ae5cbaa8b010db73adac7745f885b0b99
MD5 a24bd0937f614c3b220d00cb3b6751ae
BLAKE2b-256 93e7622c67c34a8ff1464b0047637aecdf9cb0377c26ec430fff725eecf0e9e5

See more details on using hashes here.

File details

Details for the file pyffmpeg-2.4.2.18.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pyffmpeg-2.4.2.18.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4a2b98be15f442150cd33decea53e94e2b279fe69de30c3d94715b76bfbdc696
MD5 1bfd3578b7492a6dff31a3bb5e63bb75
BLAKE2b-256 8f8d05b55d123d9cc67c7d247752a8d75184788f36a137188230850887572053

See more details on using hashes here.

File details

Details for the file pyffmpeg-2.4.2.18.1-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyffmpeg-2.4.2.18.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 72c720ef7ae24866de810160f45ddbcef2e43e5c2eae64cff1515c65f07d4312
MD5 19abf0c934efb2ed38b7c082d64b8a66
BLAKE2b-256 78da2f5fe8413098595ccf5937ea34dab67859dc37566b2c8846078f134bad02

See more details on using hashes here.

File details

Details for the file pyffmpeg-2.4.2.18.1-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pyffmpeg-2.4.2.18.1-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9347a1ae00225b4561dcb7543b91bc9ee3d36cbdfcefa7897e3672af0d299362
MD5 6eb55fe95cc96a02c3742a6c765766ca
BLAKE2b-256 380d1d79ef56994be6831cd3bf4b2865bcfc05acc2b15d46a20cce5065e01488

See more details on using hashes here.

File details

Details for the file pyffmpeg-2.4.2.18.1-py3-none-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for pyffmpeg-2.4.2.18.1-py3-none-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 c6b5148ee7aca95fb6756919b54d59fe4d417a6b0d5acfa92bc7f5a97cd15973
MD5 86b9735cb94c7ef57a9fe20406f7177f
BLAKE2b-256 2e71f61359785db0c305613f7f5c2b65ebf87c8b10abd35d3f9e7c1ed7b5f0ab

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