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)

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:

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

pyffmpeg-2.5.2.3.2.tar.gz (16.4 kB view details)

Uploaded Source

Built Distributions

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

pyffmpeg-2.5.2.3.2-py3-none-win_amd64.whl (45.5 MB view details)

Uploaded Python 3Windows x86-64

pyffmpeg-2.5.2.3.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (46.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

pyffmpeg-2.5.2.3.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (46.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

pyffmpeg-2.5.2.3.2-py3-none-macosx_11_0_arm64.whl (19.0 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

pyffmpeg-2.5.2.3.2-py3-none-macosx_10_9_x86_64.whl (19.0 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

pyffmpeg-2.5.2.3.2-py3-none-macosx_10_9_universal2.whl (19.0 MB view details)

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

File details

Details for the file pyffmpeg-2.5.2.3.2.tar.gz.

File metadata

  • Download URL: pyffmpeg-2.5.2.3.2.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for pyffmpeg-2.5.2.3.2.tar.gz
Algorithm Hash digest
SHA256 2873dd2ddb0c102055c0bbaaa6ecdb04720fa04b76320d090a26b1613669f052
MD5 4f7135bde413b2dae4e1d9269ba36aac
BLAKE2b-256 0a773cf4cf950a8f004d2cd48d967bf4d4d8f59fb196212f72ee019ee0675919

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyffmpeg-2.5.2.3.2-py3-none-win_amd64.whl
  • Upload date:
  • Size: 45.5 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for pyffmpeg-2.5.2.3.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 01e7068ff0e4b01c0ef04daeeedd090d9b11b192b575c7591926c17550b87b4a
MD5 08c6069052db1d036256df0c16832727
BLAKE2b-256 9b6d6a0c537af6ccd6a4c0b557888c6214060d39706a68125dbe0472cf066ef8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyffmpeg-2.5.2.3.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dcb244a702a62287d0130db1081ebc6382a09e10630daafc9a028080df82de4b
MD5 1575f3578a478a8eec5ebabd274a7ab8
BLAKE2b-256 37c1330028d0c8bc7f528d7c8a5c6eed059816368f44151895f5b2711f1ad424

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyffmpeg-2.5.2.3.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1edf5d140d03fca14d1edea3e30f0844fad14292fe9ab416f9365acda49d27a3
MD5 c421cb81bcb4a13c6d573b8849bcbb65
BLAKE2b-256 719ca872ca20c14453b400d7366edd6898fcda258289f8c48ac47412e9ab878b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyffmpeg-2.5.2.3.2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f79fd224ea85505b70f1e31cb96d763d2fa5c624af9e7474ec162a82a4c98fa7
MD5 970de187dd3febd11cff12cfb5e6ddc5
BLAKE2b-256 a9e186e41c124e0e1863d8a9d624dfe70aa522b92dc0e3553005c4a1c11d825b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyffmpeg-2.5.2.3.2-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 dfd90b290b9e3cfe6393fada5df554179a6c734e8c1919a14eb19f52aa1cddbc
MD5 fa02ad3180a51c54fb7410e3dab1c342
BLAKE2b-256 50292cc3f4ea4c7d49a42a76608de368cbdfe6af0d12cd26317d7e07af8743ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyffmpeg-2.5.2.3.2-py3-none-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 7b4734bf6eb00703cc0f65a52f22a73ec5bb767600089af996e8cda888571b6c
MD5 e8c9bf5f03760013a7fca981beeb6145
BLAKE2b-256 51abf1dc7fb7e4016c5dfffa98b4db9c169983ae574283147fa49f83738245f8

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