I am using this command
ffmpeg -start_at_zero -copyts -ss <start time> -t <duration> -i <SrcFile> -c copy <DstFile>
to fast cut a part of the mp4 video. I got the keyframes so that I choose the <start time> to be of one of them. I thought this will give me an accurate output video starting exactly at that keyframe, but this doesn't happen.
How can I achieve this (fast and accurate cut at the keyframe) ?
In another words: How ffmpeg decides where to start cutting? I thought it uses the neatest keyframe.
And another question: How can I encode a portion of the mp4 with exact same video and audio options? I don't know those options. I just want to keep the output as the original video. The cut in this second case can be at any frame (not always a keyframe). Thanks.