I’m using Arducam’s OV9281 cameras with the camarray hat to record video. I’m trying to set the exposure control before running the following gstreamer command:
I tried changing the controls with v4l2-ctl before running this command, but nothing seemed to change. When viewing a preview in VLC media player, the v4l2-ctl command does change the exposure in the preview.
I’d appreciate any help and guidance with setting these controls and maintaining them while the gstreamer command runs.
It seems that running the controls command in a different terminal window seems to partially solve this problem. After the command is entered, it seems that the new control applied. Is there any way to start up the gstreamer command with a set v4l2 ctrl?
The reason why the controls do not persist is because the drivers on NVIDIA Jetson devices usually work in such a way that they power on the camera, perform whatever operation the user space application requires, then the camera is powered off, at that moment, the values you set to the controls and registers are lost.
The reason why it works when changing the exposure on a separate terminal window is because I assume you already have the pipeline running, therefore, the camera is never powered off while you interact with the exposure control.
If you want to set the control through GStreamer fixed from the start. You can try setting the following property for the v4l2src element:
extra-controls="c,exposure=200000"
Hope that helps.
Please let us know if you require further assistance.
regards,
Andrew
Embedded Software Engineer at ProventusNova
and tried moving the extra-controls text around but none seem to work. I’m guessing that it might be inside the ‘video/x-raw,format…’ line, but that isn’t working either.