Skip to content

Instantly share code, notes, and snippets.

@jerodsanto
Created February 11, 2009 20:41
Show Gist options
  • Save jerodsanto/62249 to your computer and use it in GitHub Desktop.
Save jerodsanto/62249 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
unless ARGV.length == 1
puts "Usage: #{__FILE__} [file to convert]"
exit
end
original_file = ARGV.first
sans_extension = original_file.gsub(/\.flv$/,"")
system "ffmpeg -i #{original_file} -b 192K #{sans_extension}.mp3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment