Last active
August 29, 2015 13:59
-
-
Save csparker247/10501945 to your computer and use it in GitHub Desktop.
Dual output ffmpeg command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#Run from root of a CD volume on OSX | |
album=$(basename "$PWD") | |
mkdir -p ~/Desktop/Music/FLAC/"${album}" | |
mkdir -p ~/Desktop/Music/M4A/"${album}" | |
for track in *.aiff; do | |
newname=$(basename "$track" .aiff) | |
ffmpeg -i "$track" \ | |
-c:a flac -y ~/Desktop/Music/FLAC/"${album}/${newname}.flac" \ | |
-f caf - | fdkaac -b320 -G0 --moov-before-mdat -o ~/Desktop/Music/M4A/"${album}/${newname}.m4a" - | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment