1 Reply Latest reply on May 27, 2016 8:51 AM by ericpronovost

    PlaybackPipeline exception in 64 bits

    ericpronovost

      I'm testing the PlaybackPipeline sample from Media SDK 1.1. It works fine in 32 bits. In 64 bits, it works when selecting VideoPresenter DX9. When selecting DX11 or OpenGL, an exception occurs on this line:

       

      res = m_pConverter->Init(amf::AMF_SURFACE_NV12, m_pParser->GetPictureWidth(),

                          m_pParser->GetPictureHeight());

       

      Exception thrown at 0x000007FEE22DE587 (amf-component-vc-windesktop64.dll) in pipelinePlayback.exe: 0xC0000005: Access violation reading location 0x0000000000000008.

       

      I'm using a Radeon R7 360 with latest drivers (16.5.3). I also tested with older 15.11 drivers with same result.

        • Re: PlaybackPipeline exception in 64 bits
          ericpronovost

          Here is an example program that works in x86 but not in x64 (on Windows 7 64bit):

          int main()
          {
            amf_int32 width = 1280;
            amf_int32 height = 720;
          
            amf::AMFContextPtr pContext;
            AMF_RESULT res = AMFCreateContext(&pContext);
            res = pContext->InitOpenGL(NULL, NULL, NULL);
          
            amf::AMFComponentPtr pConverter;
            res = AMFCreateComponent(pContext, AMFVideoConverter, &pConverter);
            pConverter->SetProperty(AMF_VIDEO_CONVERTER_MEMORY_TYPE, amf::AMF_MEMORY_OPENGL);
            pConverter->SetProperty(AMF_VIDEO_CONVERTER_OUTPUT_FORMAT, amf::AMF_SURFACE_BGRA);
            res = pConverter->Init(amf::AMF_SURFACE_NV12, width, height);
            return 0;
          }