Raspberry Pi4 | CCTV to USB drive?

Hi,

Does anybody know if this is possible? I'd like to install a CCTV camera that covers my driveway. I'd rather not have an ongoing subscription for cloud storage.

My initial thoughts are a PoE camera directly connected to the same managed switch as my RP4 OpenWrt router.

Are there any packages or methods for saving the CCTV feed to a USB drive connected to the OpenWrt router?

Thanks,

ffmpeg should be able to do it, but I'm not sure if the openwrt version comes with all the features you need, enabled.