lag/freeze in streaming H264 or RAW from udpsrc on Windows

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

lag/freeze in streaming H264 or RAW from udpsrc on Windows

manuk
Hello,

I have some troubles to play stream from Windows gst-launch :

server side on ARM32 Ubuntu :
gst-launch-1.0 videotestsrc pattern=0 ! timeoverlay ! capsfilter caps=video/x-raw, format=I420, color-matrix=hdtv, framerate=(fraction)25/1, bpp=12, depth=8, width=1280, height=240 ! omxh264enc iframeinterval=25 insert-sps-pps=true ! rtph264pay name=pay0 pt=96 ! udpsink host=192.168.1.25 port=5100 sync=true

client Windows Seven :
=> gst-launch-1.0 -vvv udpsrc  port=5100  ! "application/x-rtp, media=(string)video" !  rtph264depay   ! avdec_h264  ! autovideosink sync=true         => freeze and lags appear
=> With VLC windows version, the stream is perfectly played without lag in given a SDP file.

Note: the same client pipeline works perfectly on second Ubuntu pc (not the same than server)

It seems there some troubles about the synchronisation, in my case I MUST keep the sync property set to true on client side and server side.

I would like to know why it's work on Ubuntu OS and VLC from windows.
Is there are something to do about the synchronisation.
I have try many solution without success to reduce the lags : add latency from rtpjitterbuffer or videorate.

Thanks for your helps!
Reply | Threaded
Open this post in threaded view
|

Re: lag/freeze in streaming H264 or RAW from udpsrc on Windows

Sebastian Dröge-3
On Fri, 2016-09-09 at 14:20 -0700, manuk wrote:

> sync=true         => freeze and lags appear

What do you mean with freeze and lag, what exactly happens? You should
in any case add a queue after the udpsrc (or an rtpjitterbuffer), and
maybe also want to increase the buffer-size property on udpsrc.

> It seems there some troubles about the synchronisation, in my case I
> MUST keep the sync property set to true on client side and server
> side.

You should do that any way :) sync=false in these cases is not a
solution for anything.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (949 bytes) Download Attachment