<?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: vpuenc framerate data missing (vui parameters, timing_info) in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/vpuenc-framerate-data-missing-vui-parameters-timing-info/m-p/310478#M40479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Branched to internal group.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Apr 2014 02:07:21 GMT</pubDate>
    <dc:creator>imxcommunitysco</dc:creator>
    <dc:date>2014-04-04T02:07:21Z</dc:date>
    <item>
      <title>vpuenc framerate data missing (vui parameters, timing_info)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/vpuenc-framerate-data-missing-vui-parameters-timing-info/m-p/310477#M40478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the VPU on the imx6 to generate H.264-encoded video that is ultimately displayed on digital televisions. The H.264 stream is packaged into an MPEG transport stream and then udp-streamed to the destination. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Display on many TV's is jerky and ugly. I believe this is because the H.264 stream lacks framerate data. Specifically, in the H.264 SPS (sequence parameter set) packet, the vui_parameters_present_flag is always false. Videos which display properly always have this flag set, and correct values in the timing_info structure (timing_info_present_flag, num_units_in_tick, time_scale). It appears that this data is not being generated properly by the VPU (or vpuenc gstreamer plugin). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My pipeline uses an appsrc to produce frames instead of the videotestsrc below, but is otherwise identical to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gst-launch&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; \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; videotestsrc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ! video/x-raw-rgb,bpp=16,depth=16,endianness=1234,red_mask=63488,green_mask=2016,blue_mask=31,width=1280,height=720,framerate=30/1 \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ! mfw_ipucsc \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ! vpuenc codec=6 seqheader-method=3 framerate-nu=30000 framerate-de=1000 \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ! mpegtsmux \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ! udpsink host=[host-ip] port=7890&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the version output for my imx/fsl gstreamer plugins: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;IPU_CSC_CORE_LIBRARY_VERSION_INFOR_01.00.&lt;P&gt;&lt;/P&gt;&lt;P&gt;MFW_GST_IPU_CSC_PLUGIN 3.0.7 build on Jan&amp;nbsp; 8 2014 15:20:51.&lt;/P&gt;&lt;P&gt;[INFO] Product Info: i.MX6Q/D/S&lt;/P&gt;&lt;P&gt;vpuenc versions :smileyhappy:&lt;/P&gt;&lt;P&gt;plugin: 3.0.7&lt;/P&gt;&lt;P&gt;wrapper: 1.0.35(VPUWRAPPER_ARM_LINUX Build on Jan&amp;nbsp; 8 2014 14:33:14)&lt;/P&gt;&lt;P&gt;vpulib: 5.4.12&lt;/P&gt;&lt;P&gt;firmware: 2.1.9.36350&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif;"&gt;I'm using Yocto Poky Dylan 9.0.0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 01:08:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/vpuenc-framerate-data-missing-vui-parameters-timing-info/m-p/310477#M40478</guid>
      <dc:creator>josepholivier</dc:creator>
      <dc:date>2014-04-04T01:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: vpuenc framerate data missing (vui parameters, timing_info)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/vpuenc-framerate-data-missing-vui-parameters-timing-info/m-p/310478#M40479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Branched to internal group.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 02:07:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/vpuenc-framerate-data-missing-vui-parameters-timing-info/m-p/310478#M40479</guid>
      <dc:creator>imxcommunitysco</dc:creator>
      <dc:date>2014-04-04T02:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: vpuenc framerate data missing (vui parameters, timing_info)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/vpuenc-framerate-data-missing-vui-parameters-timing-info/m-p/310479#M40480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="j-post-avatar" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN class="j-status-levels" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;IMG alt="Employee" class="jiveImage" src="https://community.nxp.com/6.0.2.0/resources/images/status/FS_EMP_40x18.png" style="font-weight: inherit; font-style: inherit; font-family: inherit;" title="Employee" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author" style="font-weight: inherit; font-style: inherit; font-size: 0.9em; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;A href="https://community.nxp.com/people/AdrianAlonso"&gt;AdrianAlonso&lt;/A&gt; &lt;/STRONG&gt;Apr 8, 2014 3:06 PM &lt;SPAN class="font-color-meta-light j-thread-replyto" style="padding: 0 0 0 3px; font-weight: inherit; font-style: inherit; font-family: inherit; color: #a9a9a9;"&gt;(&lt;A _jive_internal="true" class="font-color-meta-light localScroll" href="https://community.nxp.com/message/394114#393165" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #a9a9a9;" title="Go to message"&gt;in response to imxcommunityscout&lt;/A&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Tested iMX6 YoctoProject rootfs are based on "dora" release branch;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Latest Dylan compatibility is a work on progress which will be available at&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;the same time Dylan reach a stable state release by end on April 2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Can you build and test based on "dora" branch release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Regards&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 22:11:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/vpuenc-framerate-data-missing-vui-parameters-timing-info/m-p/310479#M40480</guid>
      <dc:creator>karina_valencia</dc:creator>
      <dc:date>2014-04-08T22:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: vpuenc framerate data missing (vui parameters, timing_info)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/vpuenc-framerate-data-missing-vui-parameters-timing-info/m-p/310480#M40481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have built and tested on my hardware using Dora, still with no VUI parameter data. My version number output is now: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IPU_CSC_CORE_LIBRARY_VERSION_INFOR_01.00.&lt;/P&gt;&lt;P&gt;MFW_GST_IPU_CSC_PLUGIN 3.0.9 build on Apr 10 2014 15:46:09.&lt;/P&gt;&lt;P&gt;[ 2880.479949] No such IOCTL, cmd is 22032&lt;/P&gt;&lt;P&gt;[ 2880.483981] No such IOCTL, cmd is 22032&lt;/P&gt;&lt;P&gt;Setting pipeline to PAUSED ...&lt;/P&gt;&lt;P&gt;[INFO] Product Info: i.MX6Q/D/S&lt;/P&gt;&lt;P&gt;vpuenc versions :smileyhappy:&lt;/P&gt;&lt;P&gt;&amp;nbsp; plugin: 3.0.9&lt;/P&gt;&lt;P&gt;&amp;nbsp; wrapper: 1.0.40(VPUWRAPPER_ARM_LINUX Build on Apr 10 2014 15:35:17)&lt;/P&gt;&lt;P&gt;&amp;nbsp; vpulib: 5.4.18&lt;/P&gt;&lt;P&gt;&amp;nbsp; firmware: 2.3.10.40778&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, we've improved our vpuenc plugin, wrapper, vpulib and firmware version. Looking at the code, the VPUENC gstreamer plugin receives the SPS and PPS data directly from the VPU encoder hardware, and this data does not include VUI parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is also a message regarding IOCTLs, which stems from my using an older Linux kernel than the Dora release. This was done to test faster, since it's unlikely that the kernel version directly affects action at the H.264 SPS VUI data level. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have slightly modified my gstreamer launch script and pipeline like so: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOST=$1&lt;/P&gt;&lt;P&gt;PORT=$2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if [[ -z $HOST ]]; then&lt;/P&gt;&lt;P&gt;&amp;nbsp; echo No host provided&lt;/P&gt;&lt;P&gt;&amp;nbsp; echo Usage: \n\tgstreamer-pipelines.sh HOST PORT&lt;/P&gt;&lt;P&gt;&amp;nbsp; exit 1&lt;/P&gt;&lt;P&gt;fi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if [[ -z $PORT ]]; then&lt;/P&gt;&lt;P&gt;&amp;nbsp; echo No port provided&lt;/P&gt;&lt;P&gt;&amp;nbsp; echo Usage: \n\tgstreamer-pipelines.sh HOST PORT&lt;/P&gt;&lt;P&gt;&amp;nbsp; exit 1&lt;/P&gt;&lt;P&gt;fi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gst-launch-0.10 -v \&lt;/P&gt;&lt;P&gt;&amp;nbsp; videotestsrc pattern="smpte" horizontal-speed="1" !\&lt;/P&gt;&lt;P&gt;&amp;nbsp; video/x-raw-rgb,bpp=16,depth=16,endianness=1234,red_mask=63488,green_mask=2016,blue_mask=31,width=1280,height=720,framerate=30/1 !\&lt;/P&gt;&lt;P&gt;&amp;nbsp; queue !\&lt;/P&gt;&lt;P&gt;&amp;nbsp; mfw_ipucsc !\&lt;/P&gt;&lt;P&gt;&amp;nbsp; queue !\&lt;/P&gt;&lt;P&gt;&amp;nbsp; vpuenc codec=avc bitrate=4000000 seqheader-method=3 framerate-nu=30000 framerate-de=1000 !\&lt;/P&gt;&lt;P&gt;&amp;nbsp; queue !\&lt;/P&gt;&lt;P&gt;&amp;nbsp; mpegtsmux !\&lt;/P&gt;&lt;P&gt;&amp;nbsp; udpsink host=$HOST port=$PORT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 17:58:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/vpuenc-framerate-data-missing-vui-parameters-timing-info/m-p/310480#M40481</guid>
      <dc:creator>josepholivier</dc:creator>
      <dc:date>2014-04-11T17:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: vpuenc framerate data missing (vui parameters, timing_info)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/vpuenc-framerate-data-missing-vui-parameters-timing-info/m-p/310481#M40482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One last detail can you tell me which iMX6 target board are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 19:48:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/vpuenc-framerate-data-missing-vui-parameters-timing-info/m-p/310481#M40482</guid>
      <dc:creator>adrian_alonso</dc:creator>
      <dc:date>2014-04-25T19:48:48Z</dc:date>
    </item>
  </channel>
</rss>

