Jetson TX2 change in cameras settings

Hello,

We have a Jetson TX2 with two cameras which we used to call in python code like:

nvgstcapture-1.0 --sensor-id=0 -A --capture-auto -S 0 --image-res=12 --file-name=Center_100
nvgstcapture-1.0 --sensor-id=1 -A --capture-auto -S 0 --image-res=12 --file-name=Top_100

It used to give us photos from different sensors. After flashing and updating, something has changed and whichever --sensor-id we put in the same one camera shoots. Running the app from terminal yields the same results, and the output is (for example):

nvgstcapture-1.0 -A --toggle-sensor
Encoder null, cannot set bitrate!
Encoder Profile = High
bitrate = 4000000
Encoder Profile = High
** Message: main:5684 iterating capture loop …
GST_ARGUS: Running with following settings:
Camera index = 0
Camera mode = 0
Output Stream W = 640 H = 480
seconds to Run = 0
Framerate set to : 30 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4
===== MSENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected…
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.

Starting automation…
Sensor-id changed to : 1
GST_ARGUS: Cleaning up
CONSUMER: Done Success
GST_ARGUS: Done Success
bitrate = 4000000
Encoder Profile = High
GST_ARGUS: Running with following settings:
Camera index = 0
Camera mode = 0
Output Stream W = 640 H = 480
seconds to Run = 0
Framerate set to : 30 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4
===== MSENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected…
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
GST_ARGUS: Cleaning up
CONSUMER: Done Success
GST_ARGUS: Done Success
** Message: main:5694 Capture completed
** Message: main:5745 Camera application will now exit

I need one photo from each camera, not two photos from the same camera. What am I doing wrong? Is there something I can do to fix this?

What problem do you observe?
Could you share your python script and have detail information about the problem.

Sorry for not being clear, the script simply calls the two terminal commands with os.system(). The problem is that the same camera shoots twice, instead of getting two different photos.

What’s problem to get two different photos?

Both photos are from the same camera, even though we change the sensor-id.

Check the position in the module of tegra-camera-platform in DT.

Can you please elaborate on the answer? I am new to this hardware, and working with it. Thanks!

Fist check the preview of nvgstcapture-1.0 --sensor-id=0 and nvgstcapture-1.0 --sensor-id=1 can select to different sensor or not.
If not check your device tree for the sensor or post it here for review.

Hello,

Thanks for all the help so far. Leopard support gave us this feedback:

"
The nvgstcapture-1.0 only support video0.
You can use argus or gstreamer command to view video from video1 or video2.
"

It would seem that the problem was on their side, so we are changing the way we access videos.

Thank you!