Page 1 of 1

libvlc_video_set_output_callbacks and vdpau

Posted: 20 Dec 2024 03:38
by Jona
libvlc_video_set_output_callbacks does not seem to work with vdpau, it falls back to:

Code: Select all

vaapi generic: Using Intel iHD driver for Intel(R) Gen Graphics - 22.3.1 ()
Without libvlc_video_set_output_callbacks vdpau is used:

Code: Select all

vdpau_instance decoder device: Using NVIDIA VDPAU Driver Shared Library 550.142 Wed Dec 11 04:53:10 UTC 2024
It would be nice to use libvlc_video_set_output_callbacks with vdpau, so it would be possible to use it with nvidia GPUs (with Windows and DXVA2 it already works).
Or is it intended that libvlc_video_set_output_callbacks only works with vaapi?

Edit: With Windows it is:

Code: Select all

dxva2 generic: Using DXVA2 (NVIDIA GeForce RTX 3090, vendor NVIDIA(10de), device 2204, revision a1)

Re: libvlc_video_set_output_callbacks and vdpau

Posted: 20 Dec 2024 11:15
by Rémi Denis-Courmont
To use VDPAU, you need to supply an X11 window handle, not output callbacks.

Re: libvlc_video_set_output_callbacks and vdpau

Posted: 20 Dec 2024 12:01
by Jona
I see, thanks. But isn`t the purpose of libvlc_video_set_output_callbacks that the image stays on the GPU? And right now Linux uses GPU too, just not the nvidia one.
Or is there another way to use nvidia cards with libvlc video callbacks and Linux?

Re: libvlc_video_set_output_callbacks and vdpau

Posted: 21 Dec 2024 10:11
by Rémi Denis-Courmont
No. Patches are welcome.