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.0.tar.gz (11.4 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.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ffrich-0.3.0.tar.gz
  • Upload date:
  • Size: 11.4 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.0.tar.gz
Algorithm Hash digest
SHA256 2711cceec63a603627fa73bbd285bf7b2786a27288f0de1f36f1a20ce77d43cc
MD5 6954338be050bc9f61aa7c923b594786
BLAKE2b-256 426fe8190586308bd23e67150ebf8ce93c690d4f3918793eb816ff53d1ec5ce6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ffrich-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66dee4b2e5155907eb730601d18e7c77de81d8ee91958aad68e8688fe86c3e4b
MD5 42c66ad66848224fbfb22c1be6852033
BLAKE2b-256 c815ba732f62b7b8a56a575130ffe8e2ff593bde79d7e41e26a2ba8693191da7

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