ffprogress provides elapsed time, ETA and progress percentage based on your ffmpeg call. e.g.
Elapsed 00:16:59, ETA 02:26:24, Progress 19.79%
Using go get
:
go get -u github.com/ashmckenzie/ffprogress
Or, download a release.
ffmpeg -y -i in.mkv -o out.mkv 2>&1 | ${GOPATH}/bin/ffprogress
NOTE:
- You must redirect STDERR to STDOUT (
2>&1
), otherwiseffprogress
can not parse the necessary output - As STDERR to STDOUT, you will need to add
-y
to overwrite (if exists) as you won't see theOverwrite ? [y/N]
prompt - If you're adjusting the output verbosity (
-v
), you will need at minimum32
forffprogress
to work (32
is the default)
- Fork it ( https://github.com/ashmckenzie/ffprogress/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request