I want to trim 5 seconds from the beginning and end of the video in a single pass without reencoding. Exactly 5 seconds is not important, nearest keyframe will do. The videos are of different durations so I can't use -t
or -to
. I tried using -ss 5
and -sseof -5
but that's not allowed. Is there another way?