If I only change the resolution in the device tree (.dtsi)
active_w = "1120";
active_h = "884";
readout_orientation = "0";
line_length = "1120";
inherent_gain = "1";
/*mclk_multiplier = "2";*/
pix_clk_hz = "29702400";
serdes_pix_clk_hz = "100000000";
contiorin@contiorin-desktop:~$ v4l2-ctl -d /dev/video0 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture
Size: Discrete 1100x884
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 1100x884
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 1100x884
Interval: Discrete 0.033s (30.000 fps)
contiorin@contiorin-desktop:~$ v4l2-ctl -d /dev/video0 --set-fmt-video=width=1120,height=884,pixelformat=UYVY --stream-mmap --stream-count=1 --set-ctrl bypass_mode=0 --stream-to=/tmp/stream.raw
then it depends on how I “convert” the raw image.
with 1100
with 1120
contiorin@contiorin-desktop:~$ gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw,format=(string)UYVY,width=1120,height=884,framerate=30/1" ! videoconvert ! xvimagesink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3072): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.000088928
Setting pipeline to NULL ...
Freeing pipeline ...
if I also change the resolution in …mode_tbls.h
static const struct camera_common_frmfmt ovx1f_frmfmt[] = {
{{1120, 884}, ovx1f_30fps, 1, 0, OVX1F_RVC_MODE_1120X884},
/* Add modes with no device tree support after below */
};
I can’t save a raw image, after I send the command, nothing happens.
Gstreamer shows only one image at start-up and then hangs
[ 231.477719] bwmgr API not supported
[ 233.937950] bwmgr API not supported
[ 233.988736] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 2, flags: 0, err_data 512
[ 234.088582] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 1, flags: 0, err_data 512
[ 234.121902] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 2, flags: 0, err_data 512
[ 234.155164] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 3, flags: 0, err_data 512