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 VA_STATUS_ERROR_UNSUPPORTED_RT_FORMAT #298

Open
shakeeb80 opened this issue Apr 25, 2019 · 7 comments
Open

Getting VA_STATUS_ERROR_UNSUPPORTED_RT_FORMAT #298

shakeeb80 opened this issue Apr 25, 2019 · 7 comments

Comments

@shakeeb80
Copy link

shakeeb80 commented Apr 25, 2019

Does any one know what this error message means. I am getting this error after calling vaCreateSurfaces(). I am using libva 2.4.0 and iHD driver. The function is trying to allocate NV12

@XinfengZhang
Copy link
Contributor

@shakeeb80 could you print the parameter when you call vaCreateSurfaces()?

@shakeeb80
Copy link
Author

following is the code , it is taken from gstreamer media sdk which is actually failing ( https://github.com/intel/gstreamer-media-SDK/blob/0c25a4c6b724a03676cdf3dc14d85ca74f22ba5c/gst-libs/mfx/gstmfxtask.c )
It is failing on line number 157. The weird things is that it only happens when I link the gstreamer elements using shared objects. If I statically link it works.

VASurfaceAttrib attrib;
VASurfaceID surfaces[12];

attrib.type = VASurfaceAttribPixelFormat;
attrib.flags = VA_SURFACE_ATTRIB_SETTABLE;
attrib.value.type = VAGenericValueTypeInteger;
attrib.value.value.i = VA_FOURCC_NV12;

GST_MFX_DISPLAY_LOCK(task->display);
auto status = vaCreateSurfaces(
GST_MFX_DISPLAY_VADISPLAY(task->display),
VA_RT_FORMAT_YUV420,
1920,
1088,
surfaces,
12,
&attrib,
1);

GST_MFX_DISPLAY_UNLOCK(task->display);

@XinfengZhang
Copy link
Contributor

it is interesting, could some one provide help on this issue?

@XinfengZhang
Copy link
Contributor

@ceyusa @sreerenjb

@ceyusa
Copy link
Contributor

ceyusa commented May 9, 2019

with "statically linked" do you mean libva?

That error comes up from the driver, which cannot be statically linked. You should debug the callback in the driver.

Regarding gstreamer-media-SDK neither @sreerenjb nor myself were the maintainers :)

@uartie
Copy link
Contributor

uartie commented May 9, 2019

@SiewHoon

@SiewHoon
Copy link
Contributor

SiewHoon commented May 10, 2019

Can you provide the reproduce step for me? I will check on it.

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

No branches or pull requests

5 participants