I’m using JetPack 5.0 with Xavier NX. I was able to bring up all my cameras with your help and they all shows max (default) fps when I send v4l2-ctl
commands (v4l2-ctl --set-fmt-video=width=640,height=480,pixelformat=RG10 --stream-mmap --stream-count=360 -d /dev/video0
).
However it ignores all my --set-ctrl flag in the same message, for example: v4l2-ctl --set-fmt-video=width=640,height=480,pixelformat=RG10 --set-ctrl frame_rate=60000000 --stream-mmap --stream-count=3600 -d /dev/video0
will still yield 100 fps.
v4l2-ctl --set-ctrl frame_rate=60000000
changes the frame_setting but no effect on the stream fps. There were also no camera power on/off info printed out in dmesg
during this process. It was not this case in JP4.4. Is this expected behavior in JP5?
nvidia@tegra-ubuntu:~$ v4l2-ctl --set-ctrl frame_rate=60000000
nvidia@tegra-ubuntu:~$ v4l2-ctl -d /dev/video0 -l | grep frame_rate
frame_rate 0x009a200b (int64) : min=10000000 max=100000000 step=1 default=100000000 value=60000000 flags=slider
Another test I did is requesting frames from one terminal and change the fps from another terminal and that does work.
nvidia@tegra-ubuntu:~$ v4l2-ctl --set-fmt-video=width=640,height=480,pixelformat=RG10 --set-ctrl frame_rate=100000000 --stream-mmap --stream-count=3600 -d /dev/video0
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 60.00 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 60.00 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 64.42 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 70.75 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 78.45 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 79.97 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 85.25 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 93.58 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 100.04 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 100.04 fps
The sudo media-ctl -p -d /dev/media0
looks ok, but it seems missing some numbers after 15a00000-
in the line of - entity 1: 13e10000.host1x:nvcsi@15a00000- (2 pads, 2 links)
. Maybe this is not related but thought might be worth mentioning. Thanks!
nvidia@tegra-ubuntu:~$ sudo media-ctl -p -d /dev/media0
[sudo] password for nvidia:
Media controller API version 5.10.65
Media device information
------------------------
driver tegra-camrtc-ca
model NVIDIA Tegra Video Input Device
serial
bus info
hw revision 0x3
driver version 5.10.65
Device topology
- entity 1: 13e10000.host1x:nvcsi@15a00000- (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev0
pad0: Sink
<- "ov7251 30-0060":0 [ENABLED]
pad1: Source
-> "vi-output, ov7251 30-0060":0 [ENABLED]
- entity 4: 13e10000.host1x:nvcsi@15a00000- (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev1
pad0: Sink
<- "imx385 31-001a":0 [ENABLED]
pad1: Source
-> "vi-output, imx385 31-001a":0 [ENABLED]
- entity 7: ov7251 30-0060 (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev2
pad0: Source
[fmt:SRGGB10_1X10/640x480 field:none colorspace:srgb]
-> "13e10000.host1x:nvcsi@15a00000-":0 [ENABLED]
- entity 9: vi-output, ov7251 30-0060 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video0
pad0: Sink
<- "13e10000.host1x:nvcsi@15a00000-":1 [ENABLED]
- entity 23: imx385 31-001a (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev3
pad0: Source
[fmt:SRGGB10_1X10/1920x1080 field:none colorspace:srgb]
-> "13e10000.host1x:nvcsi@15a00000-":0 [ENABLED]
- entity 25: vi-output, imx385 31-001a (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video1
pad0: Sink
<- "13e10000.host1x:nvcsi@15a00000-":1 [ENABLED]