Skip to main content

FFmpeg wrapper for python

Project description

pyffmpeg Travis (.org) Travis (.org) Travis (.org) Downloads

FFmpeg wrapper for python. It uses FFmpeg binary to provide both FFmpeg and FFprobe functionality (FFprobe functionality includes get_album_art). So you can kill two birds with one stone.

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

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 is just for illustration

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 2.0.3
Filename, size File type Python version Upload date Hashes
Filename, size pyffmpeg-2.0.3-cp35.cp36.cp37.cp38.cp39-abi3-macosx_10_6_intel.whl (11.1 MB) File type Wheel Python version cp35.cp36.cp37.cp38.cp39 Upload date Hashes View
Filename, size pyffmpeg-2.0.3-cp35.cp36.cp37.cp38.cp39-abi3-manylinux2010_x86_64.whl (12.8 MB) File type Wheel Python version cp35.cp36.cp37.cp38.cp39 Upload date Hashes View
Filename, size pyffmpeg-2.0.3-cp35.cp36.cp37.cp38.cp39-abi3-manylinux2014_x86_64.whl (12.8 MB) File type Wheel Python version cp35.cp36.cp37.cp38.cp39 Upload date Hashes View
Filename, size pyffmpeg-2.0.3-cp35.cp36.cp37.cp38.cp39-none-win32.whl (12.6 MB) File type Wheel Python version cp35.cp36.cp37.cp38.cp39 Upload date Hashes View
Filename, size pyffmpeg-2.0.3-cp35.cp36.cp37.cp38.cp39-none-win_amd64.whl (12.6 MB) File type Wheel Python version cp35.cp36.cp37.cp38.cp39 Upload date Hashes View
Filename, size pyffmpeg-2.0.3.tar.gz (8.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page