v4l2src fail - but could be buggy driver

Peter Allen peter.allenm at gmail.com
Tue Jun 13 09:19:45 UTC 2023


Thank you for the reply, that's helpful to look at. I've had a look at the
logs, and nothing looks obviously wrong to me, but I could easily have
missed something.
Just a quick flag: I don't appear to have implemented colorspaces very well
in the driver. bt709 seems fine, but bt601 fails. Is this likely to be an
issue?

I'm running kernel 5.8 at the moment (I need to update the MIPI drivers to
6.x, but that's for the future.)
Edited highlights:
[   69.180326] get_colorspace(352): csi1: fmt=842094158
[   69.185378] video0: VIDIOC_TRY_FMT: type=vid-cap, width=32, height=32,
pixelformat=NV12, field=none, bytesperline=48, sizeimage=1536,
colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.186474] get_colorspace(352): csi1: fmt=842094158
[   69.191493] video0: VIDIOC_TRY_FMT: type=vid-cap, width=4800,
height=4800, pixelformat=NV12, field=none, bytesperline=7200,
sizeimage=34560000, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0,
xfer_func=0
[   69.191776] video0: VIDIOC_ENUM_FRAMESIZES: error -25: index=0,
pixelformat=RGBP, type=0

[   69.264850] get_colorspace(352): csi1: fmt=842094158
[   69.269922] video0: VIDIOC_TRY_FMT: type=vid-cap, width=1280,
height=720, pixelformat=NV12, field=none, bytesperline=1920,
sizeimage=1382400, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0,
xfer_func=0
[   69.275872] get_colorspace(352): csi1: fmt=842094158
[   69.282676] video0: VIDIOC_S_FMT: type=vid-cap, width=1280, height=720,
pixelformat=NV12, field=none, bytesperline=1920, sizeimage=1382400,
colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.282740] video0: VIDIOC_G_PARM: error -25: type=vid-cap,
capability=0x0, capturemode=0x0, timeperframe=0/0, extendedmode=0,
readbuffers=0

I'm figuring the error -25 and error -22 type things are "not implemented"
so aren't showstoppers, but I haven't actually checked yet.

[   69.303031] video0: VIDIOC_QUERYBUF: 00:00:00.000000000 index=0,
type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0,
memory=mmap, bytesused=0, offset/userptr=0x0, length=1382400
(then 4 other buffers)

[   69.345269] video0: VIDIOC_STREAMON: type=vid-cap
[   69.347906] videodev: v4l2_poll: video0: poll: 00000000
[   69.369241] videodev: v4l2_poll: video0: poll: 00000041
[   69.369297] video0: VIDIOC_DQBUF: 00:01:09.000366895 index=0,
type=vid-cap, request_fd=0, flags=0x00002001, field=none, sequence=0,
memory=mmap, bytesused=1382400, offset/userptr=0x0, length=1382400
[   69.369324] timecode=00:00:00 type=0, flags=0x00000000, frames=0,
userbits=0x00000000
[   69.369645] video0: VIDIOC_QBUF: 00:00:00.000000000 index=0,
type=vid-cap, request_fd=0, flags=0x00002003, field=none, sequence=0,
memory=mmap, bytesused=1382400, offset/userptr=0x0, length=1382400
[   69.369670] timecode=00:00:00 type=0, flags=0x00000000, frames=0,
userbits=0x00000000
[   69.381785] hdzerocam_s_stream(755)
[   69.387749] video0: VIDIOC_STREAMOFF: type=vid-cap
[   69.388817] video0: VIDIOC_REQBUFS: count=0, type=vid

Full log attached.

Thank you for the help, it is much appreciated!
Pete

On Mon, 12 Jun 2023 at 20:53, Nicolas Dufresne <nicolas at ndufresne.ca> wrote:

> Hi,
>
> Le dimanche 11 juin 2023 à 22:45 +0100, Peter Allen via gstreamer-devel a
> écrit :
>
> Hi All,
>
> I am attempting to use gstreamer with a camera I've had to write the
> driver for on a relatively untested arm board (an Allwinner S3). And guess
> what - I've got issues :)
>
> The camera has an onboard ISP, so produces UYVY 422p on Mipi CSI, and the
> MIPI peripheral has the capability to convert between different YUV formats
> In fact interleaved UYVY comes out in a really weird byte order, so I've
> been using NV12 or NV16 as it is correct. When I use v4l2-ctl to produce
> the stream, all is well:
>
> v4l2-ctl --set-fmt-video=width=1280,height=720,pixelformat=NV12
> --stream-mmap --stream-count=600 --silent -d /dev/video0
> --stream-to=MyFile.raw
>
> However when I try to do similar things with gstreamer, I have issues:
> gst-launch-1.0 -ve v4l2src device=/dev/video0 !
> video/x-raw,width=1280,height=720,framerate=60/1,format=NV12 ! queue !
> filesink location=GstNV12Raw.raw
>
> gives:
> ot at openhd-x20dev:/home/openhd# gst-launch-1.0 -ve v4l2src
> device=/dev/video0 !
> video/x-raw,width=1280,height=720,framerate=60/1,format=NV12 ! queue !
> filesink location=GstNV12Raw.raw
> [ 2048.216638] hdzerocam_open(816)
> [ 2048.219869] hdzerocam_fill_fmt(805): HDZero fill
> Setting pipeline to PAUSED ...
> Pipeline is live and does not need PREROLL ...
> Pipeline is PREROLLED ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw,
> width=(int)1280, height=(int)720, framerate=(fraction)60/1,
> format=(string)NV12, interlace-m[ 2048.274807] hdzerocam_get_fmt(710)
> ode=(string)progressive, colorimetry=(string)2:0:0:0
> /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps =
> video/[ 2048.290307] hdzerocam_s_stream(755)
> x-raw, width=(int)1280, height=(int)720, framerate=(fraction)60/1,
> format=(string)NV12, interlace-mode=(string)progressive,
> colorimetry=(string)2:0:0:0
> /GstPipeline:pipeline0/GstQueue:queue0.[ 2048.309943]
> hdzerocam_s_stream(755)
> GstPad:src: caps = video/x-raw, width=(int)1280, height=(int)720,
> framerate=(fraction)60/1, format=(string)NV12,
> interlace-mode=(string)progressive, colorimetry=(string)2:0:0:0
> /GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps =
> video/x-raw, width=(int)1280, height=(int)720, framerate=(fraction)60/1,
> format=(string)NV12, interlace-mode=(string)progressive,
> colorimetry=(string)2:0:0:0
> /GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = video/x-raw,
> width=(int)1280, height=(int)720, framerate=(fraction)60/1,
> format=(string)NV12, interlace-mode=(string)progressive,
> colorimetry=(string)2:0:0:0
> /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps =
> video/x-raw, width=(int)1280, height=(int)720, framerate=(fraction)60/1,
> format=(string)NV12, interlace-mode=(string)progressive,
> colorimetry=(string)2:0:0:0
> 0:00:00.159656333   443   0x5b4c58 WARN              video-info
> video-info.c:204:validate_colorimetry: Need to specify a color matrix when
> using YUV format (NV12)
> 0:00:00.159812875   443   0x5b4c58 WARN              video-info
> video-info.c:520:gst_video_info_from_caps: invalid colorimetry, using
> default
> 0:00:00.161243625   443   0x5b4c58 WARN              video-info
> video-info.c:204:validate_colorimetry: Need to specify a color matrix when
> using YUV format (NV12)
> 0:00:00.161350333   443   0x5b4c58 WARN              video-info
> video-info.c:520:gst_video_info_from_caps: invalid colorimetry, using
> default
> 0:00:00.161923083   443   0x5b4c58 WARN              video-info
> video-info.c:204:validate_colorimetry: Need to specify a color matrix when
> using YUV format (NV12)
> 0:00:00.162008667   443   0x5b4c58 WARN              video-info
> video-info.c:520:gst_video_info_from_caps: invalid colorimetry, using
> default
> 0:00:00.162248167   443   0x5b4c58 WARN              video-info
> video-info.c:204:validate_colorimetry: Need to specify a color matrix when
> using YUV format (NV12)
> 0:00:00.162310958   443   0x5b4c58 WARN              video-info
> video-info.c:520:gst_video_info_from_caps: invalid colorimetry, using
> default
> 0:00:00.172358583   443   0x5b4c58 WARN          v4l2bufferpool
> gstv4l2bufferpool.c:814:gst_v4l2_buffer_pool_start:<v4l2src0:pool0:src>
> Uncertain or not enough buffers, enabling copy threshold
> 0:00:00.205794042   443   0x5b4c58 ERROR              videometa
> gstvideometa.c:242:default_map: plane 1, no memory at offset 1382400
> 0:00:00.205912917   443   0x5b4c58 ERROR                default
> video-frame.c:168:gst_video_frame_map_id: failed to map video frame plane 1
> 0:00:00.206110167   443   0x5b4c58 ERROR         v4l2bufferpool
> gstv4l2bufferpool.c:161:gst_v4l2_buffer_pool_copy_buffer:<v4l2src0:pool0:src>
> could not map buffer
> 0:00:00.206237458   443   0x5b4c58 ERROR         v4l2bufferpool
> gstv4l2bufferpool.c:2071:gst_v4l2_buffer_pool_process:<v4l2src0:pool0:src>
> failed to copy buffer
>
>
> I think GStreamer is trying to copy the image to remove the HW specific
> padding. The reported stride (bytesperline in V4L2) might be a little bit
> off. The v4l2-ctl utilise does not do line per line copies, so it does not
> use it. If you can build v4l2-utils and use v4l2-tracer tracer ... to spy
> on the exchange between gst and the kernel I'd be able to tell.
>
> An alternative is to enable some kernel debug, which should be sufficient
> for this case:
>
> sudo su -c "echo 0xff > /sys/class/video4linux/video0/dev_debug"
>
> Run gst, and then the output will be in "dmesg". Don't forget to echo 0,
> or to reboot, this can slow down a lot the driver.
>
> Nicolas
>
> 0:00:00.206398958   443   0x5b4c58 WARN                 basesrc
> gstbasesrc.c:3127:gst_base_src_loop:<v4l2src0> error: Internal data stream
> error.
> 0:00:00.206471292   443   0x5b4c58 WARN                 basesrc
> gstbasesrc.c:3127:gst_base_src_loop:<v4l2src0> error: streaming stopped,
> reason error (-5)
> 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 error (-5)
> Execution ended after 0:00:00.057735709
> Setting pipeline to NULL ...
> Freeing pipeline ...
>
> ----------------------------------------------------
> i'm well aware that this might not be gstreamer's issue, but I'm really
> struggling to understand what  is going on with
> gstvideometa.c:242:default_map: plane 1, no memory at offset 1382400
>
> Full GST_DEBUG_LEVEL=4 attached in case it helps.
>
> Can anyone shed some light?
> Thank you
> Pete
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230613/45e7b7be/attachment-0001.htm>
-------------- next part --------------
[   68.988857] hdzerocam_open(816)
[   68.992089] hdzerocam_fill_fmt(805): HDZero fill
[   68.996743] videodev: v4l2_open: v4l-subdev0: open (0)
[   68.998858] videodev: v4l2_release: v4l-subdev0: release
[   68.998956] videodev: v4l2_open: video0: open (0)
[   68.998983] video0: VIDIOC_QUERYCAP: driver=sun6i-video, card=sun6i-csi, bus=platform:csi, version=0x00050800, capabilities=0x84200001, device_caps=0x04200001
[   68.999113] videodev: v4l2_release: video0: release
[   69.049392] videodev: v4l2_open: video0: open (0)
[   69.049426] video0: VIDIOC_QUERYCAP: driver=sun6i-video, card=sun6i-csi, bus=platform:csi, version=0x00050800, capabilities=0x84200001, device_caps=0x04200001
[   69.049553] video0: VIDIOC_ENUMINPUT: index=0, name=camera, type=2, audioset=0x0, tuner=0, std=0x00000000, status=0x0, capabilities=0x0
[   69.049702] video0: VIDIOC_ENUMINPUT: error -22: index=1, name=, type=0, audioset=0x0, tuner=0, std=0x00000000, status=0x0, capabilities=0x0
[   69.049723] video0: VIDIOC_ENUMSTD: error -25: index=0, id=0x0, name=, fps=0/0, framelines=0
[   69.049739] video0: VIDIOC_QUERYCTRL: error -22: id=0x80000000, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
[   69.049752] video0: VIDIOC_QUERYCTRL: error -22: id=0x980900, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
[   69.049765] video0: VIDIOC_QUERYCTRL: error -22: id=0x8000000, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
[   69.049786] video0: VIDIOC_G_STD: error -25: std=0x00000000
[   69.049797] video0: VIDIOC_G_INPUT: value=0
[   69.058914] video0: VIDIOC_ENUM_FMT: index=0, type=vid-cap, flags=0x0, pixelformat=BA81, mbus_code=0x0000, description='8-bit Bayer BGBG/GRGR'
[   69.058961] video0: VIDIOC_ENUM_FMT: index=1, type=vid-cap, flags=0x0, pixelformat=GBRG, mbus_code=0x0000, description='8-bit Bayer GBGB/RGRG'
[   69.058982] video0: VIDIOC_ENUM_FMT: index=2, type=vid-cap, flags=0x0, pixelformat=GRBG, mbus_code=0x0000, description='8-bit Bayer GRGR/BGBG'
[   69.058996] video0: VIDIOC_ENUM_FMT: index=3, type=vid-cap, flags=0x0, pixelformat=RGGB, mbus_code=0x0000, description='8-bit Bayer RGRG/GBGB'
[   69.059011] video0: VIDIOC_ENUM_FMT: index=4, type=vid-cap, flags=0x0, pixelformat=BG10, mbus_code=0x0000, description='10-bit Bayer BGBG/GRGR'
[   69.059024] video0: VIDIOC_ENUM_FMT: index=5, type=vid-cap, flags=0x0, pixelformat=GB10, mbus_code=0x0000, description='10-bit Bayer GBGB/RGRG'
[   69.059038] video0: VIDIOC_ENUM_FMT: index=6, type=vid-cap, flags=0x0, pixelformat=BA10, mbus_code=0x0000, description='10-bit Bayer GRGR/BGBG'
[   69.059052] video0: VIDIOC_ENUM_FMT: index=7, type=vid-cap, flags=0x0, pixelformat=RG10, mbus_code=0x0000, description='10-bit Bayer RGRG/GBGB'
[   69.059066] video0: VIDIOC_ENUM_FMT: index=8, type=vid-cap, flags=0x0, pixelformat=BG12, mbus_code=0x0000, description='12-bit Bayer BGBG/GRGR'
[   69.059080] video0: VIDIOC_ENUM_FMT: index=9, type=vid-cap, flags=0x0, pixelformat=GB12, mbus_code=0x0000, description='12-bit Bayer GBGB/RGRG'
[   69.059093] video0: VIDIOC_ENUM_FMT: index=10, type=vid-cap, flags=0x0, pixelformat=BA12, mbus_code=0x0000, description='12-bit Bayer GRGR/BGBG'
[   69.059106] video0: VIDIOC_ENUM_FMT: index=11, type=vid-cap, flags=0x0, pixelformat=RG12, mbus_code=0x0000, description='12-bit Bayer RGRG/GBGB'
[   69.059120] video0: VIDIOC_ENUM_FMT: index=12, type=vid-cap, flags=0x0, pixelformat=YUYV, mbus_code=0x0000, description='YUYV 4:2:2'
[   69.059136] video0: VIDIOC_ENUM_FMT: index=13, type=vid-cap, flags=0x0, pixelformat=YVYU, mbus_code=0x0000, description='YVYU 4:2:2'
[   69.059149] video0: VIDIOC_ENUM_FMT: index=14, type=vid-cap, flags=0x0, pixelformat=UYVY, mbus_code=0x0000, description='UYVY 4:2:2'
[   69.059161] video0: VIDIOC_ENUM_FMT: index=15, type=vid-cap, flags=0x0, pixelformat=VYUY, mbus_code=0x0000, description='VYUY 4:2:2'
[   69.059176] video0: VIDIOC_ENUM_FMT: index=16, type=vid-cap, flags=0x0, pixelformat=NV12, mbus_code=0x0000, description='Y/CbCr 4:2:0'
[   69.059189] video0: VIDIOC_ENUM_FMT: index=17, type=vid-cap, flags=0x0, pixelformat=NV21, mbus_code=0x0000, description='Y/CrCb 4:2:0'
[   69.059202] video0: VIDIOC_ENUM_FMT: index=18, type=vid-cap, flags=0x0, pixelformat=YU12, mbus_code=0x0000, description='Planar YUV 4:2:0'
[   69.059216] video0: VIDIOC_ENUM_FMT: index=19, type=vid-cap, flags=0x0, pixelformat=YV12, mbus_code=0x0000, description='Planar YVU 4:2:0'
[   69.059230] video0: VIDIOC_ENUM_FMT: index=20, type=vid-cap, flags=0x0, pixelformat=NV16, mbus_code=0x0000, description='Y/CbCr 4:2:2'
[   69.059243] video0: VIDIOC_ENUM_FMT: index=21, type=vid-cap, flags=0x0, pixelformat=NV61, mbus_code=0x0000, description='Y/CrCb 4:2:2'
[   69.059257] video0: VIDIOC_ENUM_FMT: index=22, type=vid-cap, flags=0x0, pixelformat=422P, mbus_code=0x0000, description='Planar YUV 4:2:2'
[   69.059270] video0: VIDIOC_ENUM_FMT: index=23, type=vid-cap, flags=0x0, pixelformat=RGBP, mbus_code=0x0000, description='16-bit RGB 5-6-5'
[   69.059283] video0: VIDIOC_ENUM_FMT: index=24, type=vid-cap, flags=0x0, pixelformat=RGBR, mbus_code=0x0000, description='16-bit RGB 5-6-5 BE'
[   69.059297] video0: VIDIOC_ENUM_FMT: index=25, type=vid-cap, flags=0x1, pixelformat=JPEG, mbus_code=0x0000, description='JFIF JPEG'
[   69.059310] video0: VIDIOC_ENUM_FMT: error -22: index=26, type=vid-cap, flags=0x0, pixelformat=\x00\x00\x00\x00, mbus_code=0x0000, description=''
[   69.059368] video0: VIDIOC_CROPCAP: error -25: type=vid-cap, bounds wxh=0x0, x,y=0,0, defrect wxh=0x0, x,y=0,0, pixelaspect 0/0
[   69.059424] video0: VIDIOC_ENUM_FRAMESIZES: error -25: index=0, pixelformat=YUYV, type=0
[   69.059456] get_colorspace(352): csi1: fmt=1448695129
[   69.069618] video0: VIDIOC_TRY_FMT: type=vid-cap, width=32, height=32, pixelformat=YUYV, field=none, bytesperline=64, sizeimage=2048, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.077270] get_colorspace(352): csi1: fmt=1448695129
[   69.082404] video0: VIDIOC_TRY_FMT: type=vid-cap, width=4800, height=4800, pixelformat=YUYV, field=none, bytesperline=9600, sizeimage=46080000, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.082699] video0: VIDIOC_ENUM_FRAMESIZES: error -25: index=0, pixelformat=UYVY, type=0
[   69.082735] get_colorspace(352): csi1: fmt=1498831189
[   69.087852] video0: VIDIOC_TRY_FMT: type=vid-cap, width=32, height=32, pixelformat=UYVY, field=none, bytesperline=64, sizeimage=2048, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.089300] get_colorspace(352): csi1: fmt=1498831189
[   69.094446] video0: VIDIOC_TRY_FMT: type=vid-cap, width=4800, height=4800, pixelformat=UYVY, field=none, bytesperline=9600, sizeimage=46080000, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.095325] video0: VIDIOC_ENUM_FRAMESIZES: error -25: index=0, pixelformat=422P, type=0
[   69.095371] get_colorspace(352): csi1: fmt=1345466932
[   69.100504] video0: VIDIOC_TRY_FMT: type=vid-cap, width=32, height=32, pixelformat=422P, field=none, bytesperline=64, sizeimage=2048, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.101506] get_colorspace(352): csi1: fmt=1345466932
[   69.106640] video0: VIDIOC_TRY_FMT: type=vid-cap, width=4800, height=4800, pixelformat=422P, field=none, bytesperline=9600, sizeimage=46080000, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.107530] video0: VIDIOC_ENUM_FRAMESIZES: error -25: index=0, pixelformat=YU12, type=0
[   69.107579] get_colorspace(352): csi1: fmt=842093913
[   69.112626] video0: VIDIOC_TRY_FMT: type=vid-cap, width=32, height=32, pixelformat=YU12, field=none, bytesperline=48, sizeimage=1536, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.113573] get_colorspace(352): csi1: fmt=842093913
[   69.118619] video0: VIDIOC_TRY_FMT: type=vid-cap, width=4800, height=4800, pixelformat=YU12, field=none, bytesperline=7200, sizeimage=34560000, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.119477] video0: VIDIOC_ENUM_FRAMESIZES: error -25: index=0, pixelformat=YV12, type=0
[   69.119524] get_colorspace(352): csi1: fmt=842094169
[   69.124574] video0: VIDIOC_TRY_FMT: type=vid-cap, width=32, height=32, pixelformat=YV12, field=none, bytesperline=48, sizeimage=1536, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.125601] get_colorspace(352): csi1: fmt=842094169
[   69.130661] video0: VIDIOC_TRY_FMT: type=vid-cap, width=4800, height=4800, pixelformat=YV12, field=none, bytesperline=7200, sizeimage=34560000, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.131604] video0: VIDIOC_ENUM_FRAMESIZES: error -25: index=0, pixelformat=JPEG, type=0
[   69.131651] get_colorspace(352): csi1: fmt=1195724874
[   69.136795] video0: VIDIOC_TRY_FMT: type=vid-cap, width=32, height=32, pixelformat=JPEG, field=none, bytesperline=32, sizeimage=1024, colorspace=7, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.137748] get_colorspace(352): csi1: fmt=1195724874
[   69.142890] video0: VIDIOC_TRY_FMT: type=vid-cap, width=4800, height=4800, pixelformat=JPEG, field=none, bytesperline=4800, sizeimage=23040000, colorspace=7, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.143705] video0: VIDIOC_ENUM_FRAMESIZES: error -25: index=0, pixelformat=NV61, type=0
[   69.143756] get_colorspace(352): csi1: fmt=825644622
[   69.148812] video0: VIDIOC_TRY_FMT: type=vid-cap, width=32, height=32, pixelformat=NV61, field=none, bytesperline=64, sizeimage=2048, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.149759] get_colorspace(352): csi1: fmt=825644622
[   69.154813] video0: VIDIOC_TRY_FMT: type=vid-cap, width=4800, height=4800, pixelformat=NV61, field=none, bytesperline=9600, sizeimage=46080000, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.155705] video0: VIDIOC_ENUM_FRAMESIZES: error -25: index=0, pixelformat=NV16, type=0
[   69.155753] get_colorspace(352): csi1: fmt=909203022
[   69.160812] video0: VIDIOC_TRY_FMT: type=vid-cap, width=32, height=32, pixelformat=NV16, field=none, bytesperline=64, sizeimage=2048, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.162190] get_colorspace(352): csi1: fmt=909203022
[   69.167252] video0: VIDIOC_TRY_FMT: type=vid-cap, width=4800, height=4800, pixelformat=NV16, field=none, bytesperline=9600, sizeimage=46080000, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.168249] video0: VIDIOC_ENUM_FRAMESIZES: error -25: index=0, pixelformat=NV21, type=0
[   69.168298] get_colorspace(352): csi1: fmt=825382478
[   69.173359] video0: VIDIOC_TRY_FMT: type=vid-cap, width=32, height=32, pixelformat=NV21, field=none, bytesperline=48, sizeimage=1536, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.174383] get_colorspace(352): csi1: fmt=825382478
[   69.179395] video0: VIDIOC_TRY_FMT: type=vid-cap, width=4800, height=4800, pixelformat=NV21, field=none, bytesperline=7200, sizeimage=34560000, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.180278] video0: VIDIOC_ENUM_FRAMESIZES: error -25: index=0, pixelformat=NV12, type=0
[   69.180326] get_colorspace(352): csi1: fmt=842094158
[   69.185378] video0: VIDIOC_TRY_FMT: type=vid-cap, width=32, height=32, pixelformat=NV12, field=none, bytesperline=48, sizeimage=1536, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.186474] get_colorspace(352): csi1: fmt=842094158
[   69.191493] video0: VIDIOC_TRY_FMT: type=vid-cap, width=4800, height=4800, pixelformat=NV12, field=none, bytesperline=7200, sizeimage=34560000, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.191776] video0: VIDIOC_ENUM_FRAMESIZES: error -25: index=0, pixelformat=RGBP, type=0
[   69.191812] get_colorspace(352): csi1: fmt=1346520914
[   69.196932] video0: VIDIOC_TRY_FMT: type=vid-cap, width=32, height=32, pixelformat=RGBP, field=none, bytesperline=64, sizeimage=2048, colorspace=8, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.198278] get_colorspace(352): csi1: fmt=1346520914
[   69.203422] video0: VIDIOC_TRY_FMT: type=vid-cap, width=4800, height=4800, pixelformat=RGBP, field=none, bytesperline=9600, sizeimage=46080000, colorspace=8, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.204301] video0: VIDIOC_ENUM_FRAMESIZES: error -25: index=0, pixelformat=RGGB, type=0
[   69.204346] get_colorspace(352): csi1: fmt=1111967570
[   69.209486] video0: VIDIOC_TRY_FMT: type=vid-cap, width=32, height=32, pixelformat=RGGB, field=none, bytesperline=32, sizeimage=1024, colorspace=11, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.210607] get_colorspace(352): csi1: fmt=1111967570
[   69.215719] video0: VIDIOC_TRY_FMT: type=vid-cap, width=4800, height=4800, pixelformat=RGGB, field=none, bytesperline=4800, sizeimage=23040000, colorspace=11, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.215888] video0: VIDIOC_ENUM_FRAMESIZES: error -25: index=0, pixelformat=GRBG, type=0
[   69.215919] get_colorspace(352): csi1: fmt=1195528775
[   69.221030] video0: VIDIOC_TRY_FMT: type=vid-cap, width=32, height=32, pixelformat=GRBG, field=none, bytesperline=32, sizeimage=1024, colorspace=11, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.222417] get_colorspace(352): csi1: fmt=1195528775
[   69.227517] video0: VIDIOC_TRY_FMT: type=vid-cap, width=4800, height=4800, pixelformat=GRBG, field=none, bytesperline=4800, sizeimage=23040000, colorspace=11, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.227686] video0: VIDIOC_ENUM_FRAMESIZES: error -25: index=0, pixelformat=GBRG, type=0
[   69.227716] get_colorspace(352): csi1: fmt=1196573255
[   69.232822] video0: VIDIOC_TRY_FMT: type=vid-cap, width=32, height=32, pixelformat=GBRG, field=none, bytesperline=32, sizeimage=1024, colorspace=11, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.234224] get_colorspace(352): csi1: fmt=1196573255
[   69.239372] video0: VIDIOC_TRY_FMT: type=vid-cap, width=4800, height=4800, pixelformat=GBRG, field=none, bytesperline=4800, sizeimage=23040000, colorspace=11, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.240164] video0: VIDIOC_ENUM_FRAMESIZES: error -25: index=0, pixelformat=BA81, type=0
[   69.240208] get_colorspace(352): csi1: fmt=825770306
[   69.245261] video0: VIDIOC_TRY_FMT: type=vid-cap, width=32, height=32, pixelformat=BA81, field=none, bytesperline=32, sizeimage=1024, colorspace=11, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.246266] get_colorspace(352): csi1: fmt=825770306
[   69.251324] video0: VIDIOC_TRY_FMT: type=vid-cap, width=4800, height=4800, pixelformat=BA81, field=none, bytesperline=4800, sizeimage=23040000, colorspace=11, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.252255] video0: VIDIOC_ENUM_FRAMESIZES: error -25: index=0, pixelformat=YVYU, type=0
[   69.252302] get_colorspace(352): csi1: fmt=1431918169
[   69.257443] video0: VIDIOC_TRY_FMT: type=vid-cap, width=32, height=32, pixelformat=YVYU, field=none, bytesperline=64, sizeimage=2048, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.258494] get_colorspace(352): csi1: fmt=1431918169
[   69.263609] video0: VIDIOC_TRY_FMT: type=vid-cap, width=4800, height=4800, pixelformat=YVYU, field=none, bytesperline=9600, sizeimage=46080000, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.264850] get_colorspace(352): csi1: fmt=842094158
[   69.269922] video0: VIDIOC_TRY_FMT: type=vid-cap, width=1280, height=720, pixelformat=NV12, field=none, bytesperline=1920, sizeimage=1382400, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.275872] get_colorspace(352): csi1: fmt=842094158
[   69.282676] video0: VIDIOC_S_FMT: type=vid-cap, width=1280, height=720, pixelformat=NV12, field=none, bytesperline=1920, sizeimage=1382400, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.282740] video0: VIDIOC_G_PARM: error -25: type=vid-cap, capability=0x0, capturemode=0x0, timeperframe=0/0, extendedmode=0, readbuffers=0
[   69.282775] video0: VIDIOC_EXPBUF: error -22: fd=0, type=vid-cap, index=4294967295, plane=4294967295, flags=0x00080002
[   69.282794] video0: VIDIOC_G_CTRL: error -22: id=0x980927, value=0
[   69.283565] video0: VIDIOC_REQBUFS: count=0, type=vid-cap, memory=mmap
[   69.283603] video0: VIDIOC_CREATE_BUFS: index=0, count=0, memory=mmap, type=vid-cap, width=1280, height=720, pixelformat=NV12, field=none, bytesperline=1920, sizeimage=1382400, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.283629] video0: VIDIOC_REQBUFS: error -22: count=0, type=vid-cap, memory=userptr
[   69.283641] video0: VIDIOC_REQBUFS: count=0, type=vid-cap, memory=dmabuf
[   69.283650] video0: VIDIOC_CREATE_BUFS: index=0, count=0, memory=dmabuf, type=vid-cap, width=1280, height=720, pixelformat=NV12, field=none, bytesperline=1920, sizeimage=1382400, colorspace=3, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
[   69.284264] video0: VIDIOC_G_CTRL: error -22: id=0x980927, value=0
[   69.299530] video0: VIDIOC_REQBUFS: count=3, type=vid-cap, memory=mmap
[   69.303031] video0: VIDIOC_QUERYBUF: 00:00:00.000000000 index=0, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0x0, length=1382400
[   69.303069] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[   69.310955] video0: VIDIOC_QUERYBUF: 00:00:00.000000000 index=1, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0x152000, length=1382400
[   69.310992] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[   69.311010] video0: VIDIOC_QUERYBUF: 00:00:00.000000000 index=2, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0x2a4000, length=1382400
[   69.311026] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[   69.313193] video0: VIDIOC_EXPBUF: fd=16, type=vid-cap, index=0, plane=0, flags=0x00080002
[   69.315709] video0: VIDIOC_QBUF: 00:00:00.000000000 index=0, type=vid-cap, request_fd=0, flags=0x00002003, field=none, sequence=0, memory=mmap, bytesused=1382400, offset/userptr=0x0, length=1382400
[   69.315748] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[   69.315822] video0: VIDIOC_EXPBUF: fd=17, type=vid-cap, index=1, plane=0, flags=0x00080002
[   69.316060] video0: VIDIOC_QBUF: 00:00:00.000000000 index=1, type=vid-cap, request_fd=0, flags=0x00002003, field=none, sequence=0, memory=mmap, bytesused=1382400, offset/userptr=0x152000, length=1382400
[   69.316086] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[   69.316136] video0: VIDIOC_EXPBUF: fd=18, type=vid-cap, index=2, plane=0, flags=0x00080002
[   69.316206] video0: VIDIOC_QBUF: 00:00:00.000000000 index=2, type=vid-cap, request_fd=0, flags=0x00002003, field=none, sequence=0, memory=mmap, bytesused=1382400, offset/userptr=0x2a4000, length=1382400
[   69.316226] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[   69.316308] hdzerocam_get_fmt(710)
[   69.325099] sun6i-csi 1cb0000.csi: get_csi_input_format(215): csi1: 
[   69.325107] sun6i-csi 1cb0000.csi: get_csi_input_format(235): csi1: Select YUYV422 as default 
[   69.325112] sun6i-csi 1cb0000.csi: get_csi_output_format(244): csi1 
[   69.325119] sun6i-csi 1cb0000.csi: get_csi_output_format(278): csi1: PIXFMT CSI_FIELD_UV_CB_YUV420 for NV12/NV21
[   69.325124] sun6i-csi 1cb0000.csi: get_csi_input_seq(315): csi1
[   69.325131] sun6i-csi 1cb0000.csi: get_csi_input_seq(331): csi1: UYVY 
[   69.337327] hdzerocam_s_stream(755)
[   69.345269] video0: VIDIOC_STREAMON: type=vid-cap
[   69.347906] videodev: v4l2_poll: video0: poll: 00000000
[   69.369241] videodev: v4l2_poll: video0: poll: 00000041
[   69.369297] video0: VIDIOC_DQBUF: 00:01:09.000366895 index=0, type=vid-cap, request_fd=0, flags=0x00002001, field=none, sequence=0, memory=mmap, bytesused=1382400, offset/userptr=0x0, length=1382400
[   69.369324] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[   69.369645] video0: VIDIOC_QBUF: 00:00:00.000000000 index=0, type=vid-cap, request_fd=0, flags=0x00002003, field=none, sequence=0, memory=mmap, bytesused=1382400, offset/userptr=0x0, length=1382400
[   69.369670] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
[   69.381785] hdzerocam_s_stream(755)
[   69.387749] video0: VIDIOC_STREAMOFF: type=vid-cap
[   69.388817] video0: VIDIOC_REQBUFS: count=0, type=vid


More information about the gstreamer-devel mailing list