slow playback in streaming client

Chuck Crisler ccrisler at mutualink.net
Wed Jul 29 07:34:26 PDT 2015


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?

On Sat, Jul 25, 2015 at 10:14 AM, suspension <manusha1980 at gmail.com> wrote:

> I have the following streaming source:
> gst-launch  -v filesrc location=<file.mkv> ! decodebin ! vpuenc codec=6 !
> video/x-h264 ! h264parse ! rtph264pay config-interval=1 pt=96 ! udpsink
> host=224.25.2.55 port=5000
>
> And following client:
> gst-launch udpsrc uri=udp://224.25.2.55:5000  caps="application/x-rtp,
> media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264,
> sprop-parameter-sets=(string)\"Z0JAHqaA1C2QAA\\=\\=\\,aM44gAA\\=\",
> payload=(int)96, ssrc=(uint)2905425995, clock-base=(uint)1674913653,
> seqnum-base=(uint)52583" ! rtph264depay ! ffdec_h264 ! queue !
> autovideosink
>
> This works, but playback speed fluctuates in the client. It plays properly
> for half a second, slows down for a half a second, again plays at normal
> speed and so on.
>
> I have tried following already without any luck.
> Use mpeg4 encoding
> Changing various properties in udpsrc, udpsink, rtph264pay, vpuenc, etc.
> Used loop-back address rather than multicast
> directly streaming H264
>
> What am I doing wrong? It looks like client is running out of data to play.
> The Server pipeline runs in a IMX6 based platform and uses hardware
> accelerated decoder/encoder. The top command in that machine shows very
> little use of CPU.
>
> Sometime I see following warnings in the client machine:
> There may be a timestamping problem, or this computer is too slow.
> WARNING: from element
>
> /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage:
> A lot of buffers are being dropped.
> Additional debug info:
> gstbasesink.c(2875): gst_base_sink_is_too_late ():
>
> /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage:
>
>
> But my client machine is a modern laptop and should not have any issue
> decoding and displaying this video.
>
> The video in concern is of HD quality.
>
>
>
>
>
>
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/slow-playback-in-streaming-client-tp4672848.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>



-- 
___________________________________________________
Name
*Chuck Crisler*

Mutualink, Inc.
3 Lan Dr.
Westford, MA  01886

Direct: (978) 490-3006 <%28866%29%20957-5465> Ext: 118

E-Mail: ccrisler at mutualink.net <employeer at mutualink.net>

Web: www.mutualink.net


The information in this email, and subsequent attachments, may contain
confidential information that is
intended solely for the attention and use of the named addressee(s). This
message or any part thereof
must not be disclosed, copied, distributed or retained by any person
without authorization from the addressee.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150729/efd932b3/attachment-0001.html>


More information about the gstreamer-devel mailing list