Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- . ffprogress.sh
- FF_ARGS="-an -f null -y"
- FF_INPUT=$1
- echo
- if ! FF_PROGRESS; then
- printf "\n\033[0;31mError - $FF_ERROR\033[0;32m\n\n"
- exit 1
- fi
- printf "\r\033[1B\033[1C\033[7m"
- grep -Eo 'frame= *[0-9]+ *' $FF_LOG | tail -n1
- printf "\033[0m\n\n"
- rm -f $FF_LOG
- # Original simplified ffmpeg command line:
- # ffmpeg -i $1 -an -f null -y /dev/null 2>&1 | grep -Eo 'frame= *[0-9]+ *' | grep -Eo '[0-9]+' | tail -1 -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement