[Solved] VLC streams problems in Maui

1 Answer 36 Views
General Discussions
Yves
Top achievements
Rank 1
Yves asked on 17 Apr 2026, 06:11 PM | edited on 17 Apr 2026, 07:57 PM

Hi All

Was hoping if anybody can give their input on a problem I'm having.

I have some sort of VMS in Maui made using libVLC
But I have ran into issues increasing stream count.
Up to 24 streams no issues, but as soon as the 25th stream hits my CPU load spikes like crazy.
I go from like 15% CPU load to 70%. 
I have done something similar in WPF which went fine on even 66 streams. I know WPF is not the same but libvlc isn't the issue. 

Small sidenote a made a test in WinUI3 40 streams loaded fine with only 15% CPU load. 

Does anybody know how valid the below is?

Each MAUI VideoView creates its own SwapChainPanel = its own DXGI swap chain. 28 streams = 28 swap chains feeding
the WinUI DirectComposition compositor, which chokes past ~25. WPF doesn't have this problem because it uses a
single shared D3DImage surface — one compositor target for all streams.

Switch LibVLC from the built-in VideoView (one SwapChainPanel each) to callback rendering (SetVideoFormat +
SetVideoCallbacks), then composite all streams into 1–4 shared SwapChainPanels as tiles. Same RTSP URLs, same HW
decode, same FPS/resolution. Just one compositor target instead of 30.

 

Thanks

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 21 Apr 2026, 08:27 AM

Hello Yves,

This forum is for questions related to Telerik MAUI controls.

As I am not familiar with libVLC library, I searched and found the following links that could be of help:

https://github.com/dotnet/maui/issues/8248 

https://medium.com/@rretamal.dev/how-to-integrate-libvlcsharp-into-net-maui-8dc23b509be4 

https://stackoverflow.com/questions/28563385/android-libvlc-integration-and-streaming-issues-slow-stream-stuttering-only-a 

Also I can suggest you submit questions to the Microsoft forum, StackOverflow, etc. 

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
General Discussions
Asked by
Yves
Top achievements
Rank 1
Answers by
Didi
Telerik team
Share this question
or