Calling
v4l2-ctl --list-devices
produces
NVIDIA Tegra Video Input Device (platform:tegra-camrtc-ca):
/dev/media0
vi-output, oah0428 10-0036 (platform:tegra-capture-vi:1):
/dev/video1
vi-output, oah0428 9-0036 (platform:tegra-capture-vi:2):
/dev/video0
calling
v4l2-ctl --list-formats-ext -d /dev/video1
produces
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture
[0]: 'RG10' (10-bit Bayer RGRG/GBGB)
Size: Discrete 400x400
Interval: Discrete 0.033s (30.000 fps)
calling
media-ctl -d /dev/media0 -p
produces
Media controller API version 5.15.148
Media device information
------------------------
driver tegra-camrtc-ca
model NVIDIA Tegra Video Input Device
serial
bus info
hw revision 0x3
driver version 5.15.148
Device topology
- entity 1: 13e00000.host1x:nvcsi@15a00000- (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev0
pad0: Sink
<- "oah0428 10-0036":0 [ENABLED]
pad1: Source
-> "vi-output, oah0428 10-0036":0 [ENABLED]
- entity 4: 13e00000.host1x:nvcsi@15a00000- (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev1
pad0: Sink
<- "oah0428 9-0036":0 [ENABLED]
pad1: Source
-> "vi-output, oah0428 9-0036":0 [ENABLED]
- entity 7: oah0428 9-0036 (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev2
pad0: Source
[fmt:SRGGB10_1X10/400x400 field:none colorspace:srgb]
-> "13e00000.host1x:nvcsi@15a00000-":0 [ENABLED]
- entity 9: vi-output, oah0428 9-0036 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video0
pad0: Sink
<- "13e00000.host1x:nvcsi@15a00000-":1 [ENABLED]
- entity 23: oah0428 10-0036 (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev3
pad0: Source
[fmt:SRGGB10_1X10/400x400 field:none colorspace:srgb]
-> "13e00000.host1x:nvcsi@15a00000-":0 [ENABLED]
- entity 25: vi-output, oah0428 10-0036 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video1
pad0: Sink
<- "13e00000.host1x:nvcsi@15a00000-":1 [ENABLED]
The command I use to try and capture video that causes a crash is
v4l2-ctl --set-fmt-video=width=400,height=400,pixelformat=RG10 --stream-mmap --stream-count=1 -d /dev/video1 --stream-to=ov6946.raw
I will also add that attempting to start a gstreamer pipeline with the following command
gst-launch-1.0 v4l2src device=/dev/video1 num-buffers=10 ! ‘video/x-bayer,width=400,height=400,format=rggb,framerate=30/1’ ! identity silent=false ! filesink location=test.bayer
It doesn’t cause a crash but it generates this output if its relevant
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.000367333
Setting pipeline to NULL ...
Freeing pipeline ...