Open maddanio opened 3 years ago
While I'm pretty sure Metal already has support for hardware-accelerated video encoding/decoding, until Apple exposes it publicly, there isn't much I think we can do until then.
Actually... we might be able to use the VideoToolbox framework to support this.
yes, that was the idea. we are already doing vulkan<->vt exchange with metal surfaces. if it helps I can isolate the neccessary steps that are proven to work for us.
it's not particularly urgent for us, especially as long as support for this is still sparse elsewhere (intel, amd), but it came up and I felt it should be a relatively mechanical task to implement and nice to support the initiative by khronos
I'll mention that we'd find this super useful. Being able to use hardware encode/decode via a single API across multiple platforms will be a huge time saver.
+1
+1
yes, that was the idea. we are already doing vulkan<->vt exchange with metal surfaces. if it helps I can isolate the necessary steps that are proven to work for us.
Which are the steps?
so, let's see, been a while :). so for the decode side
for the encoding side its basically the same, only then you render to the obtained texture on the vulkan side and use the pixel puffer on the core video side
i hope this helps. I can also try to isolate some code, but that may take longer, as its tangled up in our codebase a bit
ah and currenlty this means you have to link directly to moltenvk and not use any layers, unless they made it possible now to "see through" layers as I think was requested a while ago
Hello
will MoltenVK implement the new vulkan video encode/decode apis?
https://www.khronos.org/blog/an-introduction-to-vulkan-video
best