How start recording with FFmpeg using the camera alarm?

I’m using an Asecam camera. On alarm, the camera only sends a screenshot.

I’m wondering if it’s possible to trigger FFmpeg based on a signal issued by the camera?