Skip to content

Instantly share code, notes, and snippets.

@akozlik
Created February 8, 2014 00:51
Show Gist options
  • Save akozlik/8874959 to your computer and use it in GitHub Desktop.
Save akozlik/8874959 to your computer and use it in GitHub Desktop.
Batch convert videos to mp4 using ffmpeg
for i in *.avi; do name=`echo $i | cut -d'.' -f1`; echo $name; ffmpeg -i $i $name.mp4 done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment