Replying to this post.

"How did I do it?", you ask?

WELL. I used ffmpeg to extract 5 second moments to PNG frames, then some custom golang to compare the perceptual hashes of every frame and look for identical hashes that are more than a few frames apart.