Anyway, truncating a video seems like a narrow enough thing that you could ask a question about it on
Unix & Linux, right? (I mean, so long as you can say what OS you're on, what the container filetype and encoding of the video is, and whether you want to keep those or emit the output in a different container and/or encoding, and whether or not you have any other requirements.)