Skip to content

Instantly share code, notes, and snippets.

@theodric
Created June 20, 2021 11:00
Show Gist options
  • Save theodric/dfcc5f719def409f76d4dc5d3095af2c to your computer and use it in GitHub Desktop.
Save theodric/dfcc5f719def409f76d4dc5d3095af2c to your computer and use it in GitHub Desktop.
#!/bin/bash
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