Start and Stop recording video

I have a jetson orin nx. I have managed to have a service script that runs and records and saves a video from the connected usb camera. But I now want to deploy it in the real world. So is there a way or a button or signal I can send to start the script and the stop the script when required? One approach was to send serial message but for that I need to connect it to a host laptop to do so everytime. Other option which is really is bad is to take off power and then give power again to restart the script. I am just looking for direction to head towards so have a standalone system that is capabale by itself it record videoes as needed. Any reference materials/video suggestions is also appreciated as well as I am really keen on learning! thanks

Hi,
You can use unix socket to communicate with the daemon process. There is demonstration in the sample:

/usr/src/jetson_multimedia_api/samples/13_argus_multi_camera

If the application is running in foreground, you can use key event. It is demonstrated in nvgstcapture-1.0 sample.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.