Created
August 21, 2017 09:50
-
-
Save galiminus/37f3542048f53fac5d7b44b1c9d83b92 to your computer and use it in GitHub Desktop.
Convert videos
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
#!/usr/bin/env ruby | |
Dir.glob('./TINY*.mp4') do |video| | |
system("ffmpeg -i #{video} -vf scale=-1:720 -c:v libx264 -crf 23 -preset slow -c:a copy -strict -2 #{video.gsub(".mp4", "_720.mp4")}") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment