slow playback in streaming client

suspension manusha1980 at gmail.com
Sat Jul 25 07:14:36 PDT 2015


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.


More information about the gstreamer-devel mailing list