This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SK-AM62A-LP: limitation of resolution with v4l2jpegenc.

Part Number: SK-AM62A-LP

Tool/software:

I am using tiovxmultiscaler gstreamer plugin for ROI of image in that. I am successfully able to run below pipeline with tiovxmultiscaler.

gst-launch-1.0 -v v4l2src device=/dev/video-rpi-cam0 io-mode=dmabuf-import ! video/x-bayer, width=1920, height=1200, framerate=60/1, format=rggb10 ! tiovxisp sink_0::device=/dev/v4l-rpi-subdev0 sensor-name="SENSOR_SONY_IMX219_RPI" dcc-isp-file=/opt/imaging/ar0235/dcc_viss.bin sink_0::dcc-2a-file=/opt/imaging/ar0235/dcc_2a.bin format-msb=9 ! video/x-raw, format=NV12, width=1920, height=1200, framerate=60/1 ! tiovxmultiscaler name=multi src_0::roi-startx=480 src_0::roi-starty=300
src_0::roi-width=960 src_0::roi-height=600 multi. ! video/x-raw,format=NV12,width=960,height=600 ! v4l2jpegenc ! tcpserversink host=172.25.4.208 port=5000


But, if I am trying with random ROI value in that case v4l2jpegenc failed. so, is there any limitation of resolution with v4l2jpegenc.

I am trying with this 920x800 in that getting below error:

ERROR: from element /GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0: Device '/dev/video2' cannot capture at 920x800
Additional debug info:
../gst-plugins-good-1.20.7/sys/v4l2/gstv4l2object.c(4206): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0:
Tried to capture at 920x800, but device returned size 896x800

Pipeline:

gst-launch-1.0 -v v4l2src device=/dev/video-rpi-cam0 io-mode=dmabuf-import ! video/x-bayer, width=1920, h
eight=1200, framerate=60/1, format=rggb10 ! tiovxisp sink_0::device=/dev/v4l-rpi-subdev0 sensor-name="SENSOR_SONY_IMX219_RPI" dcc-isp
-file=/opt/imaging/ar0235/dcc_viss.bin sink_0::dcc-2a-file=/opt/imaging/ar0235/dcc_2a.bin format-msb=9 ! video/x-raw, format=NV12, wi
dth=1920, height=1200, framerate=60/1 ! tiovxmultiscaler name=multi src_0::roi-startx=0 src_0::roi-starty=0 src_0::roi-width=920 src_
0::roi-height=800 multi. ! video/x-raw,format=NV12,width=920,height=800 ! v4l2jpegenc ! tcpserversink host=172.25.4.208 port=5000


Error:


, interlace-mode=(string)progressive, colorimetry=(string)1:4:7:1
/GstPipeline:pipeline0/GstTCPServerSink:tcpserversink0.GstPad:sink: caps = image/jpeg, width=(int)920, height=(int)800, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)60/1, interlace-mode=(string)progressive, colorimetry=(string)1:4:7:1
Redistribute latency...
ERROR: from element /GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0: Device '/dev/video2' cannot capture at 920x800
Additional debug info:
../gst-plugins-good-1.20.7/sys/v4l2/gstv4l2object.c(4206): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0:
Tried to capture at 920x800, but device returned size 896x800
Execution ended after 0:00:00.352520341
Setting pipeline to NULL ...
ERROR: from element /GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0: Could not get/set settings from/on resource.
Additional debug info:
../gst-plugins-good-1.20.7/sys/v4l2/gstv4l2object.c(3664): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0:
Device is in streaming mode
Freeing pipeline ...
18614.370704 s: VX_ZONE_INIT:[tivxHostDeInitLocal:115] De-Initialization Done for HOST !!!
18614.375291 s: VX_ZONE



Thanks,
Jaimin