pyffmpeg | 
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)
OR
from pyffmpeg import FFmpeg
ff = FFmpeg()
ff.input('path/to/music_folder/f.mp4').output('path/to/music_folder/f.mp3').run()
Or for multiple input files
ff.input(
'path/to/music_folder/f.mp4',
'path/to/music_folder/g.mp3',
map=['0:1', '0:0']
).output('path/to/music_folder/f.mp4').run()
This method allows more complex file handling
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
Contributions are welcome. Please read Contributing
Legal
This library uses prebuilt binaries of FFmpeg licensed under the LGPLv2.1 and can be downloaded via the following links:
Metadata
Release files for pyffmpeg 2.5.2.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyffmpeg-2.5.2.3.2.tar.gz | 16.4 kB | Without provenance | Details for pyffmpeg-2.5.2.3.2.tar.gz |
Built distributions (wheels)
Total release size: 195.4 MB
Release files / pyffmpeg-2.5.2.3.2.tar.gz
| Download URL | pyffmpeg-2.5.2.3.2.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2873dd2ddb0c102055c0bbaaa6ecdb04720fa04b76320d090a26b1613669f052
|
|
BLAKE2b-256 checksum How to use checksums |
0a773cf4cf950a8f004d2cd48d967bf4d4d8f59fb196212f72ee019ee0675919
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / pyffmpeg-2.5.2.3.2-py3-none-win_amd64.whl
| Download URL | pyffmpeg-2.5.2.3.2-py3-none-win_amd64.whl |
|---|---|
| Size | 45.5 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
01e7068ff0e4b01c0ef04daeeedd090d9b11b192b575c7591926c17550b87b4a
|
|
BLAKE2b-256 checksum How to use checksums |
9b6d6a0c537af6ccd6a4c0b557888c6214060d39706a68125dbe0472cf066ef8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / pyffmpeg-2.5.2.3.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pyffmpeg-2.5.2.3.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 46.5 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
dcb244a702a62287d0130db1081ebc6382a09e10630daafc9a028080df82de4b
|
|
BLAKE2b-256 checksum How to use checksums |
37c1330028d0c8bc7f528d7c8a5c6eed059816368f44151895f5b2711f1ad424
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / pyffmpeg-2.5.2.3.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | pyffmpeg-2.5.2.3.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 46.5 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
1edf5d140d03fca14d1edea3e30f0844fad14292fe9ab416f9365acda49d27a3
|
|
BLAKE2b-256 checksum How to use checksums |
719ca872ca20c14453b400d7366edd6898fcda258289f8c48ac47412e9ab878b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / pyffmpeg-2.5.2.3.2-py3-none-macosx_11_0_arm64.whl
| Download URL | pyffmpeg-2.5.2.3.2-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 19.0 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f79fd224ea85505b70f1e31cb96d763d2fa5c624af9e7474ec162a82a4c98fa7
|
|
BLAKE2b-256 checksum How to use checksums |
a9e186e41c124e0e1863d8a9d624dfe70aa522b92dc0e3553005c4a1c11d825b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / pyffmpeg-2.5.2.3.2-py3-none-macosx_10_9_x86_64.whl
| Download URL | pyffmpeg-2.5.2.3.2-py3-none-macosx_10_9_x86_64.whl |
|---|---|
| Size | 19.0 MB |
| Tags | Python 3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
dfd90b290b9e3cfe6393fada5df554179a6c734e8c1919a14eb19f52aa1cddbc
|
|
BLAKE2b-256 checksum How to use checksums |
50292cc3f4ea4c7d49a42a76608de368cbdfe6af0d12cd26317d7e07af8743ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / pyffmpeg-2.5.2.3.2-py3-none-macosx_10_9_universal2.whl
| Download URL | pyffmpeg-2.5.2.3.2-py3-none-macosx_10_9_universal2.whl |
|---|---|
| Size | 19.0 MB |
| Tags | Python 3 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
7b4734bf6eb00703cc0f65a52f22a73ec5bb767600089af996e8cda888571b6c
|
|
BLAKE2b-256 checksum How to use checksums |
51abf1dc7fb7e4016c5dfffa98b4db9c169983ae574283147fa49f83738245f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for pyffmpeg 2.5.2.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.