Skip to content
/ ffrich Public
forked from althonos/ffpb

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

License

Notifications You must be signed in to change notification settings

banksio/ffrich

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%