<?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のトピックRe: Color distortion on gstreamer 1.8.1 using imx6Q VPU encoding</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Color-distortion-on-gstreamer-1-8-1-using-imx6Q-VPU-encoding/m-p/786596#M121875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;I don’t think that you need to do special for this, you just set the correct register for the capture yuv422, then enable the vpu to encode, then gstreamer can do this, because vpu just can handle yuv 420, so IPU can change this format automatically. However this link make an improvement in images:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/816416?commentID=816416#comment-816416" title="https://community.nxp.com/message/816416?commentID=816416#comment-816416"&gt;https://community.nxp.com/message/816416&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Sep 2018 16:08:47 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2018-09-25T16:08:47Z</dc:date>
    <item>
      <title>Color distortion on gstreamer 1.8.1 using imx6Q VPU encoding</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Color-distortion-on-gstreamer-1-8-1-using-imx6Q-VPU-encoding/m-p/786595#M121874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #0000ff; background-color: transparent; border: 0px; font-weight: inherit; font-size: 10.5pt;"&gt;Hi All:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #0000ff; background-color: transparent; border: 0px; font-weight: inherit; font-size: 10.5pt;"&gt;We're using&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: transparent; border: 0px; font-weight: inherit; font-size: 10.5pt;"&gt;&lt;SPAN style="background-color: transparent; border: 0px; font-weight: inherit; font-size: 10.5pt;"&gt;yocto-&lt;/SPAN&gt;&lt;SPAN style="background-color: transparent; border: 0px; font-weight: inherit; font-size: 14px;"&gt;L4.1.15_2.0.0-ga&lt;/SPAN&gt;&amp;nbsp;with image recipe&amp;nbsp;imx6qsabresd&amp;nbsp;fsl-image-qt5 as the board's software platform. And we use it's gstreamer 1.8.1 to do some video record application. We use the imx6Q VPU to encode the video into H.264 video data stream and pack it into MP4 container. We display raw video directly on screen and it's alright, but we found H.264 video recorded not. There are some distorions on the color of H.264 video. You can compare the screen views in attached files: The original screen view picture is 1.png and the distorted picture is 2.png. We're confused with this issue and we've tried with two video capture cards from different&amp;nbsp;manufacturers to confirm this issue. Both of the cards has the same issue. Do you have any suggestions on this issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #0000ff; background-color: transparent; border: 0px; font-weight: inherit; font-size: 10.5pt;"&gt;Here's the scripts we used:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #0000ff; background-color: transparent; border: 0px; font-weight: inherit; font-size: 10.5pt;"&gt;gst-launch-1.0 -e imxv4l2src device="/dev/video2" \&lt;BR /&gt; ! "video/x-raw,width=(int)1280,height=(int)$720,format=(string)YV12,framerate=(fraction)60000/1000" \&lt;BR /&gt; ! queue \&lt;BR /&gt; ! vpuenc_h264 \&lt;BR /&gt; ! mux. \&lt;BR /&gt; splitmuxsink location="${FN}" reserved-max-duration=3000000000000000000 reserved-moov-update-period=1000000000 max-size-time=900000000000 mp4mux=mp4mux name=mux&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #0000ff; background-color: transparent; border: 0px; font-weight: inherit; font-size: 10.5pt;"&gt;And also here's the video source input information:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #0000ff; background-color: transparent; border: 0px; font-weight: inherit; font-size: 10.5pt;"&gt;# v4l2-ctl --device=/dev/video2 --all&lt;BR /&gt;Driver Info (not using libv4l2):&lt;BR /&gt; Driver name : LXV4L2D_MZ0380&lt;BR /&gt; Card type : MZ0380:RAW 00.00 12abf5c4&lt;BR /&gt; Bus info : PCIe: PCI Bus 0000:01 00&lt;BR /&gt; Driver version: 6.32.0&lt;BR /&gt; Capabilities : 0x84221001&lt;BR /&gt; Video Capture&lt;BR /&gt; Video Capture Multiplanar&lt;BR /&gt; Audio&lt;BR /&gt; Streaming&lt;BR /&gt; Extended Pix Format&lt;BR /&gt; Device Capabilities&lt;BR /&gt; Device Caps : 0x04220001&lt;BR /&gt; Video Capture&lt;BR /&gt; Audio&lt;BR /&gt; Streaming&lt;BR /&gt; Extended Pix Format&lt;BR /&gt;Priority: 0&lt;BR /&gt;Video input : 4 (SDI INPUT(4): ok)&lt;BR /&gt;Audio input : 0 ()&lt;BR /&gt;Video Standard = 0x00001000&lt;BR /&gt; NTSC-M&lt;BR /&gt;Format Video Capture:&lt;BR /&gt; Width/Height : 1280/720&lt;BR /&gt; Pixel Format : 'YV12'&lt;BR /&gt; Field : None&lt;BR /&gt; Bytes per Line : 1280&lt;BR /&gt; Size Image : 1382400&lt;BR /&gt; Colorspace : Rec. 709&lt;BR /&gt; Transfer Function : Default&lt;BR /&gt; YCbCr Encoding : Default&lt;BR /&gt; Quantization : Default&lt;BR /&gt; Flags :&lt;BR /&gt;Crop Capability Video Capture:&lt;BR /&gt; Bounds : Left 0, Top 0, Width 1280, Height 720&lt;BR /&gt; Default : Left 0, Top 0, Width 1280, Height 720&lt;BR /&gt; Pixel Aspect: 1/1&lt;BR /&gt;Streaming Parameters Video Capture:&lt;BR /&gt; Capabilities : timeperframe&lt;BR /&gt; Frames per second: 60.000 (60000/1000)&lt;BR /&gt; Read buffers : 0&lt;BR /&gt; brightness (int) : min=0 max=255 step=1 default=128 val ue=128&lt;BR /&gt; contrast (int) : min=0 max=255 step=1 default=100 val ue=128&lt;BR /&gt; saturation (int) : min=0 max=255 step=1 default=128 val ue=128&lt;BR /&gt; hue (int) : min=0 max=255 step=1 default=128 val ue=128&lt;BR /&gt; auto_gain (int) : min=0 max=1 step=1 default=1 value=1&lt;BR /&gt; gain (int) : min=0 max=511 step=1 default=120 val ue=256&lt;BR /&gt; sharpness (int) : min=0 max=255 step=1 default=16 valu e=128&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2018 05:15:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Color-distortion-on-gstreamer-1-8-1-using-imx6Q-VPU-encoding/m-p/786595#M121874</guid>
      <dc:creator>rickyqiqi</dc:creator>
      <dc:date>2018-09-21T05:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Color distortion on gstreamer 1.8.1 using imx6Q VPU encoding</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Color-distortion-on-gstreamer-1-8-1-using-imx6Q-VPU-encoding/m-p/786596#M121875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;I don’t think that you need to do special for this, you just set the correct register for the capture yuv422, then enable the vpu to encode, then gstreamer can do this, because vpu just can handle yuv 420, so IPU can change this format automatically. However this link make an improvement in images:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/816416?commentID=816416#comment-816416" title="https://community.nxp.com/message/816416?commentID=816416#comment-816416"&gt;https://community.nxp.com/message/816416&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 16:08:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Color-distortion-on-gstreamer-1-8-1-using-imx6Q-VPU-encoding/m-p/786596#M121875</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2018-09-25T16:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Color distortion on gstreamer 1.8.1 using imx6Q VPU encoding</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Color-distortion-on-gstreamer-1-8-1-using-imx6Q-VPU-encoding/m-p/786597#M121876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for you kindly reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm confused with your mentioned yuv422. The video format of my v4l2 source is YV12. As I know it's different with yuv422, does it mean I should use a camera with yuv422 format, which can solve this color distortion problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 03:11:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Color-distortion-on-gstreamer-1-8-1-using-imx6Q-VPU-encoding/m-p/786597#M121876</guid>
      <dc:creator>rickyqiqi</dc:creator>
      <dc:date>2018-09-26T03:11:34Z</dc:date>
    </item>
  </channel>
</rss>

