Skip to main content

A progress bar for ffmpeg. Yay !

Project description

Not smart. Not comprehensive. Not guaranteed to work.

Source PyPI Travis Format License Changelog Downloads

ffpb 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.

Showcase

https://github.com/althonos/ffpb/raw/master/static/showcase.v1.gif

(yes, my laptop can’t encode shit)

Usage

ffpb is is not even self-aware. Any argument given to the ffpb command is transparently given to the ffmpeg binary on your system, without any form of validation. So if you know how to use the FFmpeg CLI, you know how to use ffpb !

Using as a library

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

ffpb.main(argv=None, stream=sys.stderr, encoding=None, tqdm=tqdm):
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.

tqdm

The progress bar factory to use. A subclass of tqdm.tqdm is expected.

Installation

Install from PyPI:

$ pip install --user ffpb

Alternatively, download a development version from the GitHub master branch:

$ pip install https://github.com/althonos/ffpb/archive/master.zip

Or if you use an Arch-based distro, download from the AUR

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

ffpb-0.4.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

ffpb-0.4.0-py2.py3-none-any.whl (6.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ffpb-0.4.0.tar.gz.

File metadata

  • Download URL: ffpb-0.4.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.0

File hashes

Hashes for ffpb-0.4.0.tar.gz
Algorithm Hash digest
SHA256 196adfacf3992389736f40188507c6a0cbe13c8717b8f3908897d6d0a442555b
MD5 888001605d8ed270d1a403c7bfd4c9fa
BLAKE2b-256 6942da7de03287364c2e8a4b4cc699c4686498f98e4762438e0be58d3ebbf04f

See more details on using hashes here.

File details

Details for the file ffpb-0.4.0-py2.py3-none-any.whl.

File metadata

  • Download URL: ffpb-0.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.0

File hashes

Hashes for ffpb-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2210ee314748797a61940966767d06fe2b1c3899e1f39c5c99c504f732ca0a4a
MD5 5d304a5f8bd0d20347fd4d2be49be0fd
BLAKE2b-256 1282f20ae412543277b8d0061d17aa679330a9de13d9d8353a694cd19ab60cd9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page