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.2.3.tar.gz (11.0 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.2.3-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ffrich-0.2.3.tar.gz
Algorithm Hash digest
SHA256 e4cb89984a233e1ae653ef161e2838976ed17c3527ca39d4138047bde82a763c
MD5 c8c82a3502b634684379aeddb6293d82
BLAKE2b-256 8d92674501f09905e4c84b8ba82168dbc806059fde63c7e5b55d20cfad301d56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ffrich-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 6.6 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.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 76da973dc97a30e5740d1cd838a827f80b5ea77eda826a6ae4846ae845cba1c1
MD5 727798d3d2bcef9020258caf1fc0035a
BLAKE2b-256 b1eb128c235578171f1c447c96188eb14fdeda0844294a57b7643a1439128187

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