<?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のトピックi.MX gstreamer Format Conversion</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-gstreamer-Format-Conversion/m-p/780053#M121211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using an i.MX6 SABRESD running fsl-linux distribution, with a custom camera input and streaming video input using gstreamer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The camera output format is YUYV (YYYYYYYY UUUUUUUU YYYYYYYY VVVVVVVV, YUY2) and I am outputting 1920x1080p HMDI via 32bpp framebuffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;gst-launch-1.0 imxv4l2src device=/dev/video0 num-buffers=-1 ! 'video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080, framerate=(fraction)15/1' ! imxv4l2sink&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives okay quality video, but gradual changes in color result in errors in the color space conversion, shown as blocks of color where there should be a gradual change, as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11626i5E3A15F52A754B0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to modify a &lt;A href="https://source.codeaurora.org/external/imxsupport/ipu-examples/tree/mx6/csc"&gt;color space conversion example&lt;/A&gt; to correctly change the format of still images using "YUYV" as the color format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is this;&lt;/P&gt;&lt;P&gt;Is gstreamer using the same color space converter as the example code (ie. the IPU) and if not, is there a way to make it do so, or to bypass gstreamer's csc and use the IPU instead?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Dec 2017 11:15:45 GMT</pubDate>
    <dc:creator>ciaranbannon</dc:creator>
    <dc:date>2017-12-12T11:15:45Z</dc:date>
    <item>
      <title>i.MX gstreamer Format Conversion</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-gstreamer-Format-Conversion/m-p/780053#M121211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using an i.MX6 SABRESD running fsl-linux distribution, with a custom camera input and streaming video input using gstreamer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The camera output format is YUYV (YYYYYYYY UUUUUUUU YYYYYYYY VVVVVVVV, YUY2) and I am outputting 1920x1080p HMDI via 32bpp framebuffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;gst-launch-1.0 imxv4l2src device=/dev/video0 num-buffers=-1 ! 'video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080, framerate=(fraction)15/1' ! imxv4l2sink&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gives okay quality video, but gradual changes in color result in errors in the color space conversion, shown as blocks of color where there should be a gradual change, as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11626i5E3A15F52A754B0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to modify a &lt;A href="https://source.codeaurora.org/external/imxsupport/ipu-examples/tree/mx6/csc"&gt;color space conversion example&lt;/A&gt; to correctly change the format of still images using "YUYV" as the color format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is this;&lt;/P&gt;&lt;P&gt;Is gstreamer using the same color space converter as the example code (ie. the IPU) and if not, is there a way to make it do so, or to bypass gstreamer's csc and use the IPU instead?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 11:15:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX-gstreamer-Format-Conversion/m-p/780053#M121211</guid>
      <dc:creator>ciaranbannon</dc:creator>
      <dc:date>2017-12-12T11:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX gstreamer Format Conversion</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-gstreamer-Format-Conversion/m-p/780054#M121212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ciaran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try procedures given in sect.7.3.15 Video conversion&lt;/P&gt;&lt;P&gt;attached Linux Guide and use nxp bsps described on&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fproducts%2Fsoftware-and-tools%2Fsoftware-development-tools%2Fi.mx-software-and-tools%2Fi.mx-6series-i.mx-7series-software-and-development-tool-resources%3AIMX_SW" rel="nofollow" target="_blank"&gt;http://www.nxp.com/products/software-and-tools/software-development-tools/i.mx-software-and-tools/i.mx-6series-i.mx-7series-software-and-development-tool-resources:IMX_SW&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 23:41:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX-gstreamer-Format-Conversion/m-p/780054#M121212</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-12-12T23:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX gstreamer Format Conversion</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-gstreamer-Format-Conversion/m-p/780055#M121213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor, thank you for that info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears that YUY2 isn't supported by imxvideoconvert_ipu. I've been able to change the camera format to UYVY (which is listed under "gst-inspect-1.0 imxvideoconvert_ipu" and switched to using videotestsrc to rule out any bad signals coming from the camera as the issue. My command is;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;gst-launch-1.0 -v videotestsrc ! video/x-raw,format=RGB,width=800,height=600 ! imxvideoconvert_ipu ! pngenc ! filesink location=format_tests/test_rgb.png&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resulting in the image on the left. Changing to "format=UYVY" results in the image on the right. There is a notable difference in color, particularly on the bottom-left bars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15835i4DADD59CB30720DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15794iD5CD2DA520889DEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a simple explanation for this erroneous conversion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 12:02:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX-gstreamer-Format-Conversion/m-p/780055#M121213</guid>
      <dc:creator>ciaranbannon</dc:creator>
      <dc:date>2017-12-13T12:02:55Z</dc:date>
    </item>
  </channel>
</rss>

