I am trying to extract a video clip from an mkv file, but its not accurate. I played my mkv file and noted the point e.g. starting 00:06:20 till 10 seconds. Now I executed a command like this
ffmpeg -ss 00:06:20 -i video-with-subs.mkv -t 00:00:10 -vcodec copy -acodec copy part1.mkv
The generated clip was somewhat from 00:06:12 till 10 seconds.
When used as an input option (before -i), seeks in this input file to position. Note that in most formats it is not possible to seek exactly, so fmpeg will seek to the closest seek point **before** position. When transcoding and -accurate_seek is enabled (the default), this extra segment between the seek point and position will be decoded and discarded. When doing stream copy or when -noaccurate_seek is used, it will be preserved.– Rajib Oct 17 '21 at 10:50