Skip to main content

Utilities for working with ffmpeg

Project description

ffutils

Utilities for working with ffmpeg, such as downloading ffmpeg executables and displaying progress for ffmpeg commands.

Installation

To install the library, use pip:

pip install ffutils

Alternatively, install the latest directly from the GitHub repository:

pip install git+https://github.com/dsymbol/ffutils.git

Usage

from ffutils import get_ffmpeg_exe, ffprog

# Download ffmpeg executable if not found in PATH
get_ffmpeg_exe()

# Example ffmpeg command to convert a video with progress
command = ["ffmpeg", "-i", "input.mp4", "output.mkv"]
ffprog(command, desc="Converting video")

Combine ffmpeg-python and a progress bar:

import ffmpeg
from ffutils import get_ffmpeg_exe, ffprog

get_ffmpeg_exe()

command = (
    ffmpeg
    .input('video.mp4')
    .output('output.mkv')
).get_args()

ffprog(
    command,
    desc="Converting video"
)

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

ffutils-10.3.2024.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ffutils-10.3.2024-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file ffutils-10.3.2024.tar.gz.

File metadata

  • Download URL: ffutils-10.3.2024.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for ffutils-10.3.2024.tar.gz
Algorithm Hash digest
SHA256 e904ed3d8d340f8ba0d67d59c19441306384951459715388c60871d1833f2823
MD5 80e56005df67b29289e7bd27e6c07eb2
BLAKE2b-256 5355df5dd8105770e57592307edb941120f64615c5fbbd41ea834e982556dc79

See more details on using hashes here.

File details

Details for the file ffutils-10.3.2024-py3-none-any.whl.

File metadata

  • Download URL: ffutils-10.3.2024-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for ffutils-10.3.2024-py3-none-any.whl
Algorithm Hash digest
SHA256 fdaa967022b9577a3b981d15c749a49e6a5709e09d5898a711ffed456f2fe23e
MD5 1d3be0258eeb6bb872f07f6a901f9c91
BLAKE2b-256 26edc82d775a43fc594c499e731f9c3e54cd5fb7ef1e3748b1aeb38c6969faff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page