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: SK-AM62A-LP: mjpeg captured failed

Part Number: SK-AM62A-LP

Hello Team,

I am using SK-AM62A-LP evm board in that, trying to run below command to capture mjpeg and in that pipeline are stuck and not able to capture mjpeg file.
So, do we need to enable something to capture jpeg ? actually imx219 sensor is connected properly and h264 encoding is working properly only problem with mjpeg.

Getting below log :

root@am62axx-evm:/opt/edgeai-gst-apps# gst-launch-1.0 -v v4l2src device=/dev/video-rpi-cam0 io-mode=dmabuf-import num-buffers=100 ! video/x-bayer, width=1920, height=1080, framerate=60/1, format=rggb10 ! tiovxisp sink_0::device=/dev/v4l-rpi-subdev0 sensor-name="SENSOR_SONY_IMX219_RPI" dcc-isp-file=/opt/imaging/imx219/linear/dcc_viss_10b.bin sink_0::dcc-2a-file=/opt/imaging/imx219/linear/dcc_2a_10b.bin format-msb=9 ! video/x-raw, format=NV12, width=1920, height=1080, framerate=30/1 ! v4l2jpegenc extra-controls=c,compression_quality=75 '!' filesink location="data.mjpeg"
APP: Init ... !!!
MEM: Init ... !!!
MEM: Initialized DMA HEAP (fd=6) !!!
MEM: Init ... Done !!!
IPC: Init ... !!!
IPC: Init ... Done !!!
REMOTE_SERVICE: Init ... !!!
REMOTE_SERVICE: Init ... Done !!!
6823.212662 s: GTC Frequency = 200 MHz
APP: Init ... Done !!!
6823.212791 s: VX_ZONE_INIT:Enabled
6823.212806 s: VX_ZONE_ERROR:Enabled
6823.212815 s: VX_ZONE_WARNING:Enabled
6823.214283 s: VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
6823.215251 s: VX_ZONE_INIT:[tivxHostInitLocal:101] Initialization Done for HOST !!!
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-bayer, width=(int)1920, height=(int)1080, framerate=(fraction)60/1, format=(string)rggb10, interlace-mode=(string)progressive, colorimetry=(string)2:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-bayer, width=(int)1920, height=(int)1080, framerate=(fraction)60/1, format=(string)rggb10, interlace-mode=(string)progressive, colorimetry=(string)2:4:7:1
/GstPipeline:pipeline0/GstTIOVXISP:tiovxisp0.GstTIOVXIspPad:sink_0: caps = video/x-bayer, width=(int)1920, height=(int)1080, framerate=(fraction)60/1, format=(string)rggb10, interlace-mode=(string)progressive, colorimetry=(string)2:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-bayer, width=(int)1920, height=(int)1080, framerate=(fraction)60/1, format=(string)rggb10, interlace-mode=(string)progressive, colorimetry=(string)2:4:7:1

  • Hi Jaimin,

    Are you using SDK 9.2?

    Thanks

    Yogesh

  • Hi Jaimin,

    I was able to successfully run the below command using OX05B sensor on my AM62A:

    gst-launch-1.0 -v v4l2src device=/dev/video4 io-mode=dmabuf-import num-buffers=100 ! \
    video/x-bayer, width=2592, height=1944, framerate=30/1, format=bggi10 ! queue ! \
    tiovxisp sink_0::pool-size=4 sink_0::device=/dev/v4l-subdev2 sensor-name="SENSOR_OX05B1S" \
    dcc-isp-file=/opt/imaging/ox05b1s/linear/dcc_viss.bin sink_0::dcc-2a-file=/opt/imaging/ox05b1s/linear/dcc_2a.bin format-msb=9 ! queue ! \
    tiovxldc dcc-file=/opt/imaging/ox05b1s/linear/dcc_ldc.bin sensor-name=SENSOR_OX05B1S ! \
    video/x-raw, format=NV12, width=2592, height=1944 ! queue ! \
    tiovxmultiscaler src_0::pool-size=4 target=1 ! video/x-raw, format=NV12, width=1920, height=1080 ! queue ! \
    v4l2jpegenc extra-controls="c,compression_quality=75" ! filesink location=op1.mjpeg

    Best Regards,

    Suren

  • Hello Suren,

    I had use format=rggb10 , instead of that I have used format=bggr and in that it's working.
    Thanks for you reply.