Possible to prevent buffer from increasing?

This forum is about all development around libVLC.
wrybread
Blank Cone
Blank Cone
Posts: 17
Joined: 24 Mar 2007 05:44

Possible to prevent buffer from increasing?

Postby wrybread » 06 Feb 2019 00:44

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.

wrybread
Blank Cone
Blank Cone
Posts: 17
Joined: 24 Mar 2007 05:44

Re: Possible to prevent buffer from increasing?

Postby wrybread » 25 Feb 2019 05:01

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.

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: Possible to prevent buffer from increasing?

Postby mfkl » 25 Feb 2019 08:26

Do you experience the same issue with the VLC desktop app? If not, share the logs.
https://mfkl.github.io


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 39 guests