To remove the first 10 seconds of a video without any transcoding I can use the following command:
ffmpeg -i input.webm -vcodec copy -acodec copy -ss 10 output.webm
The problem is that if the key frames are located at 8 seconds then at 12 seconds, the video will start from the 8th second. If I do the following I will get the correct timing, but the whole stream will be transcoded:
ffmpeg -i input.webm -ss 10 output.webm
Is there any way (using avcodec of ffmpeg) to transcode only the part from the 10th to the 12th second then copy the rest of the stream?