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.

Source Distribution

pyffmpeg-2.0.3.tar.gz (8.1 kB view hashes)

Uploaded Source

Built Distributions

pyffmpeg-2.0.3-cp35.cp36.cp37.cp38.cp39-none-win_amd64.whl (12.6 MB view hashes)

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

pyffmpeg-2.0.3-cp35.cp36.cp37.cp38.cp39-none-win32.whl (12.6 MB view hashes)

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

pyffmpeg-2.0.3-cp35.cp36.cp37.cp38.cp39-abi3-manylinux2014_x86_64.whl (12.8 MB view hashes)

Uploaded CPython 3.5+ CPython 3.6+ CPython 3.7+ CPython 3.8+ CPython 3.9+

pyffmpeg-2.0.3-cp35.cp36.cp37.cp38.cp39-abi3-manylinux2010_x86_64.whl (12.8 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-2.0.3-cp35.cp36.cp37.cp38.cp39-abi3-macosx_10_6_intel.whl (11.1 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