<?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: Trouble slow VPU encoding while streaming in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Trouble-slow-VPU-encoding-while-streaming/m-p/309035#M40036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Wlodek_D,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've Moved it over :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 May 2014 13:42:51 GMT</pubDate>
    <dc:creator>smwsmart-e</dc:creator>
    <dc:date>2014-05-07T13:42:51Z</dc:date>
    <item>
      <title>Trouble slow VPU encoding while streaming</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Trouble-slow-VPU-encoding-while-streaming/m-p/309033#M40034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two sabresd boards of which:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;One is set up as a sender using a gst-launch pipeline to encode a file which is 1080p30 into h.264 placed in RAM and send it out using RTP&lt;/LI&gt;&lt;LI&gt;Second is set up to receive stream, decode and play to HDMI&lt;/LI&gt;&lt;/UL&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the 3.10.17-imx kernel compiled from Freescale's repository and have set it so that the VPU is using the higher clock rate of 352MHz. The output that I'm getting is good quality but a little slow (max framerate is 23-24fps). I believe it to be the encoding side that is slowing everything down due to the same results when sending to computer After putting a more verbose debug output on sender for gstreamer (--gst-debug=3), I've found the following occurs I believe every buffer:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;INFO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vpuenc vpuenc.c:1213:gst_vpuenc_chain: Need memcpy input buffer, performance maybe drop&lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone let me know why this is occurring and how badly it effects performance?&lt;/P&gt;&lt;P&gt;I've gone into the sourcecode for the vpu element for gstreamer and found that the following is what causes the INFO output:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((IS_DMABLE_BUFFER (buffer)) &amp;amp;&amp;amp; (vpuenc-&amp;gt;force_copy == FALSE)) {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; paddr = DMABLE_BUFFER_PHY_ADDR (buffer);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vaddr = GST_BUFFER_DATA (buffer);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gint size = vpuenc-&amp;gt;ispec.pad_frame_size + vpuenc-&amp;gt;ispec.buffer_align - 1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GST_INFO ("Need memcpy input buffer, performance maybe drop");&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ((frameblock =&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vpuenc_core_mem_alloc_dma_buffer (vpuenc-&amp;gt;ispec.pad_frame_size)) == NULL) {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GST_ERROR ("Can not create dmaable buffer for input copy");&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; goto bail;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; paddr = (void *) Align (frameblock-&amp;gt;paddr, vpuenc-&amp;gt;ispec.buffer_align);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vaddr = (void *) Align (frameblock-&amp;gt;vaddr, vpuenc-&amp;gt;ispec.buffer_align);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gst_vpuenc_copy_frame (vpuenc, buffer, vaddr);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/EM&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone has any clue as to what causes this issue or how to fix it I'd be very grateful! The two pipelines that I'm using are attached for viewing.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Stuart Weaver&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336697"&gt;rtp_stream_send.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336697"&gt;rtp_stream_receive.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 15:37:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Trouble-slow-VPU-encoding-while-streaming/m-p/309033#M40034</guid>
      <dc:creator>smwsmart-e</dc:creator>
      <dc:date>2014-05-02T15:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble slow VPU encoding while streaming</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Trouble-slow-VPU-encoding-while-streaming/m-p/309034#M40035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your post, however please consider moving it to the right community place (e.g.&lt;A _jive_internal="true" class="jivecontainerTT-hover-container jive-link-community-small" data-containerid="1" data-containertype="14" data-objectid="2004" data-objecttype="14" href="https://community.nxp.com/community/imx"&gt;i.MX Community&lt;/A&gt; ) to get it visible for active members.&lt;/P&gt;&lt;P&gt;For details please see general advice &lt;A _jive_internal="true" data-containerid="2001" data-containertype="14" data-objectid="99909" data-objecttype="102" href="https://community.nxp.com/docs/DOC-99909"&gt;Where to post a Discussion?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for using Freescale Community.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 08:07:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Trouble-slow-VPU-encoding-while-streaming/m-p/309034#M40035</guid>
      <dc:creator>Wlodek_D_</dc:creator>
      <dc:date>2014-05-05T08:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble slow VPU encoding while streaming</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Trouble-slow-VPU-encoding-while-streaming/m-p/309035#M40036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Wlodek_D,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've Moved it over :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 13:42:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Trouble-slow-VPU-encoding-while-streaming/m-p/309035#M40036</guid>
      <dc:creator>smwsmart-e</dc:creator>
      <dc:date>2014-05-07T13:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble slow VPU encoding while streaming</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Trouble-slow-VPU-encoding-while-streaming/m-p/309036#M40037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you mean the performance is good if you don't use -gst-debug=3, right? did you test encoding the RTP stream without decoding? how about the performance?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 10:18:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Trouble-slow-VPU-encoding-while-streaming/m-p/309036#M40037</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2014-06-20T10:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble slow VPU encoding while streaming</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Trouble-slow-VPU-encoding-while-streaming/m-p/309037#M40038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Smwsmart&lt;/P&gt;&lt;P&gt;Had your issue got resolved? If yes, we are going to close the discussion in 3 days. If you still need help, please feel free to reply with an update to this discussion.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yixing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 05:54:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Trouble-slow-VPU-encoding-while-streaming/m-p/309037#M40038</guid>
      <dc:creator>YixingKong</dc:creator>
      <dc:date>2014-06-26T05:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble slow VPU encoding while streaming</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Trouble-slow-VPU-encoding-while-streaming/m-p/309038#M40039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Smwsmart&lt;/P&gt;&lt;P&gt;This discussion is closed since no activity. If you still need help, please feel free to reply with an update to this discussion, or create another discussion.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yixing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 08:20:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Trouble-slow-VPU-encoding-while-streaming/m-p/309038#M40039</guid>
      <dc:creator>YixingKong</dc:creator>
      <dc:date>2014-07-03T08:20:03Z</dc:date>
    </item>
  </channel>
</rss>

