Hi, when you have a slightly non-standard requirement (beyond what rpicam-apps do out of the box), it's often easier to reach for Python. This example may be close to what you want.
Note that you have to commit yourself to a single camera mode for both the video and the still, so if you want a reasonable video framerate (more than about 10fps) that will probably mean using the "half resolution" camera mode (as in the example), which limits the resolution of the still capture. Switching between camera modes (for example, between a faster framerate mode and the maximum resolution capture) would require stopping the camera and the video. But it doesn't sound like this is in issue in your case, so I'm guessing the example given would be fine.
Note that you have to commit yourself to a single camera mode for both the video and the still, so if you want a reasonable video framerate (more than about 10fps) that will probably mean using the "half resolution" camera mode (as in the example), which limits the resolution of the still capture. Switching between camera modes (for example, between a faster framerate mode and the maximum resolution capture) would require stopping the camera and the video. But it doesn't sound like this is in issue in your case, so I'm guessing the example given would be fine.
Statistics: Posted by therealdavidp — Wed Jun 26, 2024 5:02 am