Skip to content

Instantly share code, notes, and snippets.

@thisislawatts
Created September 23, 2014 15:04
Show Gist options
  • Save thisislawatts/f035081c4ba94446cb51 to your computer and use it in GitHub Desktop.
Save thisislawatts/f035081c4ba94446cb51 to your computer and use it in GitHub Desktop.
Elongate your footage (n) times
function elongate() {
file_path=$(pwd)
file_name=$(basename "${1}")
file_ext="${file_name##*.}"
file_name="${file_name%.*}"
loop_by=10
if [ "$2" ]
then
loop_by=${2}
fi
ffmpeg -f concat -i <(for i in {1..$loop_by}; do printf "file '$file_path/$file_name.$file_ext'\n"; done) -c copy $file_name\__extended.$file_ext
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment