latency issues with multiple instances of embedded vlc players (C# WPF vlc.dotnet)
Posted: 16 Sep 2019 23:35
I am trying to use Vlc-DotNet to upgrade an old WPF app that used to rely on a VLC 0.9.9 embedded player. I have everything ported and up and running now with vlc.dotnet (winforms in wpf) 3.0 / libvlc 3.0.7 basically following a libvlc.dotnet sample for using winforms hosted in WPF. This app has multiple VLC instances in panes kind of like a security camera view.
After switching to the newer vlc versions I have noticed significant latency issues compared to the old VLC 0.9.9. Instances in each pane appear to get out of sync sometimes as much as 2 seconds. I have played around with different values for the :network-caching setting, but I still always seem to get instances that are not in sync. This is very obvious when I point them at the same stream. Streams types are UDP and rtsp, I have similar results with both, with rtsp being a little bit better.
The main issue that is holding us back is that the VLC instances appear to result in different amounts of latency per instance. If they all have a network-caching setting of 300ms for instance, the feeds could end up being offset by 1-2 seconds even when viewing the same source feed.
Does anyone have any tips or things I could perhaps look into?
After switching to the newer vlc versions I have noticed significant latency issues compared to the old VLC 0.9.9. Instances in each pane appear to get out of sync sometimes as much as 2 seconds. I have played around with different values for the :network-caching setting, but I still always seem to get instances that are not in sync. This is very obvious when I point them at the same stream. Streams types are UDP and rtsp, I have similar results with both, with rtsp being a little bit better.
The main issue that is holding us back is that the VLC instances appear to result in different amounts of latency per instance. If they all have a network-caching setting of 300ms for instance, the feeds could end up being offset by 1-2 seconds even when viewing the same source feed.
Does anyone have any tips or things I could perhaps look into?