<?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: VPU framerate iMX53</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/VPU-framerate-iMX53/m-p/387983#M56340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/joanxie"&gt;joanxie&lt;/A&gt;, it explains why this parameter does not seem to change anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After being encoded by VPU, we get the encoded bitstream and put it into a pipe to ffmpeg, so that the stream is included in an AVI container.&lt;/P&gt;&lt;P&gt;Thus you suggests that I should find a parameter in FFMPEG to do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[I will try again, but I remember that I tested something similar and players on PC complained that container and stream did not have the same frame rate]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Mar 2015 07:40:37 GMT</pubDate>
    <dc:creator>flto</dc:creator>
    <dc:date>2015-03-31T07:40:37Z</dc:date>
    <item>
      <title>VPU framerate iMX53</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VPU-framerate-iMX53/m-p/387981#M56338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I work on an quite old project made with iMX53.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;It uses linux-2.6-imx-rel_imx_2.6.35_11.09.01 kernel from Freescale.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I have a problem with frame rate in VPU.&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;SPAN style="color: #000000;"&gt;[Full context]&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Basically, this program captures a video stream on CSI0 video input, add some annotations (texts, images...) and the result is both displayed in live and saved in a file thanks to VPU encoding.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;The internals use cairo library (for texts and images), vpu library (for video encoding) and ioctl calls to IPU driver (for color space changes / merging memories / display).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;In essence, the programs loops over these operations:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Waiting for a new frame at input&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Merging an overlay (prepared in another thread, and merged with IPU)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Sending frame to VPU (and waiting for VPU to be ready again)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Displaying&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Since stream is small and manipulated with pointers passed to IPU or VPU accordingly, the operations are very quick.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;The recorded videos are "sped up", that is when we record 10 seconds, the replay on PC lasts between 6 et 7 seconds with all images displayed less time than expected. (Hope I am sufficiently clear)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thus I would like to change the frame rate recorded by the VPU.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;When I change frameRateInfo parameter from EncOpenParam struct sent to&amp;nbsp; vpu_EncOpen, there is no change.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Whether I set 25 (current), 10 or 100, the saved video has the same speed. (6 or 7 seconds for 10 seconds recording ; ~20s for ~30s recording)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Is there other parameters to set in order to change frame rate ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I attached what is set in EncOpenParam struct, when passed to vpu_EncOpen.&lt;/SPAN&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-335933"&gt;vpu_EncOpen_params.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 14:06:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VPU-framerate-iMX53/m-p/387981#M56338</guid>
      <dc:creator>flto</dc:creator>
      <dc:date>2015-03-16T14:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: VPU framerate iMX53</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VPU-framerate-iMX53/m-p/387982#M56339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;customer can set own frame rate in EncOpenParam, this frame rate just a reference value, most codec doesn't have frame rate parameter, for encoding, mostly we use time-stamp, frame rate is just a reference value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2015 22:37:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VPU-framerate-iMX53/m-p/387982#M56339</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2015-03-30T22:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: VPU framerate iMX53</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VPU-framerate-iMX53/m-p/387983#M56340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/joanxie"&gt;joanxie&lt;/A&gt;, it explains why this parameter does not seem to change anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After being encoded by VPU, we get the encoded bitstream and put it into a pipe to ffmpeg, so that the stream is included in an AVI container.&lt;/P&gt;&lt;P&gt;Thus you suggests that I should find a parameter in FFMPEG to do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[I will try again, but I remember that I tested something similar and players on PC complained that container and stream did not have the same frame rate]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 07:40:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VPU-framerate-iMX53/m-p/387983#M56340</guid>
      <dc:creator>flto</dc:creator>
      <dc:date>2015-03-31T07:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: VPU framerate iMX53</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VPU-framerate-iMX53/m-p/387984#M56341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thus you suggests that I should find a parameter in FFMPEG to do that ?&lt;/P&gt;&lt;P&gt;&amp;gt; to do what? framerate? if you decoding , you can set the framerate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 02:33:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VPU-framerate-iMX53/m-p/387984#M56341</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2017-12-19T02:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: VPU framerate iMX53</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/VPU-framerate-iMX53/m-p/387985#M56342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The question was posted ~1000 days (~2 years ¾) ago.&lt;BR /&gt;I did not remember how it was solved, probably by tuning ffmpeg parameters instead of VPU ones.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 08:07:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/VPU-framerate-iMX53/m-p/387985#M56342</guid>
      <dc:creator>flto</dc:creator>
      <dc:date>2017-12-19T08:07:45Z</dc:date>
    </item>
  </channel>
</rss>

