Skip to content

Commit 3de066a

Browse files
committed
Add script to convert FLAC to OGG and AAC (M4A) for RPG Maker MV
1 parent 59aa6db commit 3de066a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

flac2ogg-aac.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
# Usage: ./flac2alac.sh <input directory without '/' at the end> <output dir w/o '/'>
4+
# Example: ./flac2alac.sh "~/Music/Super Mario 64" ~/Downloads/apple_mario
5+
6+
if [[ $1 == *.flac ]] then
7+
filename_ext=$(basename "$1")
8+
filename="${filename_ext%.*}"
9+
ffmpeg -i "$1" -c:a libvorbis -c:a copy "${filename}.ogg"
10+
ffmpeg -i "$1" -c:a aac -c:v copy "${filename}.m4a"
11+
else
12+
echo "Not a FLAC file!"
13+
fi

0 commit comments

Comments
 (0)