Possible to prevent buffer from increasing?
Posted: 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:
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.
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.