First of all, thank you so much for helping me!That sounds like a frustrating issue! Since VLC works fine with your specific x11 and hardware acceleration settings, but libvlcsharp in Avalonia UI doesn’t, it’s likely that hardware acceleration isn’t being properly utilized within your .NET 8 application.
A couple of things to check:
>Ensure you’re passing the right arguments when initializing libVLC in your code. Some parameters might not be getting applied correctly.
> Try explicitly enabling VAAPI (if using a Raspberry Pi with an appropriate driver) instead of relying on default hardware acceleration settings.
> Consider testing with a different rendering backend in Avalonia (Skia vs. OpenGL) to see if it improves playback.
>Ensure you’re passing the right arguments when initializing libVLC in your code. Some parameters might not be getting applied correctly.
I am not sure how to do this, I was adding as a parameter to Core.Initializate(path to libvlc.so) but is making an exception
> Try explicitly enabling VAAPI (if using a Raspberry Pi with an appropriate driver) instead of relying on default hardware acceleration settings.
I install many libraries and it doesnt work, I dont undestand here you have errors i get :
[0000ffbe4c28a900] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
Failed to open VDPAU backend libvdpau_vc4.so: cannot open shared object file: No such file or directory
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/aarch64-linux-gnu/dri/vc4_drv_video.so
libva info: va_openDriver() returns -1
[0000ffbe4c203a10] glconv_vaapi_x11 gl error: vaInitialize: unknown libva error
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/aarch64-linux-gnu/dri/v3d_drv_video.so
libva info: va_openDriver() returns -1
[0000ffbe4c203a10] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
libva info: VA-API version 1.22.0
libva error: vaGetDriverNames() failed with operation failed
[0000ffbe4c203a10] glconv_vaapi_drm gl error: vaInitialize: operation failed
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/aarch64-linux-gnu/dri/vc4_drv_video.so
libva info: va_openDriver() returns -1
> Consider testing with a different rendering backend in Avalonia (Skia vs. OpenGL) to see if it improves playback.
I am going to try, but i do not know how to do it, i will search on internet, try and i will come back to you.
Again thank you so much to you guys for helping me!
Statistics: Posted by apintot — Wed Feb 05, 2025 8:54 am