- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Support
I am trying to run oneVPL sample code on my system by following this link .
Please find below command i am running
sample_encode mpeg2 -hw -i content/cars_320x240.i420 -w 320 -h 240 -o output.bit
and error i am getting
CONFIGURE LOADER: required implementation: hw
CONFIGURE LOADER: required implementation mfxAccelerationMode: MFX_ACCEL_MODE_VIA_VAAPI
libva info: VA-API version 1.14.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
libva info: VA-API version 1.14.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
[ERROR], sts=MFX_ERR_UNSUPPORTED(-3), AllocFrames, Query (for encoder) failed at /home/sushant/MISC/oneVPL/tools/legacy/sample_encode/src/pipeline_encode.cpp:1003
[ERROR], sts=MFX_ERR_UNSUPPORTED(-3), ResetMFXComponents, AllocFrames failed at /home/sushant/MISC/oneVPL/tools/legacy/sample_encode/src/pipeline_encode.cpp:2078
[ERROR], sts=MFX_ERR_UNSUPPORTED(-3), Init, ResetMFXComponents failed at /home/sushant/MISC/oneVPL/tools/legacy/sample_encode/src/pipeline_encode.cpp:1860
[ERROR], sts=MFX_ERR_UNSUPPORTED(-3), main, pPipeline->Init failed at /home/sushant/MISC/oneVPL/tools/legacy/sample_encode/src/sample_encode.cpp:1898
Frame number: 0
Encoding fps: -nan
Please help me to find right solution to it .
Regards
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
please find system_analyzer details below:
------------------------------------
Looking for GPU interfaces available to OS...
FOUND: /dev/dri/renderD128
GPU interfaces found: 1
------------------------------------
------------------------------------
Available implementation details:
libva info: VA-API version 1.14.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
Implementation #0: mfxhw64
Library path: /usr/lib/x86_64-linux-gnu/libmfxhw64.so.1.35
AccelerationMode: MFX_ACCEL_MODE_VIA_VAAPI
ApiVersion: 1.35
Impl: MFX_IMPL_TYPE_HARDWARE
ImplName: mfxhw64
MediaAdapterType: MFX_MEDIA_UNKNOWN
VendorID: 0x8086
DeviceID: 0x3E92
GPU name: unknown (arch=na codename=na)
PCI BDF: FFFFFFFF:FFFFFFFF:FFFFFFFF.FFFFFFFF
PCI RevisionID: 0xFFFF
DRMRenderNodeNum: 128
DeviceName: mfxhw64
------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am running it on linux Ubuntu environement
Also please found vainfo command implementation
error: XDG_RUNTIME_DIR not set in the environment.
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.14 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.3.1 ()
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thank you for posting in Intel Communities. Thank you for sharing all the details.
We didn't encounter any error when we tried sample_encode(oneVPL 2023.0.0) with cars_320x240.i420 video file given in Content folder with the command you provided. Please find the commands which worked for us:
sample_encode mpeg2 -hw -i cars_320x240.i420 -w 320 -h 240 -o output.bit
sample_encode mpeg2 -hw -i cars_320x240.i420 -w 320 -h 240 -o output.mpeg2
sample_encode.exe mpeg2 -i cars_320x240.i420 -o out-with-carsi420.mpeg2 -w 320 -h 240 -b 15000 -u speed -hw
Please provide us the below information so that we could debug your issue further.
- Your exact OS details
- Your Processor details/Entire system details
- Did you make any changes to the oneVPL sample? If yes, please share the code file.
Regards,
Alekhya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alekhya
Thanks for your response , i have not made any changes to one VPL sample .
i tried with your set of commands but no success.
Please find my os details below
Linux ubuntu22-devel 5.15.0-58-lowlatency #64-Ubuntu SMP PREEMPT Fri Jan 6 03:36:28 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
and GPU details
*-display
description: VGA compatible controller
product: CoffeeLake-S GT2 [UHD Graphics 630]
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
logical name: /dev/fb0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom fb
configuration: depth=32 driver=i915 latency=0 resolution=1280,720
resources: irq:127 memory:a0000000-a0ffffff memory:90000000-9fffffff ioport:4000(size=64) memory:c0000-dffff
and Implementation details
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
Implementation #0: mfxhw64
Library path: /usr/lib/x86_64-linux-gnu/libmfxhw64.so.1.35
AccelerationMode: MFX_ACCEL_MODE_VIA_VAAPI
ApiVersion: 1.35
Impl: MFX_IMPL_TYPE_HARDWARE
VendorImplID: 0x0000
ImplName: mfxhw64
License:
Version: 1.2
Keywords: MSDK,x64
VendorID: 0x8086
mfxAccelerationModeDescription:
Version: 1.0
Mode: MFX_ACCEL_MODE_VIA_VAAPI
mfxPoolPolicyDescription:
Version: 1.0
mfxDeviceDescription:
MediaAdapterType: MFX_MEDIA_UNKNOWN
DeviceID: 3e92/0
Version: 1.1
mfxDecoderDescription:
Version: 0.0
mfxEncoderDescription:
Version: 0.0
mfxVPPDescription:
Version: 0.0
NumExtParam: 0
Total number of implementations found = 1
i hope i am not missing any implementation ?
Thanks & Regards
Sushant Kaushik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alekhya
Thanks for your response , i have not made any changes to one VPL sample .
i tried with your set of commands but no success.
Please find my os details below
Linux ubuntu22-devel 5.15.0-58-lowlatency #64-Ubuntu SMP PREEMPT Fri Jan 6 03:36:28 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
and GPU details
*-display
description: VGA compatible controller
product: CoffeeLake-S GT2 [UHD Graphics 630]
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
logical name: /dev/fb0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom fb
configuration: depth=32 driver=i915 latency=0 resolution=1280,720
resources: irq:127 memory:a0000000-a0ffffff memory:90000000-9fffffff ioport:4000(size=64) memory:c0000-dffff
and Implementation details
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
Implementation #0: mfxhw64
Library path: /usr/lib/x86_64-linux-gnu/libmfxhw64.so.1.35
AccelerationMode: MFX_ACCEL_MODE_VIA_VAAPI
ApiVersion: 1.35
Impl: MFX_IMPL_TYPE_HARDWARE
VendorImplID: 0x0000
ImplName: mfxhw64
License:
Version: 1.2
Keywords: MSDK,x64
VendorID: 0x8086
mfxAccelerationModeDescription:
Version: 1.0
Mode: MFX_ACCEL_MODE_VIA_VAAPI
mfxPoolPolicyDescription:
Version: 1.0
mfxDeviceDescription:
MediaAdapterType: MFX_MEDIA_UNKNOWN
DeviceID: 3e92/0
Version: 1.1
mfxDecoderDescription:
Version: 0.0
mfxEncoderDescription:
Version: 0.0
mfxVPPDescription:
Version: 0.0
NumExtParam: 0
Total number of implementations found = 1
i hope i am not missing any implementation ?
Thanks & Regards
Sushant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alekhya,
it is able to run succesfully in case of jpeg images
please find below output
sample_encode jpeg -q 100 -hw -i /usr/local/share/vpl/examples/content/cars_320x240.mjpeg -w 320 -h 240 -o output.bit
libva info: VA-API version 1.19.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
Encoding Sample Version 8.4.27.0
Input file format YUV420
Output video JPEG
Source picture:
Resolution 320x240
Crop X,Y,W,H 0,0,320,240
Destination picture:
Resolution 320x240
Crop X,Y,W,H 0,0,320,240
Frame rate 30.00
Bit rate(Kbps) 0
Gop size 100
Ref dist 0
Ref number 0
Idr Interval 0
Target usage quality
Memory type vaapi
Media SDK impl hw
Media SDK version 1.35
Processing started
Frame number: 1
Encoding fps: 71
Processing finished
but with other codec it is failing with above mentioned error
sample_encode h264 -hw -i /usr/local/share/vpl/examples/content/cars_320x240.mjpeg -w 320 -h 240 -o output.bit
libva info: VA-API version 1.19.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_14
libva info: va_openDriver() returns 0
[ERROR], sts=MFX_ERR_UNSUPPORTED(-3), AllocFrames, Query (for encoder) failed at /home/sushant/MISC/msdk/samples/sample_encode/src/pipeline_encode.cpp:966
[ERROR], sts=MFX_ERR_UNSUPPORTED(-3), ResetMFXComponents, AllocFrames failed at /home/sushant/MISC/msdk/samples/sample_encode/src/pipeline_encode.cpp:2076
[ERROR], sts=MFX_ERR_UNSUPPORTED(-3), Init, ResetMFXComponents failed at /home/sushant/MISC/msdk/samples/sample_encode/src/pipeline_encode.cpp:1857
[ERROR], sts=MFX_ERR_UNSUPPORTED(-3), main, pPipeline->Init failed at /home/sushant/MISC/msdk/samples/sample_encode/src/sample_encode.cpp:1787
Frame number: 0
Encoding fps: -0
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
also to correct myself i have implementation of MediaSDK on my system not onevpl as i am running on Coffee lake on linux.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for sharing all the details with us. Mjpeg is already an encoded file. Trying to encode it again might result in an error or a corrupted video file. Please check the below readme file where the required input files are YUV420 & NV12 and expected output file(compressed/encoded) would be in the formats: h264, h264, mpeg-2, jpeg/Motion Jpeg, HEVC, etc.
Try encoding a yuv420 or nv12 video files as shown in the below screenshots:
If this resolves your issue, make sure to accept this as solution. This helps others with similar issue. Thank you!
Regards,
Alekhya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @AlekhyaV_Intel Alekhya
Thanks for your response , i am already using NV12 and YUV420 and getting those errors from Day 1 .
one new thing came sample encode is only working with -cqp and when i remove it this error comes again Any idea on this?
/usr/share/mfx/samples/sample_encode h264 -w 176 -h 144 -f 30 -cqp -qpi 30 -qpp 30 -qpb 30 -qsv-ff -i AUD_MW_E.yuv -o encoded_AUD_MW_E.264
found on below page
https://github.com/Intel-Media-SDK/MediaSDK/wiki/Intel-media-stack-on-Ubuntu
Can you please help me understanding that why is is successful with -cqp flag
and for h265 it is still failing with MFX_ERR_DEVICE_FAILED?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
also please help me if i have to download additional configuration or software
below is output of vpl-inspect
Library path: /usr/lib/x86_64-linux-gnu/libmfxhw64.so.1.35
AccelerationMode: MFX_ACCEL_MODE_VIA_VAAPI
ApiVersion: 1.35
Impl: MFX_IMPL_TYPE_HARDWARE
VendorImplID: 0x0000
ImplName: mfxhw64
License:
Version: 1.2
Keywords: MSDK,x64
VendorID: 0x8086
mfxAccelerationModeDescription:
Version: 1.0
Mode: MFX_ACCEL_MODE_VIA_VAAPI
mfxPoolPolicyDescription:
Version: 1.0
mfxDeviceDescription:
MediaAdapterType: MFX_MEDIA_UNKNOWN
DeviceID: 4e71/0
Version: 1.1
mfxDecoderDescription:
Version: 0.0
mfxEncoderDescription:
Version: 0.0
mfxVPPDescription:
Version: 0.0
NumExtParam: 0
Total number of implementations found = 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Apologies for the delay and thanks for sharing all the details.
As per your response, you have mentioned that you're getting the same error even while trying to encode with YUV420 & NV12.
- Could you please share the commands you used along with error screenshots?
- And, Please share the modified encode sample if any.
And regarding your second query along with -cqp flag, we are working on this internally and would get back to you soon with an update.
Regards,
Alekhya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Could you please give us the information that we asked you for?
Meanwhile, Regarding your query on -cqp flag, CQP is a Constant Quantization Parameter(CQP BRC) Bitrate control method. The Quantization Parameter controls the amount of compression for every macroblock in a frame. Large values mean that there will be higher quantization, more compression, and lower quality. Lower values mean the opposite. QP ranges from 0 to 51 in H.264.
[-cqp] - constant quantization parameter (CQP BRC) bitrate control method (by default constant bitrate control method is used), should be used along with -qpi, -qpp, -qpb.
[-qpi] - constant quantizer for I frames (if bitrate control method is CQP). In range [1,51]. 0 by default, i.e.no limitations on QP.
[-qpp] - constant quantizer for P frames (if bitrate control method is CQP). In range [1,51]. 0 by default, i.e.no limitations on QP.
[-qpb] - constant quantizer for B frames (if bitrate control method is CQP). In range [1,51]. 0 by default, i.e.no limitations on QP.
Regards,
Alekhya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We asked few queries about your issue. Could you please answer them?
- Could you please share the commands you used along with error screenshots?
- And, Please share the modified encode sample if any.
And regarding the information we gave on -cqp flag, did it help you with your doubts?
Please give us an update on this?
Regards,
Alekhya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We have not heard back from you about the additional queries we asked. If you need any further information, please post a new question as this thread will no longer be monitored by Intel.
Regards,
Alekhya

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page