question

wd846 avatar image
0 Votes"
wd846 asked RitaHan-MSFT commented

dxva2 decode h264

when I use dxva2 decode h264,CreateDevice success when cable connect monitor,otherwise CreateDevice return fail when turn off monitor。video card is nvidia ti 1080. why?

windows-apic++
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Assume you are talking about this API: IDirect3D9::CreateDevice. I test this official sample: dxva2_videoproc with Intel HD Graphics 530, CreateDevice return success even when I power off the display monitor and unplug the connection cable. (I only have one display attached in this test case). Can you try this official sample to see if it works for you? If not, can you show error code of CreateDevice failure?









0 Votes 0 ·

IDirectXVideoDecoderService->GetDecoderDeviceGuids() return E_FAIL if unplug the connection cable.i can't get the SupportHWGuidList.

0 Votes 0 ·

IDirectXVideoDecoderService->GetDecoderDeviceGuids() works for me after unplug the connection cable. I create the demo by adding the following code after this line: g_pD3DD9->GetBackBuffer(). You can have a try.

 // Create DXVA2 Video decoder Service.
 IDirectXVideoDecoderService* decoderService = NULL;
 hr = DXVA2CreateVideoService(g_pD3DD9,
     IID_IDirectXVideoDecoderService,
     (VOID * *)& decoderService);
 while (true)
 {
     UINT devGuidcount = 0;
     GUID* guidArr[100];
     hr = decoderService->GetDecoderDeviceGuids(&devGuidcount, &guidArr[0]);
     if (FAILED(hr))
     {
         DBGMSG((TEXT("GetDecoderDeviceGuids failed with error 0x%x.\n"), hr));
         return FALSE;
     }
 }



0 Votes 0 ·
Show more comments

0 Answers