<?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: how to reduce gstreamer streaming latency</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/how-to-reduce-gstreamer-streaming-latency/m-p/294873#M36400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; swl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only place where you can do the scaling is in the&amp;nbsp; IPU,&amp;nbsp; so in order to do the change scaling before the scaling you need to start a task something like&lt;/P&gt;&lt;P&gt;this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gst-launch v4l2src ! video/x-raw-yuv,width=320,height=240 ! mfw_isink disp-width=240 disp-height=120 axis-left=1200 axis-top=500 rotation=3 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 May 2014 14:26:08 GMT</pubDate>
    <dc:creator>jamesbone</dc:creator>
    <dc:date>2014-05-20T14:26:08Z</dc:date>
    <item>
      <title>how to reduce gstreamer streaming latency</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-reduce-gstreamer-streaming-latency/m-p/294868#M36395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am experiencing slow decoding and low streaming quality when trying to stream out video from i.mx6 quad core. I am wondering if I matched the pipeline wrongly.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following the is pipeline i used&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(receiver on desktop connected via ethernet to i.mx6)&lt;/P&gt;&lt;P&gt;1.gst-launch udpsrc caps=" application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264,payload=(int)96,ssrc=(uint)2674837201,clock-base=(uint)2959668548,seqnum-base=(uint)14300" port=5000 ! rtph264depay ! decodebin2 ! d3dvideosink&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(sender from i.mx6)&lt;/P&gt;&lt;P&gt;//sending using test pattern&lt;/P&gt;&lt;P&gt;1.) gst-launch videotestsrc ! x264enc ! rtph264pay ! udpsink host=192.168.0.100 port=5000 -v&lt;/P&gt;&lt;P&gt;//sending using filesrc with a sample video file &lt;/P&gt;&lt;P&gt;2.) gst-launch filesrc location=Trailer.mp4 ! decodebin2 ! x264enc ! rtph264pay ! udpsink host=192.168.0.100 port=5000 &lt;/P&gt;&lt;P&gt;3.) gst-launch filesrc location=Trailer.mp4 ! decodebin2 ! vpuenc codec=6 ! queue ! rtph264pay ! udpsink host=192.168.0.100 port=5000&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached the log from the receiver end&lt;/P&gt;&lt;P&gt;(1.)log_videotestsrc.txt&lt;/P&gt;&lt;P&gt;(2.)log_filesrc.txt&lt;/P&gt;&lt;P&gt;(3.)log_filesrc_vpuenc.txt&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following is one of the common message i see at the receiver end:&lt;/P&gt;&lt;P&gt;WARNING: from element /GstPipeline:pipeline0/GstD3DVideoSink:d3dvideosink0: A lot of buffers are being dropped.&lt;/P&gt;&lt;P&gt;Additional debug info:&lt;/P&gt;&lt;P&gt;gstbasesink.c(2873): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstD3DVideoSink:d3dvideosink0:&lt;/P&gt;&lt;P&gt;There may be a timestamping problem, or this computer is too slow.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At Receiver end:&lt;/P&gt;&lt;P&gt;1.) the test pattern is not stable throughout, it seems to be dropping packets&lt;/P&gt;&lt;P&gt;2.) the sample video take a long time to start decode and did not manage to complete. ( stop right after few seconds of display w/distortion)&lt;/P&gt;&lt;P&gt;3.) the sample video managed to decode with distortion and delay.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering what would be a better pipeline to use to reduce the latency.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recently also start using libmfw_gst_tvsrc.so to grab the tvin source, I would like to find out how can the raw video be scaled as I did not see the caps options for tvsrc, I tried gst-launch tvsrc ! video/x-raw-yuv, width=720, height=480 ! mfw_ipucsc ! video/x-raw-yuv, width=360, height=240 ! vpuenc codec=6 ! queue ! rtph264pay ! udpsink host=192.168.0.100 port=5000 but did not work. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Eric&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-336706"&gt;log_videotestsrc.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-336706"&gt;log_filesrc.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-336706"&gt;log_filesrc_vpuenc.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 May 2014 15:32:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-reduce-gstreamer-streaming-latency/m-p/294868#M36395</guid>
      <dc:creator>swl</dc:creator>
      <dc:date>2014-05-10T15:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce gstreamer streaming latency</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-reduce-gstreamer-streaming-latency/m-p/294869#M36396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Try tvsrc with 720x576.&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2014 01:50:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-reduce-gstreamer-streaming-latency/m-p/294869#M36396</guid>
      <dc:creator>RobbieJiang</dc:creator>
      <dc:date>2014-05-11T01:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce gstreamer streaming latency</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-reduce-gstreamer-streaming-latency/m-p/294870#M36397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robbie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The camera I am using is NTSC not PAL but thanks for the suggestion anyway. :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2014 13:43:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-reduce-gstreamer-streaming-latency/m-p/294870#M36397</guid>
      <dc:creator>swl</dc:creator>
      <dc:date>2014-05-11T13:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce gstreamer streaming latency</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-reduce-gstreamer-streaming-latency/m-p/294871#M36398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My experience is that tvsrc can only&amp;nbsp; work with a resolution equal to the standard size of NTSC/PAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check the standard size of NTSC/PAL in mxc_v4l2_capture.c.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2014 14:18:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-reduce-gstreamer-streaming-latency/m-p/294871#M36398</guid>
      <dc:creator>RobbieJiang</dc:creator>
      <dc:date>2014-05-11T14:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce gstreamer streaming latency</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-reduce-gstreamer-streaming-latency/m-p/294872#M36399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robbie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the hint, but I was wondering if it is possible to do scaling of the raw video with tvsrc in an attempt to reduce the resolution before encoding the video.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 00:30:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-reduce-gstreamer-streaming-latency/m-p/294872#M36399</guid>
      <dc:creator>swl</dc:creator>
      <dc:date>2014-05-12T00:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce gstreamer streaming latency</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-reduce-gstreamer-streaming-latency/m-p/294873#M36400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; swl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only place where you can do the scaling is in the&amp;nbsp; IPU,&amp;nbsp; so in order to do the change scaling before the scaling you need to start a task something like&lt;/P&gt;&lt;P&gt;this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gst-launch v4l2src ! video/x-raw-yuv,width=320,height=240 ! mfw_isink disp-width=240 disp-height=120 axis-left=1200 axis-top=500 rotation=3 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 14:26:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-reduce-gstreamer-streaming-latency/m-p/294873#M36400</guid>
      <dc:creator>jamesbone</dc:creator>
      <dc:date>2014-05-20T14:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce gstreamer streaming latency</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-reduce-gstreamer-streaming-latency/m-p/294874#M36401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you give me a sample that&amp;nbsp; how to use tvsrc&amp;nbsp; (gstreamer element&lt;SPAN style="font-size: 12pt; font-family: 宋体; line-height: 1.5em;"&gt; ) to streaming a video on the network&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 04:42:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-reduce-gstreamer-streaming-latency/m-p/294874#M36401</guid>
      <dc:creator>shengqiangai</dc:creator>
      <dc:date>2015-03-09T04:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce gstreamer streaming latency</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-reduce-gstreamer-streaming-latency/m-p/294875#M36402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Plz refer my post at:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.nxp.com/message/495202#495202" title="https://community.freescale.com/message/495202#495202"&gt;https://community.freescale.com/message/495202#495202&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 05:30:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-reduce-gstreamer-streaming-latency/m-p/294875#M36402</guid>
      <dc:creator>RobbieJiang</dc:creator>
      <dc:date>2015-03-19T05:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to reduce gstreamer streaming latency</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-reduce-gstreamer-streaming-latency/m-p/294876#M36403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How could you get the mfw_deinterlacer element, i don't have it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if i use the follow cmd:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gst-launch -v tvsrc device=/dev/video0 ! 'video/x-raw-yuv,format=(fourcc)UYVY,width=720,height=576,framerate=15/1' ! mfw_ipucsc ! 'video/x-raw-yuv,format=(fourcc)I420, width=320,height=240,framerate=15/1'! vpuenc codec=avc gopsize=2 ! video/x-h264,width=320,height=240 ! rtph264pay ! udpsink host=192.168.1.108 port=5000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the follow err info:&lt;/P&gt;&lt;P&gt;WARNING: erroneous pipeline: could not link mfwgsttvsrc0 to mfwgstipucsc0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 09:15:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-reduce-gstreamer-streaming-latency/m-p/294876#M36403</guid>
      <dc:creator>shengqiangai</dc:creator>
      <dc:date>2015-03-19T09:15:34Z</dc:date>
    </item>
  </channel>
</rss>

