Set up the edit
Use a four-frame blend around the crossing. Compare the direction of the trail with the unblended first and last frames. Check whether the glove or hand moves in front of the subject or behind their outline.
ffmpeg -i studio.mp4 -filter_complex "[0:v:0]tmix=frames=4:weights='1 1 1 1'[proof]" -map "[proof]" -fps_mode passthrough -c:v ffv1 inspection.mkvRead the result
A broad trail helps locate an occlusion interval. A double eye in this diagnostic is expected whenever the head is moving; call it an output fault only if it also appears in an original individual frame.
With the original living-room dance, the local FFmpeg run decoded 150 video frames at 1280 × 720 pixels. Use the linked file to reproduce the example. This was an offline edit of the existing public clip.
If the first pass falls short
Shorten the temporal window if another subject enters while the trail is accumulating. Send a frame sequence for repair, keeping the trail as an explanatory illustration.