From a270690a0e8d57ad9c4dc332469fc2aed87b6ab6 Mon Sep 17 00:00:00 2001 From: Dangrain Date: Tue, 15 Oct 2024 22:09:22 +0200 Subject: [PATCH] Add files via upload --- converter.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 converter.sh 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