root@am62axx-evm:/home# gst-launch-1.0 -v \ > v4l2src io-mode=dmabuf-import device=/dev/video-imx219-cam0 ! video/x-bayer,width=1920,height=1080,format=rggb ! \ > tiovxmemalloc pool-size=2 ! queue max-size-bytes=0 ! \ > tiovxisp sensor-name=SENSOR_SONY_IMX219_RPI dcc-isp-file=/opt/imaging/imx219/linear/dcc_viss_1920x1080.bin \ > sink_0::dcc-2a-file=/opt/imaging/imx219/linear/dcc_2a_1920x1080.bin sink_0::device=/dev/v4l-imx219-subdev0 ! \ > video/x-raw,format=NV12,width=1920, height=1080, framerate=30/1 ! tee name=t \ > t. ! queue ! kmssink driver-name=tidss sync=false \ > t. ! queue ! v4l2h264enc ! fakesink APP: Init ... !!! 2047.487850 s: MEM: Init ... !!! 2047.487906 s: MEM: Initialized DMA HEAP (fd=8) !!! 2047.488089 s: MEM: Init ... Done !!! 2047.488104 s: IPC: Init ... !!! 2047.505551 s: IPC: Init ... Done !!! REMOTE_SERVICE: Init ... !!! REMOTE_SERVICE: Init ... Done !!! 2047.513725 s: GTC Frequency = 200 MHz APP: Init ... Done !!! 2047.517790 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_ERROR 2047.517844 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_WARNING 2047.517857 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_INFO 2047.520179 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:169] Added target MPU-0 2047.520371 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:169] Added target MPU-1 2047.520500 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:169] Added target MPU-2 2047.520612 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:169] Added target MPU-3 2047.520628 s: VX_ZONE_INFO: [tivxInitLocal:202] Initialization Done !!! 2047.520640 s: VX_ZONE_INFO: Globally Disabled VX_ZONE_INFO Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... /GstPipeline:pipeline0/GstKMSSink:kmssink0: display-width = 1920 /GstPipeline:pipeline0/GstKMSSink:kmssink0: display-height = 1200 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, format=(string)rggb, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)120/1, interlace-mode=(string)progressive /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-bayer, width=(int)1920, height=(int)1080, format=(string)rggb, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)120/1, interlace-mode=(string)progressive /GstPipeline:pipeline0/GstTIOVXMemAlloc:tiovxmemalloc0.GstPad:src: caps = video/x-bayer, width=(int)1920, height=(int)1080, format=(string)rggb, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)120/1, interlace-mode=(string)progressive /GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = video/x-bayer, width=(int)1920, height=(int)1080, format=(string)rggb, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)120/1, interlace-mode=(string)progressive /GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = video/x-bayer, width=(int)1920, height=(int)1080, format=(string)rggb, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)120/1, interlace-mode=(string)progressive /GstPipeline:pipeline0/GstTIOVXMemAlloc:tiovxmemalloc0.GstPad:sink: caps = video/x-bayer, width=(int)1920, height=(int)1080, format=(string)rggb, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)120/1, interlace-mode=(string)progressive /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-bayer, width=(int)1920, height=(int)1080, format=(string)rggb, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)120/1, interlace-mode=(string)progressive /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-bayer, width=(int)1920, height=(int)1080, format=(string)rggb, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)120/1, interlace-mode=(string)progressive /GstPipeline:pipeline0/GstTIOVXISP:tiovxisp0.GstTIOVXMisoPad:src: caps = video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601 /GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601 /GstPipeline:pipeline0/GstTee:t.GstTeePad:src_0: caps = video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601 /GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601 /GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601 /GstPipeline:pipeline0/GstTee:t.GstTeePad:src_1: caps = video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601 /GstPipeline:pipeline0/GstKMSSink:kmssink0.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601 /GstPipeline:pipeline0/GstQueue:queue2.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601 /GstPipeline:pipeline0/GstQueue:queue2.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601 /GstPipeline:pipeline0/GstTee:t.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601 /GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601 /GstPipeline:pipeline0/v4l2h264enc:v4l2h264enc0.GstPad:src: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, level=(string)1, profile=(string)baseline, width=(int)1920, height=(int)1080, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601 /GstPipeline:pipeline0/GstFakeSink:fakesink0.GstPad:sink: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, level=(string)1, profile=(string)baseline, width=(int)1920, height=(int)1080, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601 Redistribute latency... /GstPipeline:pipeline0/v4l2h264enc:v4l2h264enc0.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601 Redistribute latency... Redistribute latency... ^Chandling interrupt. Interrupt: Stopping pipeline ... Execution ended after 0:00:12.423291695 Setting pipeline to NULL ... Freeing pipeline ... root@am62axx-evm:/home# vi imx219-switch-dispenc.c root@am62axx-evm:/home# gcc -o test imx219-switch-dispenc.c $(pkg-config --cflags --libs gstreamer-1.0) root@am62axx-evm:/home# ./test --- Starting new recording cycle --- APP: Init ... !!! 2137.237879 s: MEM: Init ... !!! 2137.237948 s: MEM: Initialized DMA HEAP (fd=8) !!! 2137.238099 s: MEM: Init ... Done !!! 2137.238112 s: IPC: Init ... !!! 2137.255794 s: IPC: Init ... Done !!! REMOTE_SERVICE: Init ... !!! REMOTE_SERVICE: Init ... Done !!! 2137.259882 s: GTC Frequency = 200 MHz APP: Init ... Done !!! 2137.260032 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_ERROR 2137.260048 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_WARNING 2137.260059 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_INFO 2137.260769 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:169] Added target MPU-0 2137.261055 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:169] Added target MPU-1 2137.261305 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:169] Added target MPU-2 2137.261553 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:169] Added target MPU-3 2137.261588 s: VX_ZONE_INFO: [tivxInitLocal:202] Initialization Done !!! 2137.261600 s: VX_ZONE_INFO: Globally Disabled VX_ZONE_INFO Recording started Recording stopped Pausing for 2 seconds --- Starting new recording cycle --- Recording started Recording stopped Pausing for 2 seconds --- Starting new recording cycle --- Recording started Recording stopped Pausing for 2 seconds --- Starting new recording cycle --- Recording started Recording stopped Pausing for 2 seconds --- Starting new recording cycle --- Recording started Recording stopped Pausing for 2 seconds --- Starting new recording cycle --- Recording started Recording stopped Pausing for 2 seconds --- Starting new recording cycle --- Recording started Recording stopped Pausing for 2 seconds --- Starting new recording cycle --- Recording started Recording stopped