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.
3075 Discussions

MFX_ERR_NULL_PTR, MFX_ERR_UNSUPPORTED returns with 12th Gen Intel CPU. Windows Server 2022 21H2

parksh
New Contributor I
1,274 Views

We have been using 'Intel Media SDK 2014 R2 Windows Server' H264, JPEG Hardware Encode/Decode within our own video communications software application for quite some time without any problems. Recently, I used my Server to 12th Gen Intel(R) Core(TM) i7-12700.

    SDK : Intel Media SDK 2014 R2 Windows Server

    h264, jpeg hardware encoding
    decode plugin -> custom dll load
    mpeg4 decode -> h264 hardware encoding

 

    CPU : Intel Xeon E3-1286 v3
    GPU : Intel HD Graphics P4600/P4700
    OS : Windows Server 2012 R2 Standard
    Version : 6.3.9600

    -> h264 -> h264 hardware encoding 'OK'
         h264 -> jpeg hardware encoding 'OK'

         custom dll load 'OK'

 

    CPU : 12th Gen Intel(R) Core(TM) i7-12700
    GPU : Intel UHD Graphics 770
    OS : Windows Server 2022 Standard
    Version : 21H2

    -> h264 -> h264 hardware encoding 'OK'
        h264 -> jpeg hardware encoding 'Error MFX_ERR_NULL_PTR -2'
        h264 -> jpeg software encoding 'OK'

       custom dll load 'Error MFX_ERR_UNSUPPORTED -3'

 

 

Sample_code Installation Version/Build Version Test Results

 

1. Installation Version sample_encode 테스트
# \Intel Media SDK Samples\Video Encoding Sample 5.0.461.91752\_bin\x64
# yuv -> h264
# CPU version
sample_encode h264 -w 1920 -h 1080 -f 30 -i "C:\\Users\\Administrator\\Documents\\200.yuv" -o "C:\\Users\\Administrator\\Documents\\result.h264"
Intel(R) Media SDK Encoding Sample Version 5.0.461.92695

Input file format YUV420
Output video AVC
Source picture:
Resolution 1920x1088
Crop X,Y,W,H 0,0,1920,1080
Destination picture:
Resolution 1920x1088
Crop X,Y,W,H 0,0,1920,1080
Frame rate 30.00
Bit rate(Kbps) 3757
Target usage balanced
Memory type system
Media SDK impl sw
Media SDK version 1.10

Processing started
Frame number: 3
Processing finished


# GPU version
sample_encode h264 -w 1920 -h 1080 -f 30 -i "C:\\Users\\Administrator\\Documents\\200.yuv" -o "C:\\Users\\Administrator\\Documents\\result.h264" -hw
Intel(R) Media SDK Encoding Sample Version 5.0.461.92695

Input file format YUV420
Output video AVC
Source picture:
Resolution 1920x1088
Crop X,Y,W,H 0,0,1920,1080
Destination picture:
Resolution 1920x1088
Crop X,Y,W,H 0,0,1920,1080
Frame rate 30.00
Bit rate(Kbps) 3757
Target usage balanced
Memory type system
Media SDK impl hw
Media SDK version 1.255

Processing started
Frame number: 3
Processing finished


# yuv -> jpeg
# CPU version
sample_encode jpeg -w 1920 -h 1080 -f 30 -q 90 -i "C:\\Users\\Administrator\\Documents\\200.yuv" -o "C:\\Users\\Administrator\\Documents\\result.jpg"
Intel(R) Media SDK Encoding Sample Version 5.0.461.92695

Input file format YUV420
Output video JPEG
Source picture:
Resolution 1920x1088
Crop X,Y,W,H 0,0,1920,1080
Destination picture:
Resolution 1920x1088
Crop X,Y,W,H 0,0,1920,1080
Frame rate 30.00
Bit rate(Kbps) 0
Target usage quality
Memory type system
Media SDK impl sw
Media SDK version 1.10

Processing started
Frame number: 3
Processing finished


# GPU version
sample_encode jpeg -w 1920 -h 1080 -f 30 -q 90 -i "C:\\Users\\Administrator\\Documents\\200.yuv" -o "C:\\Users\\Administrator\\Documents\\result.jpg" -hw
Intel(R) Media SDK Encoding Sample Version 5.0.461.92695

Input file format YUV420
Output video JPEG
Source picture:
Resolution 1920x1088
Crop X,Y,W,H 0,0,1920,1080
Destination picture:
Resolution 1920x1088
Crop X,Y,W,H 0,0,1920,1080
Frame rate 30.00
Bit rate(Kbps) 0
Target usage quality
Memory type system
Media SDK impl hw
Media SDK version 1.255

Processing started
Frame number: 3
Processing finished


2. Build Version sample_encode 테스트
# \Intel Media SDK Samples\Video Encoding Sample 5.0.461.91752\_build\x64\Release
# yuv -> h264
# CPU version
sample_encode h264 -w 1920 -h 1080 -f 30 -i "C:\\Users\\Administrator\\Documents\\200.yuv" -o "C:\\Users\\Administrator\\Documents\\result.h264"
Intel(R) Media SDK Encoding Sample Version 5.0.461.92695

Input file format YUV420
Output video AVC
Source picture:
Resolution 1920x1088
Crop X,Y,W,H 0,0,1920,1080
Destination picture:
Resolution 1920x1088
Crop X,Y,W,H 0,0,1920,1080
Frame rate 30.00
Bit rate(Kbps) 3757
Target usage balanced
Memory type system
Media SDK impl sw
Media SDK version 1.10

Processing started
Frame number: 3
Processing finished

# GPU version
sample_encode h264 -w 1920 -h 1080 -f 30 -i "C:\\Users\\Administrator\\Documents\\200.yuv" -o "C:\\Users\\Administrator\\Documents\\result.h264" -hw
Intel(R) Media SDK Encoding Sample Version 5.0.461.92695

Input file format YUV420
Output video AVC
Source picture:
Resolution 1920x1088
Crop X,Y,W,H 0,0,1920,1080
Destination picture:
Resolution 1920x1088
Crop X,Y,W,H 0,0,1920,1080
Frame rate 30.00
Bit rate(Kbps) 3757
Target usage balanced
Memory type system
Media SDK impl hw
Media SDK version 1.255

Processing started
Frame number: 3
Processing finished


# yuv -> jpeg
# CPU version(MFX_ERR_NULL_PTR -2)
sample_encode jpeg -w 1920 -h 1080 -f 30 -q 90 -i "C:\\Users\\Administrator\\Documents\\200.yuv" -o "C:\\Users\\Administrator\\Documents\\result.jpg"

Return on error: error code -2, src\pipeline_encode.cpp 839


Return on error: error code -2, src\pipeline_encode.cpp 896


Return on error: error code -2, src\pipeline_encode.cpp 918


Return on error: error code 1, src\sample_encode.cpp 424

Frame number: 0
※ zvrts MFX_IMPL_SOFTWARE 모드에서 정상 작동 되면 샘플도 정상 작동 되야 되는거 같은데 에러 발생?

 

# GPU version
sample_encode jpeg -w 1920 -h 1080 -f 30 -q 90 -i "C:\\Users\\Administrator\\Documents\\200.yuv" -o "C:\\Users\\Administrator\\Documents\\result.jpg" -hw

Return on error: error code -2, src\pipeline_encode.cpp 839


Return on error: error code -2, src\pipeline_encode.cpp 896


Return on error: error code -2, src\pipeline_encode.cpp 918


Return on error: error code 1, src\sample_encode.cpp 424

Frame number: 0


Thank you.

0 Kudos
4 Replies
AlekhyaV_Intel
Moderator
1,190 Views

Hi,


Thank you for posting in Intel Communities.


We could observe that you're using an older version of MediaSDK i.e. 2014 R2. That version might not have support for 12th gen processors and some functions wouldn't be working. We have the below workarounds for you so that you can proceed with your work:


  1. MediaSDK has migrated to oneVPL, hence we suggest you to work with oneVPL. You could get Intel oneVPL with Intel oneAPI Base toolkit or you could install a standalone version of oneVPL. Please refer this link(https://www.intel.com/content/www/us/en/developer/tools/oneapi/onevpl.html#gs.pkssz4) for more information.
  2. Or you could simply get latest MediaSDK by cloning this Git repository(https://github.com/Intel-Media-SDK/MediaSDK) Please follow all the steps, without fail, so you wouldn't get any issues.

If this resolves your issue, make sure to accept this as a solution. This helps others with similar issue. Thank you!


Regards,

Alekhya


0 Kudos
AlekhyaV_Intel
Moderator
1,120 Views

Hi,


Has the solution provided helped? Did you try updating MediaSDK? Could you please give us an update regarding this issue?


Regards,

Alekhya


0 Kudos
parksh
New Contributor I
1,104 Views
Thank you for your reply.

I try upgrade to oneVPL.

Thanks again for your help.
0 Kudos
AlekhyaV_Intel
Moderator
1,092 Views

Hi,


Thanks for confirming. We will close this thread now. If you need any further assistance, please post a new question as this thread will no longer be monitored by Intel.


Regards,

Alekhya


0 Kudos
Reply