The judge would give the order after ascertaining that the video was relevant to catching the criminal, and specific enough that it only included the time period when the criminal would have been likely to be captured
and no longer, and that no unnecessary camera angles or other information be included in the order.
There is a difference between shop owners volunteering camera information and this case. This is closer to all shop owners in town being ordered to turn over the personal information of everyone who bought a shovel, because they found a body that had been buried.