1

I am trying to test decoding a h264/h265 video (with just a single iframe) using DX11 and DXVA2. This is on windows 7 so I probably have to interop between 2 d3d11 devices, one with 11.1 feature set and the other with 9.3. My question is since there is a severe lack of samples for loading a h264 file and decoding it using DXVA, I was wondering if there is a guide for how to layout the data to feed into DXVA to decode? I've read this How do I use Hardware accelerated video/H.264 decoding with directx 11 and windows 7? as well as https://msdn.microsoft.com/en-us/library/windows/desktop/hh162912(v=vs.85).aspx but neither has any guide on how to do the above.

Thanks

Community
  • 1
  • 1
user1181950
  • 779
  • 1
  • 9
  • 21

1 Answers1

2

If you want a working sample to understand how to feed data into DXVA, look here : MFNode. Under MFTDxva2Decoder, you will see how to feed data. It is for mpeg1/2 file format, but the same apply to H264 (with shades, of course).

EDIT

See my response : How do I use Hardware accelerated video/H.264 decoding with directx 11 and windows 7?

mofo77
  • 1,447
  • 9
  • 17
  • This is way overdue, but thanks for the response. Do you know if DXVA2 runs parallel to the rendering pipeline? i.e. can I have render commands on the GPU shader pipeline while at the same time using DXVA and not have them affect each other in terms of performance? – user1181950 Jun 28 '16 at 04:23
  • Yes, DXVA2 uses the Video Processor from GPU : it is different from shader pipeline. Those processes don't affect each other and work in parallel, but if you share texture between both, you will need some lock mechanism. – mofo77 Aug 18 '16 at 21:46