-
-
Save anonymous/79c841421b5145761393 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env ruby | |
dir = File.expand_path(File.join(ARGV.shift.dup || "./", "**.flac")) | |
puts dir | |
for file in Dir.glob(dir) do | |
puts file | |
`ffmpeg -i "#{file}" -c:a aac_at -aac_at_mode vbr -aac_at_quality 2 "#{file}.m4a"` | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment