<?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: imx53 latency with h264 and udpsrc in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx53-latency-with-h264-and-udpsrc/m-p/310896#M40586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;STRONG style="font-size: 13px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;A href="https://community.nxp.com/people/tomrossano"&gt;tomrossano&lt;/A&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; could u tell me how to modify the code?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;this is my sdp file:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;v=0&lt;/P&gt;&lt;P&gt;o=- 0 0 IN IP4 127.0.0.1&lt;/P&gt;&lt;P&gt;s=No Title&lt;/P&gt;&lt;P&gt;c=IN IP4 224.124.0.1/5&lt;/P&gt;&lt;P&gt;t=0 0&lt;/P&gt;&lt;P&gt;a=tool:libavformat 56.30.100&lt;/P&gt;&lt;P&gt;m=video 8000 RTP/AVP 96&lt;/P&gt;&lt;P&gt;b=AS:798&lt;/P&gt;&lt;P&gt;a=rtpmap:96 H264/90000&lt;/P&gt;&lt;P&gt;a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z2QAIKzZQEAN/qEAAAMAAQAAAwAyjxgxlg==,aOvssiw=; profile-level-id=640020&lt;/P&gt;&lt;P&gt;m=audio 8002 RTP/AVP 97&lt;/P&gt;&lt;P&gt;b=AS:64&lt;/P&gt;&lt;P&gt;a=rtpmap:97 MPEG4-GENERIC/44100/2&lt;/P&gt;&lt;P&gt;a=fmtp:97 profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3; config=121056E500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use "gst-launch-0.10 playbin2 uri=file://`pwd`/test1.sdp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the video output is very latency！&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WARNING: from element /GstPlayBin2:playbin20/GstPlaySink:playsink0/GstBin:vbin/GstAutoVideoSink:videosink/MFW_GST_V4LSINK_INFO_T:videosink-actual-sink-mfw_v4l: A lot of buffers are being dropped.&lt;/P&gt;&lt;P&gt;Additional debug info:&lt;/P&gt;&lt;P&gt;/mnt/yocto/bin/fsl-release-bsp/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gstreamer/0.10.36-r3/gstreamer-0.10.36/libs/gst/base/gstbasesink.c(2875): gst_base_sink_is_too_late (): /GstPlayBin2:playbin20/GstPlaySink:playsink0/GstBin:vbin/GstAutoVideoSink:videosink/MFW_GST_V4LSINK_INFO_T:videosink-actual-sink-mfw_v4l:&lt;/P&gt;&lt;P&gt;There may be a timestamping problem, or this computer is too slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 May 2015 02:23:06 GMT</pubDate>
    <dc:creator>xswyzao</dc:creator>
    <dc:date>2015-05-22T02:23:06Z</dc:date>
    <item>
      <title>imx53 latency with h264 and udpsrc</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx53-latency-with-h264-and-udpsrc/m-p/310891#M40581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am receiving a UDP h264 stream from a device encoding its screen and decoding it with gstreamer on the iMx53.&amp;nbsp; The following is my command line:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: verdana; font-size: 11px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: verdana; font-size: 11px;"&gt;gst-launch-0.10 -v udpsrc port=5002 ! queue ! h264parse ! mfw_vpudecoder codec-type=std_avc parser=true ! mfw_isink sync=false async=false &amp;gt; /dev/null&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The video output has a latency of about a second, probably because that is the keyframe rate of the encoder.&amp;nbsp; It has very low latency (200-300ms) if I stream it to a Linux PC instead of the iMx53 board using the following command line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gst-launch-0.10 -v udpsrc port=5002 ! queue ! h264parse ! ffdec_h264 ! autovideosink&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any thoughts on how to reduce the latency?&amp;nbsp; Is there something built into the VPU libraries that may be buffering the data in some way that can be optimized?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 13:48:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx53-latency-with-h264-and-udpsrc/m-p/310891#M40581</guid>
      <dc:creator>tomrossano</dc:creator>
      <dc:date>2014-05-06T13:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: imx53 latency with h264 and udpsrc</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx53-latency-with-h264-and-udpsrc/m-p/310892#M40582</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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 13:52:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx53-latency-with-h264-and-udpsrc/m-p/310892#M40582</guid>
      <dc:creator>Wlodek_D_</dc:creator>
      <dc:date>2014-05-06T13:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: imx53 latency with h264 and udpsrc</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx53-latency-with-h264-and-udpsrc/m-p/310893#M40583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;had you checked below ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/385122#385122"&gt;https://community.freescale.com/message/385122#385122&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 03:49:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx53-latency-with-h264-and-udpsrc/m-p/310893#M40583</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2014-05-07T03:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: imx53 latency with h264 and udpsrc</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx53-latency-with-h264-and-udpsrc/m-p/310894#M40584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; I did not see that one before. I will try some of out the tips in that thread.&amp;nbsp; Unfortunately the video generator is not an rtp stream.&amp;nbsp; It is straight UDP at a variable frame rate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 12:16:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx53-latency-with-h264-and-udpsrc/m-p/310894#M40584</guid>
      <dc:creator>tomrossano</dc:creator>
      <dc:date>2014-05-07T12:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: imx53 latency with h264 and udpsrc</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx53-latency-with-h264-and-udpsrc/m-p/310895#M40585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a variable in 'min_data_in_vpu' in gst-fsl-plugin-2.0.3/src/video/vpu_dec.full/src/mfw_gst_vpu_decoder.c and mfw_gst_vpu_thread.c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appears that the variable accumulates up to the max ever in the VPU.&amp;nbsp; Setting it to a low value at start (non-720p) and always setting it in mfw_gst_vpudec_copy_data to be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vpu_dec-&amp;gt;min_data_in_vpu = (gst_buffer_size + 511) &amp;amp; ~511;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resolved the latency issues I was having.&amp;nbsp; I haven't detected any negative impacts of this change yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 14:27:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx53-latency-with-h264-and-udpsrc/m-p/310895#M40585</guid>
      <dc:creator>tomrossano</dc:creator>
      <dc:date>2014-05-13T14:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: imx53 latency with h264 and udpsrc</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx53-latency-with-h264-and-udpsrc/m-p/310896#M40586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;STRONG style="font-size: 13px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;A href="https://community.nxp.com/people/tomrossano"&gt;tomrossano&lt;/A&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; could u tell me how to modify the code?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;this is my sdp file:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;v=0&lt;/P&gt;&lt;P&gt;o=- 0 0 IN IP4 127.0.0.1&lt;/P&gt;&lt;P&gt;s=No Title&lt;/P&gt;&lt;P&gt;c=IN IP4 224.124.0.1/5&lt;/P&gt;&lt;P&gt;t=0 0&lt;/P&gt;&lt;P&gt;a=tool:libavformat 56.30.100&lt;/P&gt;&lt;P&gt;m=video 8000 RTP/AVP 96&lt;/P&gt;&lt;P&gt;b=AS:798&lt;/P&gt;&lt;P&gt;a=rtpmap:96 H264/90000&lt;/P&gt;&lt;P&gt;a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z2QAIKzZQEAN/qEAAAMAAQAAAwAyjxgxlg==,aOvssiw=; profile-level-id=640020&lt;/P&gt;&lt;P&gt;m=audio 8002 RTP/AVP 97&lt;/P&gt;&lt;P&gt;b=AS:64&lt;/P&gt;&lt;P&gt;a=rtpmap:97 MPEG4-GENERIC/44100/2&lt;/P&gt;&lt;P&gt;a=fmtp:97 profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3; config=121056E500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use "gst-launch-0.10 playbin2 uri=file://`pwd`/test1.sdp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the video output is very latency！&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WARNING: from element /GstPlayBin2:playbin20/GstPlaySink:playsink0/GstBin:vbin/GstAutoVideoSink:videosink/MFW_GST_V4LSINK_INFO_T:videosink-actual-sink-mfw_v4l: A lot of buffers are being dropped.&lt;/P&gt;&lt;P&gt;Additional debug info:&lt;/P&gt;&lt;P&gt;/mnt/yocto/bin/fsl-release-bsp/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gstreamer/0.10.36-r3/gstreamer-0.10.36/libs/gst/base/gstbasesink.c(2875): gst_base_sink_is_too_late (): /GstPlayBin2:playbin20/GstPlaySink:playsink0/GstBin:vbin/GstAutoVideoSink:videosink/MFW_GST_V4LSINK_INFO_T:videosink-actual-sink-mfw_v4l:&lt;/P&gt;&lt;P&gt;There may be a timestamping problem, or this computer is too slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2015 02:23:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx53-latency-with-h264-and-udpsrc/m-p/310896#M40586</guid>
      <dc:creator>xswyzao</dc:creator>
      <dc:date>2015-05-22T02:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: imx53 latency with h264 and udpsrc</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx53-latency-with-h264-and-udpsrc/m-p/310897#M40587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I find different framerate frame,as 15、20、24、&lt;/P&gt;&lt;P&gt;but the imx53 received stream framerate is always 30.&lt;/P&gt;&lt;P&gt;I copy the mp4 file to sd card, imx53 could get correct framerate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0:00:00.971237375&amp;nbsp; 1999&amp;nbsp;&amp;nbsp; 0x10e400 DEBUG&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mfw_vpudecoder mfw_gst_vpu_decoder.c:4506:mfw_gst_vpudec_setcaps: &amp;gt;&amp;gt;VPU_DEC: set framerate nu 30 de 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 01:35:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx53-latency-with-h264-and-udpsrc/m-p/310897#M40587</guid>
      <dc:creator>xswyzao</dc:creator>
      <dc:date>2015-05-25T01:35:54Z</dc:date>
    </item>
  </channel>
</rss>

