<?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>topic Re: How connect playbin + deinterlace  + DMA .  Processor overloading  in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-connect-playbin-deinterlace-DMA-Processor-overloading/m-p/857835#M131068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;You mean i must use playenegine&amp;nbsp;from&amp;nbsp;libplayengine-1.0.so ( imx-gst1.0-plugin ) or i must &amp;nbsp;replace that files (&amp;nbsp;libgstimxvideoconvert.so ,&amp;nbsp;libgstvpu.so ) form imx-gst1.0-plugin? I must change above Gstreamer&amp;nbsp;pipilene in that case?&lt;/P&gt;&lt;P&gt;Or after i replaced that file my above pipeline will work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Mar 2019 10:44:27 GMT</pubDate>
    <dc:creator>ignat</dc:creator>
    <dc:date>2019-03-01T10:44:27Z</dc:date>
    <item>
      <title>How connect playbin + deinterlace  + DMA .  Processor overloading</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-connect-playbin-deinterlace-DMA-Processor-overloading/m-p/857833#M131066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I have big trouble with interaliasing in gstreamer pipeline&lt;/P&gt;&lt;P&gt;That pipeline&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;gst-launch-1.0 playbin&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;flags=0x00000207&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;uri=dvd://&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;video-sink="imxeglvivsink"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;create overload of proccessor&amp;nbsp;IMX because that code&amp;nbsp;constantly copy data with help CPU &amp;nbsp;from interaliasing buffers in&amp;nbsp;gstreamer-imx-master/src/eglvivsink/&lt;STRONG&gt;gles2_renderer.c&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;GST_LOG("copying pixels into VIV direct texture buffer");&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If i launch that pipeline my cpu&amp;nbsp;load very low (5-10 %) load because&amp;nbsp;i&amp;nbsp;use DMA but frames is not deinterlaced:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #008000;"&gt;gst-launch-1.0 playbin&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;flags=0x00000007&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;uri=dvd://&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;video-sink="imxeglvivsink"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Quesiton : how enable DMA with deinterlace in gstreamer?&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;P&gt;I am repeating&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;gles2_renderer.c&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;piece code:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;if (is_phys_buf)&lt;BR /&gt; {&lt;BR /&gt; GLvoid *virt_addr;&lt;BR /&gt; GLuint phys_addr;&lt;/P&gt;&lt;P&gt;phys_addr = (GLuint)(phys_mem_meta-&amp;gt;phys_addr);&lt;/P&gt;&lt;P&gt;/* Safeguard to catch data loss if in any future i.MX version the types do not match */&lt;BR /&gt; g_assert(((gst_imx_phys_addr_t)(phys_addr)) == phys_mem_meta-&amp;gt;phys_addr);&lt;/P&gt;&lt;P&gt;GST_LOG("mapping physical address %" GST_IMX_PHYS_ADDR_FORMAT " of video frame in buffer %p into VIV texture", phys_mem_meta-&amp;gt;phys_addr, (gpointer)buffer);&lt;/P&gt;&lt;P&gt;gst_buffer_map(buffer, &amp;amp;map_info, GST_MAP_READ);&lt;BR /&gt; virt_addr = map_info.data;&lt;/P&gt;&lt;P&gt;/* Just set to make sure the == NULL check above is false */&lt;BR /&gt; renderer-&amp;gt;viv_planes[0] = virt_addr;&lt;/P&gt;&lt;P&gt;glTexDirectVIVMap(&lt;BR /&gt; GL_TEXTURE_2D,&lt;BR /&gt; total_w, total_h,&lt;BR /&gt; gl_format,&lt;BR /&gt; (GLvoid **)(&amp;amp;virt_addr), &amp;amp;phys_addr&lt;BR /&gt; );&lt;/P&gt;&lt;P&gt;gst_buffer_unmap(buffer, &amp;amp;map_info);&lt;BR /&gt; GST_LOG("done showing frame in buffer %p with virtual address %p physical address %" GST_IMX_PHYS_ADDR_FORMAT, (gpointer)buffer, virt_addr, phys_mem_meta-&amp;gt;phys_addr);&lt;/P&gt;&lt;P&gt;if (!gst_imx_egl_viv_sink_gles2_renderer_check_gl_error("render", "glTexDirectVIVMap"))&lt;BR /&gt; return FALSE;&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; glTexDirectVIV(&lt;BR /&gt; GL_TEXTURE_2D,&lt;BR /&gt; total_w, total_h,&lt;BR /&gt; gl_format,&lt;BR /&gt; (GLvoid **) &amp;amp;(renderer-&amp;gt;viv_planes)&lt;BR /&gt; );&lt;BR /&gt; if (!gst_imx_egl_viv_sink_gles2_renderer_check_gl_error("render", "glTexDirectVIV"))&lt;BR /&gt; return FALSE;&lt;/P&gt;&lt;P&gt;GST_LOG("copying pixels into VIV direct texture buffer");&lt;/P&gt;&lt;P&gt;gst_buffer_map(buffer, &amp;amp;map_info, GST_MAP_READ);&lt;BR /&gt; switch (fmt)&lt;BR /&gt; {&lt;BR /&gt; case GST_VIDEO_FORMAT_I420:&lt;BR /&gt; case GST_VIDEO_FORMAT_YV12:&lt;BR /&gt; memcpy(renderer-&amp;gt;viv_planes[0], map_info.data + offset[0], stride[0] * total_h);&lt;BR /&gt; memcpy(renderer-&amp;gt;viv_planes[1], map_info.data + offset[1], stride[1] * total_h / 2);&lt;BR /&gt; memcpy(renderer-&amp;gt;viv_planes[2], map_info.data + offset[2], stride[2] * total_h / 2);&lt;BR /&gt; break;&lt;BR /&gt; case GST_VIDEO_FORMAT_NV12:&lt;BR /&gt; case GST_VIDEO_FORMAT_NV21:&lt;BR /&gt; memcpy(renderer-&amp;gt;viv_planes[0], map_info.data + offset[0], stride[0] * total_h);&lt;BR /&gt; memcpy(renderer-&amp;gt;viv_planes[1], map_info.data + offset[1], stride[1] * total_h / 2);&lt;BR /&gt; break;&lt;BR /&gt; default:&lt;BR /&gt; memcpy(renderer-&amp;gt;viv_planes[0], map_info.data, stride[0] * total_h);&lt;BR /&gt; }&lt;BR /&gt; gst_buffer_unmap(buffer, &amp;amp;map_info);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2019 12:24:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-connect-playbin-deinterlace-DMA-Processor-overloading/m-p/857833#M131066</guid>
      <dc:creator>ignat</dc:creator>
      <dc:date>2019-02-28T12:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: How connect playbin + deinterlace  + DMA .  Processor overloading</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-connect-playbin-deinterlace-DMA-Processor-overloading/m-p/857834#M131067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ignat &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can open issue on gstreamer-imx github page &lt;BR /&gt;&lt;A class="link-titled" href="https://github.com/Freescale/gstreamer-imx/issues" title="https://github.com/Freescale/gstreamer-imx/issues"&gt;Issues · Freescale/gstreamer-imx · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or alternatively try nxp gstreamer plugins (imx-gst1.0-plugin package)&lt;/P&gt;&lt;P&gt;described in Linux Guide included in documentation on&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-6series-i.mx-7series-software-and-development-tool-resources:IMX_SW" title="https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-6series-i.mx-7series-software-and-development-tool-resources:IMX_SW"&gt;i.MX Software | NXP&lt;/A&gt;&amp;nbsp;&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>Thu, 28 Feb 2019 23:32:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-connect-playbin-deinterlace-DMA-Processor-overloading/m-p/857834#M131067</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-02-28T23:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: How connect playbin + deinterlace  + DMA .  Processor overloading</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-connect-playbin-deinterlace-DMA-Processor-overloading/m-p/857835#M131068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;You mean i must use playenegine&amp;nbsp;from&amp;nbsp;libplayengine-1.0.so ( imx-gst1.0-plugin ) or i must &amp;nbsp;replace that files (&amp;nbsp;libgstimxvideoconvert.so ,&amp;nbsp;libgstvpu.so ) form imx-gst1.0-plugin? I must change above Gstreamer&amp;nbsp;pipilene in that case?&lt;/P&gt;&lt;P&gt;Or after i replaced that file my above pipeline will work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 10:44:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-connect-playbin-deinterlace-DMA-Processor-overloading/m-p/857835#M131068</guid>
      <dc:creator>ignat</dc:creator>
      <dc:date>2019-03-01T10:44:27Z</dc:date>
    </item>
  </channel>
</rss>

