Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
27 Views

Sample Decode Crashing doing JPEG decoding with VPP on d3d11

 
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
4 Replies
Highlighted
Moderator
27 Views

Thanks, 

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

Mark

0 Kudos
Beginner
27 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
Highlighted
Beginner
27 Views

Hi Mark,

Any updates on this issue?

Thanks And Regards,

Sree

0 Kudos
Highlighted
Moderator
27 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