[Libva] Permission problem using vaapi.
Víctor M. Jáquez L.
vjaquez at igalia.com
Fri Jul 22 08:01:52 UTC 2016
On 07/22/16 at 06:33am, Xiang, Haihao wrote:
> > Hi,
> > This's a fairly common problem. As root --
> >
> > ./vainfo
> > libva info: VA-API version 0.39.2
> > libva info: va_getDriverName() returns 0
> > libva info: Trying to open
> > /home/de/small/temp_small/libva/root/lib/dri/i965_drv_video.so
> > libva info: Found init function __vaDriverInit_0_39
> > libva info: va_openDriver() returns 0
> > vainfo: VA-API version: 0.39 (libva 1.7.1)
> > vainfo: Driver version: Intel i965 driver for Intel(R) Ironlake
> > Mobile -
> > 1.7.1
> > vainfo: Supported profile and entrypoints
> > VAProfileMPEG2Simple : VAEntrypointVLD
> > VAProfileMPEG2Main : VAEntrypointVLD
> > VAProfileH264ConstrainedBaseline: VAEntrypointVLD
> > VAProfileH264Main : VAEntrypointVLD
> > VAProfileH264High : VAEntrypointVLD
> > VAProfileNone : VAEntrypointVideoProc
> >
> > As user --
> > ./vainfo
> > libva info: VA-API version 0.39.2
> > libva info: va_getDriverName() returns 1
> > libva error: va_getDriverName() failed with operation
> > failed,driver_name=i965
> > vaInitialize failed with error code 1 (operation failed),exit
One simple thing to figure out what file doesn't have the right permissions is
to run vainfo with strace and find where the program fails. As Xiang
mentioned, it could be a misconfiguration in the dev filesystem or in the
drivers, etc.
> >
>
> According to the above info, I presume you are using vaapi on X11, is
> that right? Does vainfo work for you if no X11?
It works with only drm, no X11 is required.
>
> > Yes, I'm in the video group.
>
> What is the permission mode of /dev/dri/card0 and /dev/dri/renderD128?
>
>
> > _______________________________________________
> > Libva mailing list
> > Libva at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/libva
> _______________________________________________
> Libva mailing list
> Libva at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/libva
More information about the Libva
mailing list