Skip to main content

FFmpeg wrapper for python

Project description

pyffmpeg

FFmpeg wrapper for python. The beautiful thing about it is that it comes with its own FFmpeg executable. 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.

Files for pyffmpeg, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size pyffmpeg-1.0.0-py3-darwin-any.whl (20.9 MB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyffmpeg-1.0.0-py3-linux-any.whl (24.2 MB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyffmpeg-1.0.0-py3-windows-any.whl (22.7 MB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyffmpeg-1.0.0-windows.tar.gz (22.6 MB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page