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

运行sample_encode_x11两次, 同样的命令第一次成功, 第二次报错, 报错内容为-7

崇龙_战_
Beginner
597 Views

hello

  我安装intel media sdk R6版本在ubuntu 上, ubuntu是14.04.3

uname -a

Linux suirui 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

我安装文档的generic 的方式安装的, 然后编译sample MediaSamples_Linux_6.0.16043175.175, 产生了sample_encode_x11 bin文件, 然后我使用命令./sample_encode_x11 h264 -i test_stream_176x96.yuv -o 3.264 -w 176 -h 96  -vaapi

第一次运行正常, 产生了h264文件

libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
Encoding Sample Version 0.0.000.0000

Input file format       YUV420
Output video            AVC 
Source picture:
        Resolution      176x96
        Crop X,Y,W,H    0,0,176,96
Destination picture:
        Resolution      176x96
        Crop X,Y,W,H    0,0,176,96
Frame rate      30.00
Bit rate(Kbps)  112
Target usage    balanced
Memory type     d3d
Media SDK impl          hw
Media SDK version       1.16

Processing started
Frame number: 101
Processing finished

 

同样的命令第二次报错了

libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
Encoding Sample Version 0.0.000.0000

Input file format       YUV420
Output video            AVC 
Source picture:
        Resolution      176x96
        Crop X,Y,W,H    0,0,176,96
Destination picture:
        Resolution      176x96
        Crop X,Y,W,H    0,0,176,96
Frame rate      30.00
Bit rate(Kbps)  112
Target usage    balanced
Memory type     d3d
Media SDK impl          hw
Media SDK version       1.16

Processing started

Return on error: error code -7, /home/suirui/MediaSamples_Linux_6.0.16043175.175/samples/sample_encode/src/pipeline_encode.cpp  1212


Return on error: error code -7, /home/suirui/MediaSamples_Linux_6.0.16043175.175/samples/sample_encode/src/pipeline_encode.cpp  1367


Return on error: error code 1,  /home/suirui/MediaSamples_Linux_6.0.16043175.175/samples/sample_encode/src/sample_encode.cpp    678

第三次再运行该命令又正常了, 我查了一下该错误, 是MFX_ERR_LOCK_MEMORY, 是什么原因产生的?

0 Kudos
2 Replies
崇龙_战_
Beginner
597 Views

使用的设备是intel NUC NUC5i5RYK

0 Kudos
Sravanthi_K_Intel
597 Views

Hello there - Closing this thread since you started another one for the same topic, and have Intel folks working with you. Thanks.

0 Kudos
Reply