Update converter.sh
This commit is contained in:
parent
a270690a0e
commit
7ea1bd2ca2
1 changed files with 4 additions and 6 deletions
10
converter.sh
10
converter.sh
|
@ -1,13 +1,11 @@
|
||||||
#!/bin/bash
|
# Make a mp4s folder If It isn't already there
|
||||||
|
|
||||||
# Create the new folder if it doesn't exist
|
|
||||||
mkdir -p mp4s
|
mkdir -p mp4s
|
||||||
|
|
||||||
# Loop through all .AVI files in the current directory
|
# Looks for all .AVI files in the directory
|
||||||
for file in *.AVI; do
|
for file in *.AVI; do
|
||||||
# Extract the base name of the file without the extension
|
# Picks the names of .AVI files
|
||||||
base_name=$(basename "$file" .AVI)
|
base_name=$(basename "$file" .AVI)
|
||||||
|
|
||||||
# Convert the file to .mp4 and place it in the mp4s folder
|
# Places the files into the mp4s directory
|
||||||
ffmpeg -i "$file" -c:v libx264 -c:a aac "mp4s/${base_name}.mp4"
|
ffmpeg -i "$file" -c:v libx264 -c:a aac "mp4s/${base_name}.mp4"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue