Add files via upload
This commit is contained in:
parent
692d7a0d4e
commit
a270690a0e
1 changed files with 13 additions and 0 deletions
13
converter.sh
Normal file
13
converter.sh
Normal 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
|
Loading…
Add table
Reference in a new issue