Last active
May 24, 2016 21:29
-
-
Save jamesmichiemo/2ac4a2c853ba39c50854e9bf9d70e35e to your computer and use it in GitHub Desktop.
batch convert audio files using ffmpeg
This file contains hidden or 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
| Dir.glob("**/*.flac").each do |filename| | |
| new_filename = File.join( | |
| File.dirname(filename), | |
| "#{File.basename(filename, ".flac")}.ogg") | |
| `ffmpeg -i "#{filename}" -strict experimental -acodec vorbis -aq 100 "#{new_filename}"` | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment