Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
executable file 22 lines (15 sloc) 425 Bytes
#!/usr/bin/env bash
# ffreverse: Reverse a video (and its audio).
set -eo pipefail
function help {
echo "Usage: ffreverse <input> <output>"
exit
}
function installed {
cmd=$(command -v "${1}")
[[ -n "${cmd}" ]] && [[ -f "${cmd}" ]]
return ${?}
}
[[ $# -eq 2 && -f $1 && ! -f $2 ]] || help
installed ffmpeg || { >&2 echo "Missing ffmpeg."; exit 1; }
ffmpeg -i "${1}" -vf reverse -af areverse "${2}"
You can’t perform that action at this time.