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.3-py3-none-win_amd64.whl (41.0 MB view details)

Uploaded Python 3Windows x86-64

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

Uploaded Python 3Windows x86

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

Uploaded Python 3macOS 11.0+ ARM64

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

Uploaded Python 3macOS 10.9+ x86-64

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

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

File details

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

File metadata

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

File hashes

Hashes for pyffmpeg-2.4.3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 98a36ce810ea8c84aee5e4bbb4c4c27c079db4aecdf914e0043cf5cfcecc9fcd
MD5 f197d95760870155a44be0878586b667
BLAKE2b-256 5d6d631766d3fef705ce093df66488caabb3caf842611f3a91707313cf8b7a6a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyffmpeg-2.4.3-py3-none-win32.whl
Algorithm Hash digest
SHA256 ff27a2269c2d5378074317118336137a3dd66017590721644afc788ef7a0e391
MD5 96a56d5bc18a8a8af92c870a3d252a13
BLAKE2b-256 46bd808bb724edcce8dab6b41aa0df75ed69300c287bb9b288b1f1de23296d1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyffmpeg-2.4.3-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5b827aafbd83f9bd71b18ca7e95d3af04fc3e71e7b43606757c0bc20a33dbfe4
MD5 dd2251e7ad7329493ce9f3e8288a8f97
BLAKE2b-256 5dbdb08140d5c46a9afa5ce9d1cba674763c3c942879ac7efe4e15644f10d0d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyffmpeg-2.4.3-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5cce89e7198c9ff5c4fa81735c6ab8b96a632f23a3b926c4b726a6d375c38861
MD5 babddb07e1558ea1151ac6bf44a15a14
BLAKE2b-256 5a61f1610debc4dd6172154d07819966c4e7748a71ec80cba5a3b2f7d1c3534b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyffmpeg-2.4.3-py3-none-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 0f0675462db89ab8779172b74095fd38ce92c5948fe4df40d62bb090521e7153
MD5 fd830746f179e28208165ce108b8382d
BLAKE2b-256 8763cbbd76fcc0ed2d61ea1b5b1eeaee7d73c769acf9423498ebee2f4dfd416d

See more details on using hashes here.

Supported by

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