Skip to content

Instantly share code, notes, and snippets.

@to-var
Created October 10, 2018 17:07
Show Gist options
  • Save to-var/b7044abaf4f47902597385c2842837c4 to your computer and use it in GitHub Desktop.
Save to-var/b7044abaf4f47902597385c2842837c4 to your computer and use it in GitHub Desktop.
Converts all .avi files ito .mov in the same folder. Uses ffmpeg.
for i in *.avi;
do name=`echo $i | cut -d'.' -f1`;
echo $name;
ffmpeg -i "$i" "${name}.mov";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment