- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
i use stream decode(HW)for linux,but it‘s must root user.
i test found,the proble maybe library for libva,it‘s must root user.if use official website latest,normal user its ok,but libmfxhw64.so: undefined reference to `vaCreateSurfaces@VA_API_0.34.0' why?can you help me
test example:
test code:
#include <stdio.h> #include <va/va.h> #include <va/va_drm.h> #include <fcntl.h> void main() { int fd; VADisplay _va_dpy; fd = open("/dev/dri/card0", O_RDWR); printf(" open fd:%d", fd); _va_dpy = vaGetDisplayDRM(fd); int maj_ver, min_ver; vaInitialize(_va_dpy, &maj_ver, &min_ver); }
gcc test.c -L /usr/local/lib -lva-drm
1.result:(normal user) use http://www.freedesktop.org/software/vaapi/releases/libva/libva-1.2.1.tar.bz2 libva livdrm
[zhaoya@localhost decode]$ ./a.out
libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns 0
2.result:(normal user) use libva libdrm in linux media sdk
[zhaoya@localhost bin]$ ./a.out
libva info: VA-API version 0.34.0
open lib: Invalid argument
libva info: va_getDriverName() returns 1
i try use libva of official website latest replace it, but have error:libmfxhw64.so: undefined reference to `vaCreateSurfaces@VA_API_0.34.0'
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Media SDK ships with a customized libva. It is not expected to work with the general version. For now there are many scenarios where Intel Media SDK runs best as root. Please let us know if this is acceptable or running as a non-privileged user is a strong requirement.
Thanks, Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
now our company product add the sdk function, running as a non-privileged user is a strong, i need help. how solutions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For now many scenarios require running as root with Media SDK for Linux Servers. Work is in progress to remove this limitation. If this is a blocking issue please feel free to send a private message so we can discuss next steps.

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