<?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: Gstreamer h264 decoding latency on iMX6 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264440#M27236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On ltib you need to run ./ltib -m prep -p gst-fsl-plugins to get the source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The source would be at &amp;lt;ltib directory&amp;gt;/rpm/BUILD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To build you need to run ./ltib -m scbuild then ./litb -m scdeploy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Feb 2015 15:25:14 GMT</pubDate>
    <dc:creator>ChucoChe</dc:creator>
    <dc:date>2015-02-10T15:25:14Z</dc:date>
    <item>
      <title>Gstreamer h264 decoding latency on iMX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264431#M27227</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 am using an iMX6 quad to decode and display a live h264 encoded video feed using gstreamer.&amp;nbsp; I am using the following pipeline:&lt;/P&gt;&lt;P&gt;appsrc block=true is-live=true !&lt;/P&gt;&lt;P&gt;h264parse !&lt;/P&gt;&lt;P&gt;queue max-size-time=0 max-size-buffers=0 !&lt;/P&gt;&lt;P&gt;vpudec low-latency=true frame-plus=1 framedrop=false !&lt;/P&gt;&lt;P&gt;mfw_v4lsink device=/dev/video17 sync=false async=false&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;However I have found that there is a 12 frame delay between pushing a buffer into the appsrc, and it being displayed.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This may be connected to the following message that mfw_v4lsink is printing:&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;V4L_SINK: Actually buffer status:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hardware buffer : 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; software buffer : 0&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions about how to reduce this delay?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a test application which demonstrates the problem.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joel&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-336597"&gt;gsttest.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 18:28:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264431#M27227</guid>
      <dc:creator>joelcolledge</dc:creator>
      <dc:date>2013-02-19T18:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Gstreamer h264 decoding latency on iMX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264432#M27228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried the same pipeline using gst-launch? Do you see the same delay?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 21:26:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264432#M27228</guid>
      <dc:creator>LeonardoSandova</dc:creator>
      <dc:date>2013-02-19T21:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Gstreamer h264 decoding latency on iMX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264433#M27229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't believe I can use the same pipeline with gst-launch because of the appsrc, however replacing it with fdsrc and piping data to the corresponding file descriptor gives exactly the same results.&amp;nbsp; That is, the first frame is only displayed after 12 frames have been passed into the pipeline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using playbin2 (with fd uri protocol) has a similar effect, only with some extra issues that seem to be due to buffering.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 12:20:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264433#M27229</guid>
      <dc:creator>joelcolledge</dc:creator>
      <dc:date>2013-02-21T12:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Gstreamer h264 decoding latency on iMX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264434#M27230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been able to reduce this to a 4 frame delay by disabling reordered frames, this is done by changing vpudec.c:1270 to&lt;/P&gt;&lt;P&gt;vpudec-&amp;gt;context.openparam.nReorderEnable = 0&lt;/P&gt;&lt;P&gt;This works because my stream contains no B-frames.&amp;nbsp; It results in a significant performance improvement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would still be interested to hear from anyone who has ideas about how to reduce this further.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 15:07:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264434#M27230</guid>
      <dc:creator>joelcolledge</dc:creator>
      <dc:date>2013-02-21T15:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Gstreamer h264 decoding latency on iMX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264435#M27231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just for reference, I'm adding here that setting &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;vpudec-&amp;gt;context.openparam.nReorderEnable = 0&lt;/SPAN&gt; reduces the delay to 2 frames. When there are no B frames and no reorder is required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 17:52:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264435#M27231</guid>
      <dc:creator>ChucoChe</dc:creator>
      <dc:date>2013-04-10T17:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Gstreamer h264 decoding latency on iMX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264436#M27232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joel,&lt;/P&gt;&lt;P&gt;Have you tried to use the appsrc timestamp instead of the system clock?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_object_set(appsrc,"do-timestamp",TRUE, NULL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and comment out this line:&lt;/P&gt;&lt;P&gt;//GST_BUFFER_TIMESTAMP(buffer) = timestamp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 11:28:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264436#M27232</guid>
      <dc:creator>Tarek</dc:creator>
      <dc:date>2013-05-14T11:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Gstreamer h264 decoding latency on iMX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264437#M27233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mention making changes to vpudec.c to reduce latency. I have built the system using ltib, and can run gstreamer fine, but I don't see vpudec source anywhere, and I can't find it online. Where did you get it from?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 16:13:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264437#M27233</guid>
      <dc:creator>brettkuehner</dc:creator>
      <dc:date>2013-10-28T16:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Gstreamer h264 decoding latency on iMX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264438#M27234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also try to reduce the latency of the video playback pipeline. here: &lt;A href="https://community.nxp.com/message/376136"&gt;Re: RTSP gstreamer and vpudec&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I currently no ltib environment installed and I only want to find out if we can reach our latency requirements.&lt;/P&gt;&lt;P&gt;Can you send me the generated .so file (generated out of vpudec.c)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 10:46:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264438#M27234</guid>
      <dc:creator>holgerweber</dc:creator>
      <dc:date>2014-01-28T10:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Gstreamer h264 decoding latency on iMX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264439#M27235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Freescale,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using following pipeline to encode and stream the h264 elementary video. on the other hand vlc media player (windows) is been used to decode the incoming video (sdp file)&lt;/P&gt;&lt;P&gt;the video is playing properly, but the latency is more than&amp;nbsp; 2 seconds, could you please help me how to reduce latency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI&lt;/P&gt;&lt;P&gt;HW : MCIMX6Q-SDP SW : Poky (Yocto Project Reference Distro) 1.5.1 \n \l kernel :3.0.35-4.1.0+yocto+gbdde708&lt;/P&gt;&lt;P&gt;pipelines used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gst-launch-0.10 -vv mfw_v4lsrc ! video/x-raw-yuv, framerate=30/1, width=640, height=480 !&lt;/P&gt;&lt;P&gt;&amp;nbsp; vpuenc codec=6&amp;nbsp; ! rtph264pay ! udpsink host=&amp;lt;ipaddr&amp;gt; port=xxx sync=false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Nagendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 12:24:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264439#M27235</guid>
      <dc:creator>nagendrasarma</dc:creator>
      <dc:date>2015-02-10T12:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Gstreamer h264 decoding latency on iMX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264440#M27236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On ltib you need to run ./ltib -m prep -p gst-fsl-plugins to get the source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The source would be at &amp;lt;ltib directory&amp;gt;/rpm/BUILD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To build you need to run ./ltib -m scbuild then ./litb -m scdeploy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 15:25:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264440#M27236</guid>
      <dc:creator>ChucoChe</dc:creator>
      <dc:date>2015-02-10T15:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Gstreamer h264 decoding latency on iMX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264441#M27237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any updates ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 05:08:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264441#M27237</guid>
      <dc:creator>nagendrasarma</dc:creator>
      <dc:date>2015-02-12T05:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Gstreamer h264 decoding latency on iMX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264442#M27238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure, that the encoding is the problem? Which buffer size do you use in VLC (advanced settings)? The default buffer size is 2000ms in vlc (as I know).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 08:13:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gstreamer-h264-decoding-latency-on-iMX6/m-p/264442#M27238</guid>
      <dc:creator>holgerweber</dc:creator>
      <dc:date>2015-02-12T08:13:51Z</dc:date>
    </item>
  </channel>
</rss>

