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

Uploaded Python 3 Windows x86-64

pyffmpeg-2.4.2.18.1-py3-none-win32.whl (41.0 MB view hashes)

Uploaded Python 3 Windows x86

pyffmpeg-2.4.2.18.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.0 MB view hashes)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64

pyffmpeg-2.4.2.18.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (17.0 MB view hashes)

Uploaded Python 3 manylinux: glibc 2.17+ ARM64

pyffmpeg-2.4.2.18.1-py3-none-macosx_11_0_arm64.whl (17.5 MB view hashes)

Uploaded Python 3 macOS 11.0+ ARM64

pyffmpeg-2.4.2.18.1-py3-none-macosx_10_9_x86_64.whl (17.5 MB view hashes)

Uploaded Python 3 macOS 10.9+ x86-64

pyffmpeg-2.4.2.18.1-py3-none-macosx_10_9_universal2.whl (17.5 MB view hashes)

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

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