Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

Sample Decode Crashing doing JPEG decoding with VPP on d3d11

Prakash__Sree
Beginner
1,065 Views
 
The sample decoder is crashing when doing JPEG decoding & a VPP stage for the sample JPEG attached. Its crashing only for d3d11 and works fine in d3d9 & sw modes.
 
To regenerate the crash, just the run the sample decode with the following params (using the sample jpeg file attached) 
 
jpeg -hw -d3d11 -w 960 -h 480 -i ./input/Live-0-210.jpg -o ./output/Live-0-210.yuv
The actual dimension of the jpeg is 1920x960 and the above command attempts to decode the jpeg & scale it to half the original dimensions.
 
Curiously enough, the crash is seen only if a vpp stage is involved. It works fine even in d3d11 if we don't introduce the vpp stage.
 
jpeg -hw -d3d11 -w 1920 -h 960 -i ./input/Live-0-210.jpg -o ./output/Live-0-210.yuv
 
works fine in all modes (d3d, d3d11 & sw)
 
Had tried it on "Intel® Media SDK 2018 R1 - Media Samples 8.3.26.352"
 
Are there any corrections required in the "sample decode" to get this working?
0 Kudos
5 Replies
Mark_L_Intel1
Moderator
1,065 Views

Thanks, 

I have reproduced what you observed and reported, I will keep you updated with the progress.

Mark

0 Kudos
Kumar__Akhil1
Beginner
1,065 Views

The above fails on HD4600 with IMSDK 2018.R2 (Sept2018 release as well)

 

C:\Users\developer\Documents\Intel® Media SDK 2018 R2 - Media Samples 8.4.27.378\_bin\x64>sample_decode.exe jpeg -hw -d3d11  -w 960 -h 480 -i C:\akhil\Live-0-210.jpg
pretending that aspect ratio is 1:1
Decoding Sample Version 8.4.27.378
 
 
Input video     JPEG
Output format   NV12 (using vpp)
Input:
  Resolution    1920x960
  Crop X,Y,W,H  0,0,1920,960
Output:
  Resolution    960x480
Frame rate      30.00
Memory type             d3d11
MediaSDK impl           hw_d3d11
MediaSDK version        1.20
 
Decoding started
 
[ERROR], sts=MFX_ERR_DEVICE_FAILED(-17), CDecodingPipeline::RunDecoding, DecodeFrameAsync returned error status at src\pipeline_decode.cpp:1837
Frame number:    0, fps: 0.000, fread_fps: 0.000, fwrite_fps: 0.000
[ERROR], sts=MFX_ERR_DEVICE_FAILED(-17), CDecodingPipeline::RunDecoding, Unexpected error!! at src\pipeline_decode.cpp:1947
 
ERROR: Hardware device was lost or returned unexpected error. Recovering...
 
[ERROR], sts=MFX_ERR_DEVICE_FAILED(-17), CD3D11Device::Reset, Cannot create swap chain required for rendering. at src\d3d11_device.cpp:226
 
[ERROR], sts=MFX_ERR_DEVICE_FAILED(-17), wmain, Pipeline.ResetDevice failed at src\sample_decode.cpp:716
 
C:\Users\developer\Documents\Intel® Media SDK 2018 R2 - Media Samples 8.4.27.378\_bin\x64>
0 Kudos
Prakash__Sree
Beginner
1,065 Views

Hi Mark,

Any updates on this issue?

Thanks And Regards,

Sree

0 Kudos
Mark_L_Intel1
Moderator
959 Views

Hi Sree,

Apology for the long delay of this issue.

I have got confirmed from dev team that the solution was merged internally, it should be available in the open source Media SDK project with following pull request:

https://github.com/Intel-Media-SDK/MediaSDK/pull/2531

https://github.com/Intel-Media-SDK/MediaSDK/pull/2535

and https://github.com/intel-innersource/drivers.gpu.media.sdk.lib/pull/320

The Windows version will be updated at the middle of this year.

 

Please let me know if you have any questions.

Mark Liu

0 Kudos
Mark_L_Intel1
Moderator
1,065 Views

Yes, some updates.

It seems like this is the sample issue. By turning on rendering, this issue was disappeared.

It is still under investigation.

Mark.

0 Kudos
Reply