locked
CreateVideoDecoderOutputView fails with error E_INVALIDARG.

    Question

  • Hi, I am trying to create a decoder in metro app, and call to CreateVideoDecoderOutputView  fails with error E_INVALIDARG.

    here's my code, can anyone point out the problem?

    hr = m_pD3D11Device->CreateTexture2D(

    &CD3D11_TEXTURE2D_DESC(

    DXGI_FORMAT_NV12,

    512, 

    // Width

    512,       

    // Height

    1,         

    // MipLevels

    1,         

    // ArraySize

    D3D11_BIND_DECODER

    ),

    nullptr,

    &pTex

    );

    ID3D11Resource *pResource;

    D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC desc;

       ZeroMemory(&desc,

    sizeof(desc));

    desc.DecodeProfile = D3D11_DECODER_PROFILE_H264_VLD_NOFGT;

    desc.Texture2D.ArraySlice = 1;

    desc.ViewDimension = D3D11_VDOV_DIMENSION_TEXTURE2D;

    hr = pDX11VideoDevice->CreateVideoDecoderOutputView(pTex.Get(),&desc, &pVideoDecoderOutputView);

    Tuesday, November 20, 2012 2:01 PM

All replies

  • Hello,

    Would you please provide us the whole codes to reproduce this issue,

    You can upload your project to skydriver
    http://skydrive.live.com/

    It is not necessary that you send out the whole of your project. We just need a simplest sample to reproduce the problem. You can remove any confidential information or business details from it.

    If you don't want to upload the sample code, you can try to get the paid support from https://getsupport.microsoft.com/

    Best regards,
    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Thursday, November 22, 2012 2:45 AM
    Moderator
  • hello Jesse,

    we 've got a problem during our develop mpeg2 video decoder, after sent video buffer ,all step return S_OK, but no video display on screen, we have not detail document, could you provide detail document or provide technical support, how much about the fee?

    thanks in advance,

    Jackic


    one work one gain!

    Thursday, November 22, 2012 8:45 AM

  • Hi,

    Please try to entry this  https://getsupport.microsoft.com/ for technical support.

    Best regards,
    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Friday, November 23, 2012 8:56 AM
    Moderator
  • Hello xyj_bh,

    I have the same problem :( Yes, I know, it's been almost 3 years, but do you remember what helped you?

    Thursday, May 07, 2015 11:31 AM