I am a really beginner in video editing. Sorry if this question is silly.
I heard videos consist of key frames (I-frames) and inter-frames (P-frames and B-frames).
Say I have a video of 10 seconds, and I ask ffmpeg to extract from 4.3 to 10.
ffmpeg -ss 4.3 -i input.mp4 output.mp4
From my observation, ffmpeg seems to reencode the whole output file.
Assume the original video has I frames at 1, 3, 5, 7, 9 seconds. I think ffmpeg can just insert a keyframe at 4.3, reencode frames from 4.3 to 5, and leave all data afterwards intact.
Is my idea realistic? Can ffmpeg do so?
I ask this is because if my input video is very long, my method can cut the video very fast.