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
#!/usr/bin/env ruby | |
# Removes first startTrim and last endTrim seconds of an MP4 file and stores the resulting file in out_dir. | |
FFMPEG = "ffmpeg" # => path to the FFmpeg | |
FFPROBE = "ffprobe" # => path to FFProbe | |
startTrim = 5 | |
endTrim = 6 | |
if RUBY_VERSION =~ /1\.8[\.\d]*/ |