VLC RTSP Streams from IP Cameras Falling Behind

This forum is about all development around libVLC.
ae.branton
New Cone
New Cone
Posts: 5
Joined: 14 Apr 2020 21:29

VLC RTSP Streams from IP Cameras Falling Behind

Postby ae.branton » 14 Apr 2020 21:35

Hey Guys!

Not sure this is the right area of the forums to post in. I have built a pyqt app, and used the python bindings for libvlc. Basically we have a bunch of people with IP cameras, and this app can load these people into the interface in a grid and show thier cameras. The player is just VLC using the python bindings, and bound to a QT Widget using set_hwnd().

As mentioned, these are reading in RTSP streams that come from some IP cameras.

2 main problems we are having are:

1. The stream falls behind. Sometimes a LOT. We have had reports of peoples video being about 5-6 minutes behind live after a while in a meeting. based on reading, drop latre frames flag is on by default. I have played with the network cache ms value, but I cant seem to get this resolved. Does anyone have any ideas or tips for me here? Is it possible that once you are reading 4+ of these streams its falling behind a bit on each one every second and just building up? Is there a way to fix this and drop anything thats "late" and keep up with live?

2. Im not sure if this is a VLC bug or not (appears to be) but when i bind these players to the QT widgets, once in a while we got odd display behavior. Sometimes if i had the players video small, then make it larger, you can still see a freeze-frame of the previously small player laid over the now larger player. Other times the whole app itself will freeze except for the VLC windows that keep playing their streams even though the window is locked up.

Thanks in advance for any help you can provide! Whether its flags i Havent set on the VLC instance, or something else, i appreciate any input!

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 14 guests