Is there any way you can create a matte from a duplicate of the rock footage using the shift channels effect (or similar channel effects)? Then use that as an alpha matte for the one you want with blinking lights.
The fact that it illuminates may make it tricky…