Hardware video decoding with OpenGL #285
-
Hello, In the plplay demo it doesn't seem possible to use hardware decoding with OpenGL. All the hardware configs returned by libavcodec seem to have an incompatible pixel format. According to #270, this behavior is expected. I guess it's outside the scope of libplacebo? Does anyone have any pointers to resources on how to make it work, if it's even possible? @Hlongyu mentioned some "hardware map" used by MPV. Any hint on where I can find this in the MPV source code? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
It works for me out of the box:
OpenGL should have the ability to import DMABUFs, and vaapi hwdec images get auto-derived to dmabuf by the wrapping code: https://github.com/haasn/libplacebo/blob/master/src/include/libplacebo/utils/libav_internal.h#L1041 |
Beta Was this translation helpful? Give feedback.
We have no support for
vdpau
orcuda
unfortunately. It's a bit out-of-scope because it would require "third party" API calls (unlike dmabufs which are supported by OpenGL directly).Here's how mpv does it: