inline Cut up Video

Originally published on May 1st, 2020 (Last updated on May 1st, 2020)

To cut a video-file down to a sec­tion in the file, use the fol­low­ing command:

# Absolute times (see note below!)
ffmpeg -ss 00:02:05 -i <file> -map 0 -c copy -to 00:23:01 <out>.mkv

# Relative times
ffmpeg -ss 00:02:05 -i <file> -map 0 -c copy -t 00:21:54 <out>.mkv

NOTE: The -to option does­n’t take the absolute time from the input file, because -ss resets the timer to 0 at the absolute time giv­en to -ss.

  • Either set -to rel­a­tive to -ss
  • or use -t and spec­i­fy the length of the result­ing out­put instead

Time must be spec­i­fied in a sup­port­ed for­mat, usu­al­ly either hh:mm:ss or mm:ss.

Most­ly tak­en from this Supe­rUser Answer


No com­ment sec­tion here 😄

You can reach me over at @knuth_dev or send me an Email.