SOLVED: Pipeline Accumulates Overtime?

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

SOLVED: Pipeline Accumulates Overtime?

killerrats
Administrator
This post was updated on .
LIVE STREAM
rtspsrc -> queue -> rtph264depay -> h264parse -> avdec_h264 -> d3dvideosink

Having problem after a period of time the video will be delayed more than 5 seconds. Does the queue element accumulate too much overtime to make a delay? I just have the default set for the queue element. I am using 1.6 for gstreamer. Anybody have any ideas? it seems to be long time after it will delay not right off.
------------------------------
Gstreamer 1.16.2
------------------------------
Windows
Reply | Threaded
Open this post in threaded view
|

Re: Pipeline Accumulates Overtime?

Michael MacIntosh
Looks like the default latency of rtsp src is 2000 ms, so that could be
contributing to your latency.

https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good/html/gst-plugins-good-plugins-rtspsrc.html#GstRTSPSrc--latency

Cheers,
Michael.


On 8/15/2017 9:32 AM, killerrats wrote:

> LIVE STREAM
> rtspsrc -> queue -> rtph264depay -> h264parse -> avdec_h264 -> d3dvideosink
>
> Having problem after a period of time the video will be delayed more than 5
> seconds. Does the queue element accumulate too much overtime to make a
> delay? I just have the default set for the queue element. I am using 1.6 for
> gstreamer. Anybody have any ideas? it seems to be long time after it will
> delay not right off.
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Pipeline-Accumulates-Overtime-tp4684212.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Pipeline Accumulates Overtime?

killerrats
Administrator
rtspsrc set properties of what i did:

g_object_set(GST_OBJECT(rtspsrc)
,"location",[URI]
,"latency",100
,"protocols",4
,"ntp-sync",FALSE
,"buffer-mode",4
,NULL);

the accuracy in the beginning great. I have a grid that I use to watch 16 cams on two computers and start in the morning. by late afternoon starts to have delay issues 5-8 sec.
------------------------------
Gstreamer 1.16.2
------------------------------
Windows
Reply | Threaded
Open this post in threaded view
|

Re: Pipeline Accumulates Overtime?

killerrats
Administrator
This post was updated on .
Solved.

Changing:
d3dvideosink sync=true to d3dvideosink sync=false.

I guess overtime the sync=true will make things delay. I only was playing the video so If I had the audio maybe it would have done that. But will figure that out when I get there.
------------------------------
Gstreamer 1.16.2
------------------------------
Windows
Reply | Threaded
Open this post in threaded view
|

Re: Pipeline Accumulates Overtime?

Arjen Veenhuizen
Note that setting sync=false hardly ever is a real (future-proof) solution. You should only use this as a last resort (e.g. when your source is not generating a constant framerate or is applying drifting timestamps to your stream).
Reply | Threaded
Open this post in threaded view
|

Re: Pipeline Accumulates Overtime?

killerrats
Administrator
I was using gstreamer 1.6.2 and seem to be overtime it made a delay. when I
converted to 1.12.3 it worked better with no delay. left it through out last
night and today. so far no delay so i think that fixed the problem.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
------------------------------
Gstreamer 1.16.2
------------------------------
Windows