Add files via upload

This commit is contained in:
Dangrain 2024-10-15 22:09:22 +02:00 committed by GitHub
parent 692d7a0d4e
commit a270690a0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

13
converter.sh Normal file
View file

@ -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