Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting DeliverOutput return error = -1 while running sample_decode with option -r #761

Open
reposSushant opened this issue Sep 29, 2023 · 1 comment

Comments

@reposSushant
Copy link

Hi i am exploring oneVPL , installed on my linux machine and checking samples , i running below command and getting below error
sample_decode h265 -hw -i $HOME/oneVPL/examples/content/cars_320x240.h265 -r
getting below error
CONFIGURE LOADER: required implementation: hw
CONFIGURE LOADER: required implementation mfxAccelerationMode: MFX_ACCEL_MODE_VIA_VAAPI
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
pretending that aspect ratio is 1:1
Loaded Library configuration:
Version: 1.35
ImplName: mfxhw64
Adapter number : 0
Adapter type: integrated
DRMRenderNodeNum: 128
Used implementation number: 0
Loaded modules:
0: /usr/lib/x86_64-linux-gnu/libmfxhw64.so.1.35

Decoding Sample Version 8.4.27.0

Input video HEVC
Output format NV12
Input:
Resolution 320x240
Crop X,Y,W,H 0,0,320,240
Output:
Resolution 320x240
Frame rate 25.00
Memory type vaapi
MediaSDK impl hw
MediaSDK version 1.35

Decoding started
DeliverOutput return error = -1 fread_fps: 0.000, fwrite_fps: 0.000
Frame number: 1, fps: 26.672, fread_fps: 0.000, fwrite_fps: 8333.333
Decoding finished
please find my machine information below
Linux collab8-PRO 6.2.0-33-generic intel/libvpl#33 SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
also please find vpl-inspect output below
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: 3185/0
Version: 1.1
mfxDecoderDescription:
Version: 0.0
mfxEncoderDescription:
Version: 0.0
mfxVPPDescription:
Version: 0.0
NumExtParam: 0

Total number of implementations found = 1

@reposSushant
Copy link
Author

i tried to debug vaPutsurface is returning 18 return value and it is failing with MFX_ERR_INVALID_VIDEO_PARAM

this line is returning VA_STATUS_ERROR_INVALID_PARAMETER in media_driver/linux/common**/ddi/media_libva_putsurface_linux.cpp line 340
dri_drawable = dri_vtable->get_drawable(ctx, (Drawable)draw);**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant