Skip to main content
GameDev.net gamedev.net
🔒 Locked

GPU video decoder

Started by five1mon Nov 11, 2015 at 4:16 PM 7 replies 3.2k views
Original Post
five1mon
five1mon

Hey

I need to decompress several videos in parallel for in-game content. Preferable the input format should be as compressed as possible while the decompression process doesn't consume too much processing power. So using the GPU seems like a good idea. This need to run on all vendors of PC and XB1. So I don't want to use any Nvidia or ATI specific solution. It also need to support DX12 so I can't use Media Foundation or any closed source API that is based on DX11.

Does anyone know of some open source project or demo/sample I could look into? Preferably I would like something that works straight out of the box or some code that's well contained enough so that it's easy to port to DX12. Big plus as well if it comes with no fees for commercial use.

Thanks!

five1mon
five1mon

Actually DX12 is not a very important requirement. In case the code is open source I can just convert it myself.

cgrant
cgrant

What would DX12 bring to GPU video decoding that DX11 is not capable of ?

Alessio1989
Alessio1989
Well you can always try to use a shader decoder tongue.png
Since ALL DX12 GPUs are SM 5 capable, you can also have some fun with CS 5.0... But I never tried writing a shader decoder, so I am not aware of the issue you can encounter (I can guess GPU stalls, hazards, throttling etc...)..
"Recursion is the first step towards madness." - "Skegg?ld, Skálm?ld, Skildir ro Klofnir!"
Direct3D 12 quick reference: https://github.com/alessiot89/D3D12QuickRef/
five1mon
five1mon
Let me just clarify. I don't expect to gain any particular decoding power from DX12 but since the rest of the engine runs DX12 it has to be that way.

Sure using CS seems like a good candidate.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.