Last active
August 28, 2016 22:25
-
-
Save andrelugomes/25c4337d75cc74d91b02ca6d382bbb89 to your computer and use it in GitHub Desktop.
Convert .mkv to .mp4
This file contains 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
#sudo apt install ffmpeg | |
Dir.glob("*.mkv") do |mkv_file| | |
puts "working on: #{mkv_file}" | |
mp4_file = mkv_file.gsub(".mkv", ".mp4") | |
system "ffmpeg -i #{mkv_file} -acodec copy -vcodec copy -c:s mov_text #{mp4_file}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment