assume that the total duration of input.mkv
is 35 minutes, and the video length cut with the following command is correct, which is 10 minutes:
ffmpeg -ss 00:10:00 -to 00:20:00 -accurate_seek -i input.mkv -codec copy -avoid_negative_ts 1 -y output.mkv
the video clipped with the following command has an error length of 15 minutes, that is, the total time (35 minutes) minus-to (20 minutes):
ffmpeg -ss 00:10:00 -to 00:20:00 -accurate_seek -i input.mkv -vcodec libx264 -acodec aac -y output.mp4
Multi-party search failed, ask for help!