diff --git a/converter.sh b/converter.sh new file mode 100644 index 0000000..d8850f1 --- /dev/null +++ b/converter.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# Create the new folder if it doesn't exist +mkdir -p mp4s + +# Loop through all .AVI files in the current directory +for file in *.AVI; do + # Extract the base name of the file without the extension + base_name=$(basename "$file" .AVI) + + # Convert the file to .mp4 and place it in the mp4s folder + ffmpeg -i "$file" -c:v libx264 -c:a aac "mp4s/${base_name}.mp4" +done