ffmpeg-progressbar-cli
ffmpeg-progressbar-cli is a colored progress bar for FFmpeg.
Simply use ffmpeg-bar
instead of ffmpeg
.
Contents
- Installation
- Usage
- Configuration
- Requirements
- Compatibility
- Contribute
- Author
Installation
$ npm install --global ffmpeg-progressbar-cli
Usage
The installation process adds the ffmpeg-bar
command to your system.
This is a transparent wrapper, passing all commands to ffmpeg
.
To use it, simply launch ffmpeg-bar
instead of ffmpeg
, or replace ffmpeg
with ffmpeg-bar
inside your scripts.
As long as no errors are encountered, the output of ffmpeg-bar
will consist of a progress bar, the estimated time until process completion and a percentage.
Examples
$ ffmpeg-bar -i input.mp4 output.avi
$ ffmpeg-bar -i input.avi -b:v 64k -bufsize 64k output.avi
$ ffmpeg-bar -i in.mkv -map_metadata:s:a 0:g out.mkv
Configuration
For configuration purposes, this exposes several environmental variables:
BAR_FILENAME_LENGTH
(default: 10)
The maximum number of characters of the filename label displayed next to the progress bar beam.
BAR_BEAM_RATIO
default: 0.9
The share of (available) horizontal display real estate the progress bar beam should occupy.
Examples
$ BAR_FILENAME_LENGTH=30 ffmpeg-bar -i in.mp4 out.mp4
$ BAR_BAR_SIZE_RATIO=0.5 ffmpeg-bar -i in.mp4 out.mp4
Requirements
A working installation of FFmpeg.
Compatibility
Tested on
- macOS 10.13, 10.14 Beta
- Windows 10 1803
- Ubuntu 18.04
Contribute
Read the contribution documentation.
License
MIT
Author
sidneys 2018