rtsp stream latency increased gradually

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

rtsp stream latency increased gradually

Jesse
Hi,

   I am a newbee of GStreamer, I implemented a rtsp player,the pipeline is like this:

gst_parse_launch("rtspsrc location=rtsp://192.168.1.254:554/xxx.mov latency=0 !

decodebin max-size-time=10 connection-speed=665600 ! autovideosink sync=false", &error);

the video source is a IP caramer(Local network), the player works well, the latency seems less than

100ms, but when it play for a while, the latency increased, when played 30 minutes,the latency is about

1 second. I googled and there may be clock drift between the rtp sender and rtp receiver,so I add "ntp-

time-source=clock-time ntp-sync=true" for the rtspsrc element, but it played a few seconds then the

picture freeze. so my question is why the latency increased gradually and, how can i fix it.






Reply | Threaded
Open this post in threaded view
|

Re: rtsp stream latency increased gradually

Jesse
the problem seems related to the IP camera,and if I play it use VLC,the latency increased just like gstreamer. when I use a different IP camera, no this problem.
Reply | Threaded
Open this post in threaded view
|

Re: rtsp stream latency increased gradually

Nicolas Dufresne-5
Le mercredi 15 mars 2017 à 23:29 -0700, Jesse a écrit :
> the problem seems related to the IP camera,and if I play it use VLC,the
> latency increased just like gstreamer. when I use a different IP camera, no
> this problem.

Also, you have set sync=false to your sync, so what you see shall be
representative of the arrival time.

Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment