<div dir="ltr">First, take a wireshark trace on the client to see the rate that the packets are arriving. Do you really need the h264parse on the server? You should also add a jitterbuffer on the client between the udpsrc and the rtph264depay. Is this going over hardwire network or WiFi?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jul 25, 2015 at 10:14 AM, suspension <span dir="ltr"><<a href="mailto:manusha1980@gmail.com" target="_blank">manusha1980@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have the following streaming source:<br>
gst-launch -v filesrc location=<file.mkv> ! decodebin ! vpuenc codec=6 !<br>
video/x-h264 ! h264parse ! rtph264pay config-interval=1 pt=96 ! udpsink<br>
host=224.25.2.55 port=5000<br>
<br>
And following client:<br>
gst-launch udpsrc uri=udp://<a href="http://224.25.2.55:5000" rel="noreferrer" target="_blank">224.25.2.55:5000</a> caps="application/x-rtp,<br>
media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264,<br>
sprop-parameter-sets=(string)\"Z0JAHqaA1C2QAA\\=\\=\\,aM44gAA\\=\",<br>
payload=(int)96, ssrc=(uint)2905425995, clock-base=(uint)1674913653,<br>
seqnum-base=(uint)52583" ! rtph264depay ! ffdec_h264 ! queue ! autovideosink<br>
<br>
This works, but playback speed fluctuates in the client. It plays properly<br>
for half a second, slows down for a half a second, again plays at normal<br>
speed and so on.<br>
<br>
I have tried following already without any luck.<br>
Use mpeg4 encoding<br>
Changing various properties in udpsrc, udpsink, rtph264pay, vpuenc, etc.<br>
Used loop-back address rather than multicast<br>
directly streaming H264<br>
<br>
What am I doing wrong? It looks like client is running out of data to play.<br>
The Server pipeline runs in a IMX6 based platform and uses hardware<br>
accelerated decoder/encoder. The top command in that machine shows very<br>
little use of CPU.<br>
<br>
Sometime I see following warnings in the client machine:<br>
There may be a timestamping problem, or this computer is too slow.<br>
WARNING: from element<br>
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage:<br>
A lot of buffers are being dropped.<br>
Additional debug info:<br>
gstbasesink.c(2875): gst_base_sink_is_too_late ():<br>
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage:<br>
<br>
<br>
But my client machine is a modern laptop and should not have any issue<br>
decoding and displaying this video.<br>
<br>
The video in concern is of HD quality.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/slow-playback-in-streaming-client-tp4672848.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/slow-playback-in-streaming-client-tp4672848.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><span style="color:rgb(102,102,102);font-family:verdana,sans-serif">___________________________________________________</span><br></div><div><span style="color:rgb(68,68,68);font-weight:bold;font-family:arial,helvetica,sans-serif">Name</span><br></div><div><font face="arial, helvetica, sans-serif"><span style="color:rgb(102,102,102)"><i>Chuck Crisler</i></span><br style="color:rgb(102,102,102)"></font></div><div dir="ltr"><font face="arial, helvetica, sans-serif"><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102);font-weight:bold">Mutualink, Inc.</span><br style="color:rgb(102,102,102)"></font></div><div><font face="arial, helvetica, sans-serif"><span style="color:rgb(102,102,102)">3 Lan Dr.</span><br style="color:rgb(102,102,102)"></font></div><div dir="ltr"><font face="arial, helvetica, sans-serif"><span style="color:rgb(102,102,102)">Westford, MA 01886</span><br style="color:rgb(102,102,102)"><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">Direct: <a href="tel:%28866%29%20957-5465" value="+18669575465" target="_blank">(978) 490-3006</a> Ext: 118<br></span></font></div><div dir="ltr"><span style="color:black"><font face="arial, helvetica, sans-serif"><span style="color:rgb(102,102,102)"><br></span></font></span></div><div dir="ltr"><span style="color:black"><font face="arial, helvetica, sans-serif"><span style="color:rgb(102,102,102)"></span></font></span><span style="color:rgb(102,102,102);font-family:arial,helvetica,sans-serif"></span></div><font face="arial, helvetica, sans-serif"><font color="#666666">E-Mail: </font><font color="#3d85c6"><a href="mailto:employeer@mutualink.net" target="_blank">ccrisler@mutualink.net</a> </font><br style="color:rgb(102,102,102)"><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">Web: </span><a href="http://www.mutualink.net/" target="_blank"><font color="#3d85c6">www.mutualink.net</font></a><br style="color:rgb(102,102,102)"><br><img src="https://www.google.com/a/mutualink.net/images/logo.gif?service=writely" border="0"><br><div dir="ltr" style="color:black"><font style="color:rgb(102,102,102)" size="1">The information in this email, and subsequent attachments, may contain confidential information that is </font></div><div dir="ltr" style="color:black"><font style="color:rgb(102,102,102)" size="1">intended solely for the attention and use of the named addressee(s). This message or any part thereof </font></div><div dir="ltr" style="color:black"><font style="color:rgb(102,102,102)" size="1">must not be disclosed, copied, distributed or retained by any person without authorization from the addressee.</font></div></font></div></div></div></div></div></div>
</div>