Page 1 of 1

Possible to prevent buffer from increasing?

Posted: 06 Feb 2019 00:44
by wrybread
I'm using the Python VLC bindings to play an RTSP stream from a PTZ security camera. It works great, but as I watch the camera over time the buffer keeps increasing, until the lag is so great that the camera is impossible to control.

When it increases VLC prints this message to the console:

[03d0e1d0] main input error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 1504 ms)

Note that setting the network-caching parameter doesn't help.

Is there some way to disable this behavior?

I'm initting VLC like this:

Code: Select all

self.Media = self.vlcInstance.media_new(camera_url, "no-video-title", "rtsp-tcp", "network-caching=300" "no-auto-adjust-pts-delay", # trying to prevent pts delay from increasing... )

Thanks for any help.

Edit: I found the option "--no-auto-adjust-pts-delay" here:

https://wiki.videolan.org/VLC-0-9-x_command-line_help/

I tried adding that param to the above, but it made no difference.

Re: Possible to prevent buffer from increasing?

Posted: 25 Feb 2019 05:01
by wrybread
I hate to do it, but... bump.

This issue is driving me nuts. It makes the player almost unusable when controlling a live PTZ camera.

Re: Possible to prevent buffer from increasing?

Posted: 25 Feb 2019 08:26
by mfkl
Do you experience the same issue with the VLC desktop app? If not, share the logs.