New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[gstreamer-msdk][mjpeg decode] mjpeg decoding fail with error message "gst_msdkdec_init_decoder:<msdkmjpegdec0> Init failed" #178
Comments
This issue can not be duplicated with close source MediaServerStudio2017. |
suppose it should be a open media sdk issue @onabiull |
Please attach 0795image04_1152x864.jpg |
@dmitryermilov AFAICT, this happens with any jpeg input file. |
...for example, I generated jpeg via: |
It's a gst plug-ins issue, see https://github.com/GStreamer/gst-plugins-bad/blob/0bdcf51baf77926b4f29c01a2fdf133c13aad62e/sys/msdk/gstmsdkmjpegdec.c#L72. Instead of calling MSDK DecodeHeader() function and getting actual parameters from jpeg file, the code hardcodes scan type to non-interleaved while actually test.jpg has interleaved scan type. MFX_SCANTYPE_NONINTERLEAVED is not supported in HW MSDK library: The hack in msdkmjpegenc should be removed. |
I don't think this is a MSDK nor a media-driver issue. This is most probably an issue with the plugins. gst-mfx topic branch seems to have the same issue. See here: Issue seems to be related to JPEG 4:4:4 decode. And sample_decode using the latest upstream ingredients can decode this no problem. gst-mfx MASTER can also decode this albeit with explicit capsfiltering specified: |
yeah, this is a gst-bad plug-in issue, and it can not duplicated with iHD+gst-vaapi, so close it |
That hack was added to support the closed source msdk, also there were no DecodeHeader implementation at that time. Current git master always uses DecodeHeader API to fill the videoparam and it also respects the upstream parameters (eg: from demuxers). |
Test Env:
Platform: APL/KBl/SKL
Arch: x86_64
Linux release 16.04
Kernel: 4.12.0-rc2
libva https://github.com/01org/libva.gitb
commit 3be72a5a110880f70626d7c3bed953cdde124b2
media_driver https://github.com/intel/media-driver
commit 1c2b061
MediaSDK: https://github.com/Intel-Media-SDK/MediaSDK
commit 7c2b069dce7bed268806f680412a2f3b09a52ce9
gst-bad master branch 0bdcf51baf77926b4f29c01a2fdf133c13aad62e
Reproduce Steps:
take one case for example
Got context from element 'msdkmjpegdec0': gst.msdk.Context=context, gst.msdk.Context=(GstMsdkContext)"(GstMsdkContext)\ msdkcontext0";
Redistribute latency...
0:00:00.055560235 5939 0xd7bcf0 ERROR msdkdec gstmsdkdec.c:337:gst_msdkdec_init_decoder: Init failed (undeveloped feature)
Caught SIGSEGV
Failed cases
decode_jpeg/0795image04_1152x864.jpg 10015.68 FAIL
decode_jpeg/0795image04_1280x1024.jpg 10017.11 FAIL
decode_jpeg/27022005_198.sized.jpg 10016.63 FAIL
decode_jpeg/capture20.jpg 10016.81 FAIL
decode_jpeg/capture21.jpg 10016.65 FAIL
decode_jpeg/capture22.jpg 10016.60 FAIL
The text was updated successfully, but these errors were encountered: