Finding frames in video that match an image
The blend filter can be told to terminate with the shortest input, which in your command, will be the video.

-filter_complex "blend=difference:shortest=1,blackf...