linux media sdk about libva problem

linux media sdk about libva problem


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 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 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 undefined reference to `vaCreateSurfaces@VA_API_0.34.0'








4 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

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

now our company product add the sdk function, running as a non-privileged user is a strong, i need help. how solutions?

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.

Accedere per lasciare un commento.