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.

Intel® Media RAW Accelerator Help - input of JPEG output JPEG Modified

Vladimir_P_Intel1
1,153 Views

hi ,

i am new to Intel® Media RAW Accelerator and i am trying to preform simple action on a jpeg file .

i am using sample_decode with the following command :

"C:\Users\XXX\Documents\Intel® Media SDK 2019 R1 - Media Samples 8.4.27.25\_build\Win32\Debug\sample_decode.exe" jpeg -jpeg_rotate 90 -d3d11 -i "C:\Users\XXX\Desktop\123.jpeg" -o "C:\Users\vpikovsk\Desktop\124.jpeg" 

i am simply trying to rotate and create a new file .

file NV12 is being created as an output and i have learned that this is a video format.

what i have to do in order to obtain jpeg as an output ?

thanks in advance !

0 Kudos
1 Solution
Mark_L_Intel1
Moderator
1,153 Views

Hi Vladimir,

I think this is related to jpeg profile, I got the same error as yours for one JPEG file, but I got succeed with following file:

https://commons.wikimedia.org/wiki/File:Intel-logo.jpg

The error you got is the bitstream header decoding failure, so this related to the JPEG profile. As our document, we support Baseline profile,

https://github.com/Intel-Media-SDK/MediaSDK/blob/master/doc/mediasdkjpeg-man.md#CodecProfile

I check my file that doesn't work, it has profile description "sRGB IEC61966-2.1", I am not the expert on this but it looks like not a baseline profile.

Mark

View solution in original post

0 Kudos
4 Replies
Mark_L_Intel1
Moderator
1,153 Views

Hi Vladimir,

sample_decode output the raw image uncompressed from input, if your input is a single image, it should be a frame format not video. you can try sample_encode to compress it back to jpeg.

You can also use sample_multi_transcode to set both input and output as JPEG with the "-angle" parameter of 90 degree. Refer the detail to this page:

https://github.com/Intel-Media-SDK/MediaSDK/blob/master/doc/samples/readme-multi-transcode_linux.md

Mark

0 Kudos
Vladimir_P_Intel1
1,153 Views

C:\Users\vpikovsk\Desktop\build\win_Win32\Debug\bin>sample_multi_transcode.exe -i::jpeg 123.jpeg -o::jpeg 1234.jpeg -angle 180
Multi Transcoding Sample Version 8.4.27.0

Session 0:

[ERROR], sts=MFX_ERR_NULL_PTR(-2), MFXVideoVPPPlugin::LoadDLL, m_PluginModule pointer is NULL at C:\Users\vpikovsk\Desktop\MediaSDK\samples\sample_plugins\vpp_plugin\src\mfx_vpp_plugin.cpp:59

[ERROR], sts=MFX_ERR_NOT_FOUND(-9), TranscodingSample::CTranscodingPipeline::LoadGenericPlugin, pVPPPlugin->LoadDLL failed at C:\Users\vpikovsk\Desktop\MediaSDK\samples\sample_multi_transcode\src\pipeline_transcode.cpp:4112

[ERROR], sts=MFX_ERR_NOT_FOUND(-9), TranscodingSample::CTranscodingPipeline::VPPPreInit, LoadGenericPlugin failed at C:\Users\vpikovsk\Desktop\MediaSDK\samples\sample_multi_transcode\src\pipeline_transcode.cpp:371

[ERROR], sts=MFX_ERR_NOT_FOUND(-9), TranscodingSample::CTranscodingPipeline::Init, VPPPreInit failed at C:\Users\vpikovsk\Desktop\MediaSDK\samples\sample_multi_transcode\src\pipeline_transcode.cpp:3727

[ERROR], sts=MFX_ERR_NOT_FOUND(-9), TranscodingSample::Launcher::Init, pThreadPipeline->pPipeline->Init failed at C:\Users\vpikovsk\Desktop\MediaSDK\samples\sample_multi_transcode\src\sample_multi_transcode.cpp:441

[ERROR], sts=MFX_ERR_NOT_FOUND(-9), wmain, transcode.Init failed at C:\Users\vpikovsk\Desktop\MediaSDK\samples\sample_multi_transcode\src\sample_multi_transcode.cpp:1143

C:\Users\vpikovsk\Desktop\build\win_Win32\Debug\bin>

 

facing those messages , this is plugin issue ? if it does , how do i solve it please ?

0 Kudos
Mark_L_Intel1
Moderator
1,154 Views

Hi Vladimir,

I think this is related to jpeg profile, I got the same error as yours for one JPEG file, but I got succeed with following file:

https://commons.wikimedia.org/wiki/File:Intel-logo.jpg

The error you got is the bitstream header decoding failure, so this related to the JPEG profile. As our document, we support Baseline profile,

https://github.com/Intel-Media-SDK/MediaSDK/blob/master/doc/mediasdkjpeg-man.md#CodecProfile

I check my file that doesn't work, it has profile description "sRGB IEC61966-2.1", I am not the expert on this but it looks like not a baseline profile.

Mark

0 Kudos
vladko
Novice
1,007 Views

hi mark , still facing the issue , could we please chat on intel skype ? 

i am an intel employee

0 Kudos
Reply