Useful for postprocessing various youtube videos with jingles/ad "follow us" stuff at the end.
ffmpeg has an easy way to cut off from beginning, but not to say "cut of 20s from the end". So one has to use to do arithmetics with duration. Here, using ruby script.
USAGE
ruby convert.rb 6 22 file_to_video.mp4 out/
will cut off 6s from beginning and 22s from the end of the file and will write the result to out/ folder.