Skip to content

Instantly share code, notes, and snippets.

@cy6erlion
Created December 13, 2019 13:17
Show Gist options
  • Save cy6erlion/0bfa6c895a0e07188a94b0b0c7257059 to your computer and use it in GitHub Desktop.
Save cy6erlion/0bfa6c895a0e07188a94b0b0c7257059 to your computer and use it in GitHub Desktop.
avi to mp4 converter
#!/bin/bash
for i in *.avi;
do ffmpeg -i "$i" -c:v libx264 -preset ultrafast "$(basename "$i" .avi)".mp4;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment