<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックGstreamer imxvideoconvert_g2d capfilter NV12 fail</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-imxvideoconvert-g2d-capfilter-NV12-fail/m-p/1333911#M179489</link>
    <description>&lt;P&gt;Hi NXP,&lt;/P&gt;&lt;P&gt;With linux version 5.10 on IMX8QXP I have problem with gstreamer about capfilter&lt;/P&gt;&lt;P&gt;the refference from thread&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/How-to-convert-simultaneously-two-video-streams-from-YUY2-to/m-p/1200108" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/How-to-convert-simultaneously-two-video-streams-from-YUY2-to/m-p/1200108&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When I need to use 2 camera device for streaming I found the same problem at v4l2convert&lt;/P&gt;&lt;P&gt;gst-launch-1.0 -v -e v4l2src device=/dev/video3 \&lt;BR /&gt;! "image/jpeg, width=3264, height=2448" \&lt;BR /&gt;! v4l2jpegdec ! imxvideoconvert_g2d \&lt;BR /&gt;! capsfilter caps="video/x-raw, width=320, height=240, pixel-aspect-ratio=1/1" \&lt;BR /&gt;! v4l2convert ! v4l2h264enc ! h264parse \&lt;BR /&gt;! fakesink&lt;/P&gt;&lt;P&gt;gst-launch-1.0 -v -e v4l2src device=/dev/video5 \&lt;BR /&gt;! "image/jpeg, width=3264, height=2448" \&lt;BR /&gt;! v4l2jpegdec ! imxvideoconvert_g2d \&lt;BR /&gt;! capsfilter caps="video/x-raw, width=320, height=240, pixel-aspect-ratio=1/1" \&lt;BR /&gt;! v4l2convert ! v4l2h264enc ! h264parse \&lt;BR /&gt;! fakesink&lt;/P&gt;&lt;P&gt;The ISI channel cann't control and show error log from camera number2&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;mxc-isi 58100000.isi: mxc_isi_m2m_open: ISI channel[0] is busy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I try to fix this problem with doesn't use v4l2convert.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;On top command log generate format auto&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;camera(JPEG)-&amp;gt;v4l2jpegdec(NV12)-&amp;gt;imxvideoconvert_g2d(YUY2)-&amp;gt;v4l2conver(NV12)-&amp;gt;v4l2h264&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I set capfilter&amp;nbsp;imxvideoconvert_g2d to use NV12, that's mean I don't need to use v4l2convert right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from&amp;nbsp;gst-inspect-1.0 imxvideoconvert_g2d I get log&amp;nbsp;&lt;/P&gt;&lt;P&gt;Factory Details:&lt;BR /&gt;Rank primary + 1 (257)&lt;BR /&gt;Long-name IMX g2d Video Converter&lt;BR /&gt;Klass Filter/Converter/Video&lt;BR /&gt;Description Video CSC/Resize/Rotate.&lt;BR /&gt;Author Multimedia Team &amp;lt;shmmmw@freescale.com&amp;gt;&lt;/P&gt;&lt;P&gt;Plugin Details:&lt;BR /&gt;Name imxvideoconvert&lt;BR /&gt;Description IMX Video Convert Plugins&lt;BR /&gt;Filename /usr/lib/gstreamer-1.0/libgstimxvideoconvert.so&lt;BR /&gt;Version 4.6.1&lt;BR /&gt;License LGPL&lt;BR /&gt;Source module imx-gst1.0-plugin&lt;BR /&gt;Binary package Freescle Gstreamer Multimedia Plugins&lt;BR /&gt;Origin URL &lt;A href="http://www.freescale.com" target="_blank"&gt;http://www.freescale.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;GObject&lt;BR /&gt;+----GInitiallyUnowned&lt;BR /&gt;+----GstObject&lt;BR /&gt;+----GstElement&lt;BR /&gt;+----GstBaseTransform&lt;BR /&gt;+----GstVideoFilter&lt;BR /&gt;+----imxvideoconvert_g2d&lt;/P&gt;&lt;P&gt;Pad Templates:&lt;BR /&gt;SINK template: 'sink'&lt;BR /&gt;Availability: Always&lt;BR /&gt;Capabilities:&lt;BR /&gt;video/x-raw&lt;BR /&gt;format: { (string)RGB16, (string)RGBx, (string)RGBA, (string)BGRA, (string)BGRx, (string)BGR16, (string)ARGB, (string)ABGR, (string)xRGB, (string)xBGR, (string)UYVY, (string)YUY2, (string)I420, (string)NV12_10LE, (string)YV12, (string)NV16, (string)NV21, (string)NV12 }&lt;BR /&gt;video/x-raw(memory:SystemMemory, meta:GstVideoOverlayComposition)&lt;BR /&gt;format: { (string)RGB16, (string)RGBx, (string)RGBA, (string)BGRA, (string)BGRx, (string)BGR16, (string)ARGB, (string)ABGR, (string)xRGB, (string)xBGR, (string)UYVY, (string)YUY2, (string)I420, (string)NV12_10LE, (string)YV12, (string)NV16, (string)NV21, (string)NV12 }&lt;/P&gt;&lt;P&gt;SRC template: 'src'&lt;BR /&gt;Availability: Always&lt;BR /&gt;Capabilities:&lt;BR /&gt;video/x-raw&lt;BR /&gt;format: { (string)RGB16, (string)RGBx, (string)RGBA, (string)BGRA, (string)BGRx, (string)BGR16, (string)ARGB, (string)ABGR, (string)xRGB, (string)xBGR, (string)UYVY, (string)YUY2, (string)NV12 }&lt;BR /&gt;video/x-raw(memory:SystemMemory, meta:GstVideoOverlayComposition)&lt;BR /&gt;format: { (string)RGB16, (string)RGBx, (string)RGBA, (string)BGRA, (string)BGRx, (string)BGR16, (string)ARGB, (string)ABGR, (string)xRGB, (string)xBGR, (string)UYVY, (string)YUY2, (string)NV12 }&lt;/P&gt;&lt;P&gt;imxvideoconvert_g2d has capfilter support NV12 but when I try command&lt;/P&gt;&lt;P&gt;gst-launch-1.0 -v -e v4l2src device=/dev/video3 \&lt;BR /&gt;! "image/jpeg, width=3264, height=2448" \&lt;BR /&gt;! v4l2jpegdec ! imxvideoconvert_g2d \&lt;BR /&gt;! capsfilter caps="video/x-raw, format=NV12, width=320, height=240, pixel-aspect-ratio=1/1" \&lt;BR /&gt;! fakesink&lt;/P&gt;&lt;P&gt;I found error&amp;nbsp;&lt;/P&gt;&lt;P&gt;====== V4L2DEC: 1.18.0 build on Jun 3 2021 08:59:40. ======&lt;BR /&gt;Pipeline is live and does not need PREROLL ...&lt;BR /&gt;Pipeline is PREROLLED ...&lt;BR /&gt;Setting pipeline to PLAYING ...&lt;BR /&gt;New clock: GstSystemClock&lt;BR /&gt;/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = image/jpeg, width=(int)3264, height=(int)2448, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1, parsed=(boolean)true, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:src: caps = image/jpeg, width=(int)3264, height=(int)2448, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1, parsed=(boolean)true, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/v4l2jpegdec:v4l2jpegdec0.GstPad:sink: caps = image/jpeg, width=(int)3264, height=(int)2448, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1, parsed=(boolean)true, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:sink: caps = image/jpeg, width=(int)3264, height=(int)2448, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1, parsed=(boolean)true, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/v4l2jpegdec:v4l2jpegdec0.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)3264, height=(int)2448, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, colorimetry=(string)bt2020, framerate=(fraction)15/1&lt;BR /&gt;ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.&lt;BR /&gt;Additional debug info:&lt;BR /&gt;../git/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:&lt;BR /&gt;streaming stopped, reason not-negotiated (-4)&lt;BR /&gt;Execution ended after 0:00:01.303332298&lt;BR /&gt;Setting pipeline to NULL ...&lt;BR /&gt;Freeing pipeline ...&lt;/P&gt;&lt;P&gt;If I change other format it can work (e.g. RGBx, BGRx, UYVY, YUYV)&lt;/P&gt;&lt;P&gt;Do you have any suggestion for fix this problem?&lt;/P&gt;</description>
    <pubDate>Thu, 02 Sep 2021 07:14:37 GMT</pubDate>
    <dc:creator>thepnimit</dc:creator>
    <dc:date>2021-09-02T07:14:37Z</dc:date>
    <item>
      <title>Gstreamer imxvideoconvert_g2d capfilter NV12 fail</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-imxvideoconvert-g2d-capfilter-NV12-fail/m-p/1333911#M179489</link>
      <description>&lt;P&gt;Hi NXP,&lt;/P&gt;&lt;P&gt;With linux version 5.10 on IMX8QXP I have problem with gstreamer about capfilter&lt;/P&gt;&lt;P&gt;the refference from thread&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/How-to-convert-simultaneously-two-video-streams-from-YUY2-to/m-p/1200108" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/How-to-convert-simultaneously-two-video-streams-from-YUY2-to/m-p/1200108&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When I need to use 2 camera device for streaming I found the same problem at v4l2convert&lt;/P&gt;&lt;P&gt;gst-launch-1.0 -v -e v4l2src device=/dev/video3 \&lt;BR /&gt;! "image/jpeg, width=3264, height=2448" \&lt;BR /&gt;! v4l2jpegdec ! imxvideoconvert_g2d \&lt;BR /&gt;! capsfilter caps="video/x-raw, width=320, height=240, pixel-aspect-ratio=1/1" \&lt;BR /&gt;! v4l2convert ! v4l2h264enc ! h264parse \&lt;BR /&gt;! fakesink&lt;/P&gt;&lt;P&gt;gst-launch-1.0 -v -e v4l2src device=/dev/video5 \&lt;BR /&gt;! "image/jpeg, width=3264, height=2448" \&lt;BR /&gt;! v4l2jpegdec ! imxvideoconvert_g2d \&lt;BR /&gt;! capsfilter caps="video/x-raw, width=320, height=240, pixel-aspect-ratio=1/1" \&lt;BR /&gt;! v4l2convert ! v4l2h264enc ! h264parse \&lt;BR /&gt;! fakesink&lt;/P&gt;&lt;P&gt;The ISI channel cann't control and show error log from camera number2&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;mxc-isi 58100000.isi: mxc_isi_m2m_open: ISI channel[0] is busy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I try to fix this problem with doesn't use v4l2convert.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;On top command log generate format auto&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;camera(JPEG)-&amp;gt;v4l2jpegdec(NV12)-&amp;gt;imxvideoconvert_g2d(YUY2)-&amp;gt;v4l2conver(NV12)-&amp;gt;v4l2h264&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I set capfilter&amp;nbsp;imxvideoconvert_g2d to use NV12, that's mean I don't need to use v4l2convert right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from&amp;nbsp;gst-inspect-1.0 imxvideoconvert_g2d I get log&amp;nbsp;&lt;/P&gt;&lt;P&gt;Factory Details:&lt;BR /&gt;Rank primary + 1 (257)&lt;BR /&gt;Long-name IMX g2d Video Converter&lt;BR /&gt;Klass Filter/Converter/Video&lt;BR /&gt;Description Video CSC/Resize/Rotate.&lt;BR /&gt;Author Multimedia Team &amp;lt;shmmmw@freescale.com&amp;gt;&lt;/P&gt;&lt;P&gt;Plugin Details:&lt;BR /&gt;Name imxvideoconvert&lt;BR /&gt;Description IMX Video Convert Plugins&lt;BR /&gt;Filename /usr/lib/gstreamer-1.0/libgstimxvideoconvert.so&lt;BR /&gt;Version 4.6.1&lt;BR /&gt;License LGPL&lt;BR /&gt;Source module imx-gst1.0-plugin&lt;BR /&gt;Binary package Freescle Gstreamer Multimedia Plugins&lt;BR /&gt;Origin URL &lt;A href="http://www.freescale.com" target="_blank"&gt;http://www.freescale.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;GObject&lt;BR /&gt;+----GInitiallyUnowned&lt;BR /&gt;+----GstObject&lt;BR /&gt;+----GstElement&lt;BR /&gt;+----GstBaseTransform&lt;BR /&gt;+----GstVideoFilter&lt;BR /&gt;+----imxvideoconvert_g2d&lt;/P&gt;&lt;P&gt;Pad Templates:&lt;BR /&gt;SINK template: 'sink'&lt;BR /&gt;Availability: Always&lt;BR /&gt;Capabilities:&lt;BR /&gt;video/x-raw&lt;BR /&gt;format: { (string)RGB16, (string)RGBx, (string)RGBA, (string)BGRA, (string)BGRx, (string)BGR16, (string)ARGB, (string)ABGR, (string)xRGB, (string)xBGR, (string)UYVY, (string)YUY2, (string)I420, (string)NV12_10LE, (string)YV12, (string)NV16, (string)NV21, (string)NV12 }&lt;BR /&gt;video/x-raw(memory:SystemMemory, meta:GstVideoOverlayComposition)&lt;BR /&gt;format: { (string)RGB16, (string)RGBx, (string)RGBA, (string)BGRA, (string)BGRx, (string)BGR16, (string)ARGB, (string)ABGR, (string)xRGB, (string)xBGR, (string)UYVY, (string)YUY2, (string)I420, (string)NV12_10LE, (string)YV12, (string)NV16, (string)NV21, (string)NV12 }&lt;/P&gt;&lt;P&gt;SRC template: 'src'&lt;BR /&gt;Availability: Always&lt;BR /&gt;Capabilities:&lt;BR /&gt;video/x-raw&lt;BR /&gt;format: { (string)RGB16, (string)RGBx, (string)RGBA, (string)BGRA, (string)BGRx, (string)BGR16, (string)ARGB, (string)ABGR, (string)xRGB, (string)xBGR, (string)UYVY, (string)YUY2, (string)NV12 }&lt;BR /&gt;video/x-raw(memory:SystemMemory, meta:GstVideoOverlayComposition)&lt;BR /&gt;format: { (string)RGB16, (string)RGBx, (string)RGBA, (string)BGRA, (string)BGRx, (string)BGR16, (string)ARGB, (string)ABGR, (string)xRGB, (string)xBGR, (string)UYVY, (string)YUY2, (string)NV12 }&lt;/P&gt;&lt;P&gt;imxvideoconvert_g2d has capfilter support NV12 but when I try command&lt;/P&gt;&lt;P&gt;gst-launch-1.0 -v -e v4l2src device=/dev/video3 \&lt;BR /&gt;! "image/jpeg, width=3264, height=2448" \&lt;BR /&gt;! v4l2jpegdec ! imxvideoconvert_g2d \&lt;BR /&gt;! capsfilter caps="video/x-raw, format=NV12, width=320, height=240, pixel-aspect-ratio=1/1" \&lt;BR /&gt;! fakesink&lt;/P&gt;&lt;P&gt;I found error&amp;nbsp;&lt;/P&gt;&lt;P&gt;====== V4L2DEC: 1.18.0 build on Jun 3 2021 08:59:40. ======&lt;BR /&gt;Pipeline is live and does not need PREROLL ...&lt;BR /&gt;Pipeline is PREROLLED ...&lt;BR /&gt;Setting pipeline to PLAYING ...&lt;BR /&gt;New clock: GstSystemClock&lt;BR /&gt;/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = image/jpeg, width=(int)3264, height=(int)2448, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1, parsed=(boolean)true, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:src: caps = image/jpeg, width=(int)3264, height=(int)2448, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1, parsed=(boolean)true, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/v4l2jpegdec:v4l2jpegdec0.GstPad:sink: caps = image/jpeg, width=(int)3264, height=(int)2448, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1, parsed=(boolean)true, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:sink: caps = image/jpeg, width=(int)3264, height=(int)2448, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1, parsed=(boolean)true, interlace-mode=(string)progressive&lt;BR /&gt;/GstPipeline:pipeline0/v4l2jpegdec:v4l2jpegdec0.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)3264, height=(int)2448, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, colorimetry=(string)bt2020, framerate=(fraction)15/1&lt;BR /&gt;ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.&lt;BR /&gt;Additional debug info:&lt;BR /&gt;../git/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:&lt;BR /&gt;streaming stopped, reason not-negotiated (-4)&lt;BR /&gt;Execution ended after 0:00:01.303332298&lt;BR /&gt;Setting pipeline to NULL ...&lt;BR /&gt;Freeing pipeline ...&lt;/P&gt;&lt;P&gt;If I change other format it can work (e.g. RGBx, BGRx, UYVY, YUYV)&lt;/P&gt;&lt;P&gt;Do you have any suggestion for fix this problem?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 07:14:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-imxvideoconvert-g2d-capfilter-NV12-fail/m-p/1333911#M179489</guid>
      <dc:creator>thepnimit</dc:creator>
      <dc:date>2021-09-02T07:14:37Z</dc:date>
    </item>
  </channel>
</rss>

