Created
August 11, 2015 07:15
-
-
Save yoggy/0cdc9a96d5ddd00b4ae4 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
| #!/usr/bin/ruby | |
| Dir.glob("*.mp4") do |f| | |
| next if /-org/ =~ f | |
| vcopy_file = f; | |
| org_file = f + ".-org.mp4" | |
| File.rename(f, org_file); | |
| cmd = "ffmpeg -i #{org_file} -vcodec copy -map 0:0 #{vcopy_file}" | |
| puts "exec : #{cmd}" | |
| system(cmd) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment