We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59aa6db commit 3de066aCopy full SHA for 3de066a
flac2ogg-aac.sh
@@ -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