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.2.tar.gz (10.6 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.2-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ffrich-0.2.2.tar.gz
  • Upload date:
  • Size: 10.6 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.2.tar.gz
Algorithm Hash digest
SHA256 32a20f738b8528987e8b9688a47209f01791d78391e85e7ab4b4fe1e794fe30a
MD5 ac592bcba362982e781261f9b992ea3c
BLAKE2b-256 1a4898536d86aeb2ee2675e6070191067baa849bab8b56bb8b17ea71c2911882

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ffrich-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.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.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cb91428b3eb51082968f80284b6eb4f980a391a6284bac9da61cc67274b808d2
MD5 1024281dd765a84003d5176990d8d057
BLAKE2b-256 d4261d7a64fae929c3a7d10de50ea9dc9323aa23d94ac4381b238b85bc6b51b4

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