Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Jirák__Jakub
Beginner
64 Views

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

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