Skip to content

Instantly share code, notes, and snippets.

@cdesch
Created July 23, 2015 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdesch/521f39b2ebcb0f9b4488 to your computer and use it in GitHub Desktop.
Save cdesch/521f39b2ebcb0f9b4488 to your computer and use it in GitHub Desktop.
puts 'Converting FLV files'
Dir.new('.').each do |file|
if file =~ /.\.flv$/i
puts ' --> converting: ' + file + ' to ' + file.gsub(/.\.flv$/i, '.mp4')
`ffmpeg -i #{file} #{file.gsub(/.\.flv$/i, '.mp4')}`
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment