Skip to content

Instantly share code, notes, and snippets.

@bbuyukkahraman
Created December 4, 2015 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbuyukkahraman/94a04a1222a464d45433 to your computer and use it in GitHub Desktop.
Save bbuyukkahraman/94a04a1222a464d45433 to your computer and use it in GitHub Desktop.
# Change batch video play speed in folder
#!/bin/bash
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
for f in *
do
ffmpeg -i "$f" -filter_complex "[0:v]setpts=0.625*PTS[v];[0:a]atempo=1.6[a]" -map "[v]" -map "[a]" "$f-UF.mp4"
done
IFS=$SAVEIFS
# Change batch video scale in folder
#!/bin/bash
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
for f in *
do
ffmpeg -i "$f" -vf scale=720x480 "$f-NS.mp4"
done
IFS=$SAVEIFS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment