Linux Bash progress bar?
Hello, I'd like to have a progress bar (preferably with an estimated remaining time) for my daily .MOV to MP4 encoding of my surveillance camera files. Can someone help me out? Thank you very much.
My code currently looks like this
#!/bin/bash
for file in *.mov; do
if [[ -f $file ]]; then
output="${file%.mov}_compressed.mov"
ffmpeg -i "$file" -vcodec libx265 -crf 35 -preset fast "$output"
mv "$output" "$file"
fi
done
Here are several ways to achieve this:
https://stackoverflow.com/questions/747982/can-ffmpeg-show-a-progress-bar
It is probably enough if you read the second (with “pipeview”) and the third (with “nc”) answer.
Thank you