Batch Convert Flv to Mp3 in Windows With Ruby
I'm sure you could also do the scripting part with a batch file, but this was easier for me:
1. Get MPlayer for Win32 from over here
2. Do some ruby magic:
require "Fileutils" input_files = Dir["*.flv"] input_files.each{|filename| prefix = filename.split(".")[0] commandline="MPlayer-p4-svn-27811\\mplayer.exe -dumpfile \"#{prefix}.mp3\" -dumpaudio \"#{prefix}.flv\"" puts "Executing: " + commandline IO.popen (commandline) { |f| puts f.gets } }
3. Profit!