FRAMEFIELDOpen the video merger

How to Check Keyframes at a Video Join

To see whether the cut starts with a keyframe, find the first frame of the second clip and check its keyframe flag in the export. A fixed encoding interval can move the next keyframe past the cut.

Explore Clipy’s online video tools (affiliate link)

Which exports kept a keyframe at the cut?

We made two 160 × 90 H.264 clips at 24 frames per second. Each input was two seconds long and had 48 decoded frames, with its only keyframe at frame zero. Red marked the first clip and blue marked the second. In each joined output the second clip began at frame 48, or exactly 2 seconds.

FFmpeg decoded 96 frames from each of the three exports. The stream copy showed keyframes at frames 0 and 48. The fixed interval encode, configured for a keyframe every 72 frames with scene cut detection disabled, showed keyframes at frames 0 and 72. The cut still happened at 2 seconds, but the next keyframe in that export came at 3 seconds, 24 frames after the cut.

In a third export we kept that encoder configuration and explicitly requested a keyframe at 2 seconds. The keyframe list returned to frames 0 and 48. The total frame count stayed at 96. All three lists came from the decoded showinfo output using its iskey field, with frame numbers counted from zero.

Stream copyFixed intervalForced at cut0 s2 s cut3 s
Dots mark decoded keyframes. The dashed line marks the 2-second cut.

Repeat the test

Save the reproduction script in an empty folder and run node reproduce.cjs with FFmpeg and libx264 available. Compare the results with our decoded frame counts and timestamps. For your own Merge Videos Online download, run ffmpeg -i joined.mp4 -vf showinfo -f null - and look for iskey:1 next to the cut timestamp. The experiment used local FFmpeg settings.