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

MEDIA SDK 8.3.26 - sample_encode: MFX_ERR_NULL_PTR(-2), MFX_ERR_MEMORY_ALLOC(-4)

Jirák__Jakub
Beginner
384 Views

Hi there I fould like to ask here for help, I just trying to try sample_encoder from Media SDK in version 8.3.26. But I see only: 

./sample_encode h265 -g 120 -r 1 -u veryslow -b 1500 -f 60 -n 1080 -i ~/input.yuv -o output.h265 -w 1920 -h 1080 -hw
plugin_loader.h :186 [INFO] Plugin was loaded from GUID: { 0x6f, 0xad, 0xc7, 0x91, 0xa0, 0xc2, 0xeb, 0x47, 0x9a, 0xb6, 0xdc, 0xd5, 0xea, 0x9d, 0xa3, 0x47 } (Intel (R) Media SDK HW plugin for HEVC ENCODE)

[ERROR], sts=MFX_ERR_NULL_PTR(-2), Init, m_fSource pointer is NULL at /home/jirakj/IntelMediaSDK/samples/sample_common/src/sample_utils.cpp:468

[ERROR], sts=MFX_ERR_NULL_PTR(-2), InitFileWriter,  failed at /home/jirakj/IntelMediaSDK/samples/sample_encode/src/pipeline_encode.cpp:1169

[ERROR], sts=MFX_ERR_NULL_PTR(-2), InitFileWriters, InitFileWriter failed at /home/jirakj/IntelMediaSDK/samples/sample_encode/src/pipeline_encode.cpp:1230

[ERROR], sts=MFX_ERR_NULL_PTR(-2), Init, InitFileWriters failed at /home/jirakj/IntelMediaSDK/samples/sample_encode/src/pipeline_encode.cpp:1423

[ERROR], sts=MFX_ERR_NULL_PTR(-2), main, pPipeline->Init failed at /home/jirakj/IntelMediaSDK/samples/sample_encode/src/sample_encode.cpp:1294
Frame number: 0
plugin_loader.h :212 [INFO] MFXBaseUSER_UnLoad(session=0x0x55ddc43f7d40), sts=0

After second try to run:

plugin_loader.h :186 [INFO] Plugin was loaded from GUID: { 0x6f, 0xad, 0xc7, 0x91, 0xa0, 0xc2, 0xeb, 0x47, 0x9a, 0xb6, 0xdc, 0xd5, 0xea, 0x9d, 0xa3, 0x47 } (Intel (R) Media SDK HW plugin for HEVC ENCODE)

[ERROR], sts=MFX_ERR_MEMORY_ALLOC(-4), CreateAllocator, CreateHWDevice failed at /home/jirakj/IntelMediaSDK/samples/sample_encode/src/pipeline_encode.cpp:1022

[ERROR], sts=MFX_ERR_MEMORY_ALLOC(-4), Init, CreateAllocator failed at /home/jirakj/IntelMediaSDK/samples/sample_encode/src/pipeline_encode.cpp:1432

[ERROR], sts=MFX_ERR_MEMORY_ALLOC(-4), main, pPipeline->Init failed at /home/jirakj/IntelMediaSDK/samples/sample_encode/src/sample_encode.cpp:1294
Frame number: 0
plugin_loader.h :212 [INFO] MFXBaseUSER_UnLoad(session=0x0x55d2dccc2d40), sts=0


Can any one help me solve this kind of problems? From source code is not clear what is wrong.

 

Thank you in advance for help.

 

Jakub 

 

0 Kudos
0 Replies
Reply