Skip to main content

FFmpeg wrapper for python

Project description

pyffmpeg-bin

FFmpeg wrapper for python.

Same as pyffmpeg but its unserialised.

This unserialised version means the ffmpeg binary comes with it as a binary and needs not be built at runtime.

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

Installation

pip install pyffmpeg

Usage

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)

Advanced Usage

from pyffmpeg import FFmpeg

Use a global directory to store all converted files

ff = FFmpeg('path/to/app_folder')
ff.convert('path/to/music_folder/f.mp3', 'f.wav')

Overwrite (Default is set to True)

ff.overwrite = False # do not overwrite but exit immediately

Wiki

The wiki can be located here

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-bin-1.8.0.1.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distributions

pyffmpeg_bin-1.8.0.1-cp35.cp36.cp37.cp38.cp39-none-win_amd64.whl (17.1 MB view hashes)

Uploaded CPython 3.5 CPython 3.6 CPython 3.7 CPython 3.8 CPython 3.9 Windows x86-64

pyffmpeg_bin-1.8.0.1-cp35.cp36.cp37.cp38.cp39-none-win32.whl (17.1 MB view hashes)

Uploaded CPython 3.5 CPython 3.6 CPython 3.7 CPython 3.8 CPython 3.9 Windows x86

pyffmpeg_bin-1.8.0.1-cp35.cp36.cp37.cp38.cp39-abi3-manylinux2010_x86_64.whl (18.2 MB view hashes)

Uploaded CPython 3.5+ CPython 3.6+ CPython 3.7+ CPython 3.8+ CPython 3.9+ manylinux: glibc 2.12+ x86-64

pyffmpeg_bin-1.8.0.1-cp35.cp36.cp37.cp38.cp39-abi3-macosx_10_6_intel.whl (15.5 MB view hashes)

Uploaded CPython 3.5+ CPython 3.6+ CPython 3.7+ CPython 3.8+ CPython 3.9+ macOS 10.6+ intel

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