Skip to main content

A simple progress bar for ffmpeg, written in Python using rich

Project description

ffrich

Not smart. Not comprehensive. Not guaranteed to work.

ffrich is an FFmpeg progress formatter. It will attempt to display a nice progress bar in the output, based on the raw ffmpeg output, as well as an adaptative ETA timer.

Usage

On the command line

ffrich is is not self-aware. Any argument given to the ffrich command is transparently given to the ffmpeg binary on your system, without any form of validation.

ffrich <any_ffmpeg_command>

Using as a library

ffrich can be used as a library: use the ffrich.main function:

ffrich.main(argv=None, stream=sys.stderr, encoding=None, console=rich.console.Console):

argv: The arguments to pass to ffmpeg, as an argument list.

stream: The stream to which to write the progress bar and the output messages.

encoding: The encoding of the terminal, used to decode the ffmpeg output. Defaults to locale.getpreferredencoding(), or UTF-8 is locales are not available.

console: The rich console object to output to.

Installation

Install from PyPI:

pip install ffrich

Install from Git:

pip install git+https://github.com/banksio/ffrich.git

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

ffrich-0.3.1.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

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

ffrich-0.3.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file ffrich-0.3.1.tar.gz.

File metadata

  • Download URL: ffrich-0.3.1.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for ffrich-0.3.1.tar.gz
Algorithm Hash digest
SHA256 f3e1543bad09142eb884be51f0ea548f3ad5282b3b3b2f5dd4bd21e05ec470ef
MD5 01f08d0a66d2106495e902c9ad091ef1
BLAKE2b-256 9df170f8db431ae5a8f74759210e66507e26cfe451d15c961f4131791b57647f

See more details on using hashes here.

File details

Details for the file ffrich-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: ffrich-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for ffrich-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc46c98e508db0400c425080d6dd47128159af02d9a57ce9a1eda817d86b2ab8
MD5 d824960c25d2a9edd0982e5154047840
BLAKE2b-256 1515403d73a0bac693bc4e099b4d992fd6840b61928dbe0e30457d6f283d5103

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