Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Dir.chdir ARGV[0]
wmas = Dir.glob("*.wma")
wmas.each do |wma|
wma = File.basename wma
mp3 = "#{wma.gsub(/[[:space:]]/,'').downcase[0..-4]}mp3"
puts "processing #{wma} to #{mp3}"
`avconv -i \"#{wma}\" -acodec libmp3lame -ab 128k #{mp3}`
end
`rm *.wma`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.