Created
July 23, 2015 18:30
-
-
Save cdesch/521f39b2ebcb0f9b4488 to your computer and use it in GitHub Desktop.
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
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