Little help with VAAPI

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Little help with VAAPI

Jerry Geis-2
I am compiling gstreamer by source... trying to get VAAPI to work.
when I run gst-inspect-1.0 | grep vaapi    nothing shows.

I have successfully compiled gstreamer-vaapi-1.12.3  and all its other base and plugins.

Where do I go look to see why vaapi is not getting detected when compiling?
I see that libav compiles with --disable-vaapi ???
so I tried to add --enable-vaapi but it says UNKNOWN option.

How do I get vaapi compiled in gstreamer ?
THanks,

Jerry

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Little help with VAAPI

Pascal Jacquemart

Hi Jerry,

Yes it is a little confusing...

First make sure the vaapi interface is working by running 'vainfo'

Then if you have compiled and installed gstreamer-vaapi repository you
should see the library in $PREFIX/gstreamer-1.0/libgstvaapi.so

If the library seems to be in the right place, you can force GStreamer
to rebuild its registry: rm -f ~/.cache/gstreamer-1.0/registry*

Actually, libav have nothing to do with vaapi. They both provide
encoders and decoders but libav is software based whereas vaapi use
hardware capabilities.

Thanks,          Pascal


On Wed, 16 Oct 2019 07:39:09 -0400
Jerry Geis <[hidden email]> wrote:

> I am compiling gstreamer by source... trying to get VAAPI to work.
> when I run gst-inspect-1.0 | grep vaapi    nothing shows.
>
> I have successfully compiled gstreamer-vaapi-1.12.3  and all its
> other base and plugins.
>
> Where do I go look to see why vaapi is not getting detected when
> compiling? I see that libav compiles with --disable-vaapi ???
> so I tried to add --enable-vaapi but it says UNKNOWN option.
>
> How do I get vaapi compiled in gstreamer ?
> THanks,
>
> Jerry

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Little help with VAAPI

Jerry Geis-2
Thanks.

This is what I get.   My device is NUC5CPYB.

vainfo
libva info: VA-API version 0.40.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
[root@nuc5cdev2 ~]# rm -rf /root/.cache/gstreamer-1.0/

[root@nuc5cdev2 ~]# vainfo
libva info: VA-API version 0.40.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit


[root@nuc5cdev2 ~]# ls /usr/lib64/dri/i965_dri.so
/usr/lib64/dri/i965_dri.so

[root@nuc5cdev2 ~]# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller (rev 21)


Jerry

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Little help with VAAPI

Pascal Jacquemart

Nope it is not looking good...

Do you have /usr/lib64/dri/i965_drv_video.so ???

If not it seems that you need to install
package xorg-x11-drv-intel.x86_64

On Wed, 16 Oct 2019 18:46:51 -0400
Jerry Geis <[hidden email]> wrote:

> Thanks.
>
> This is what I get.   My device is NUC5CPYB.
>
> vainfo
> libva info: VA-API version 0.40.0
> libva info: va_getDriverName() returns 0
> libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
> libva info: va_openDriver() returns -1
> vaInitialize failed with error code -1 (unknown libva error),exit
> [root@nuc5cdev2 ~]# rm -rf /root/.cache/gstreamer-1.0/
>
> [root@nuc5cdev2 ~]# vainfo
> libva info: VA-API version 0.40.0
> libva info: va_getDriverName() returns 0
> libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
> libva info: va_openDriver() returns -1
> vaInitialize failed with error code -1 (unknown libva error),exit
>
>
> [root@nuc5cdev2 ~]# ls /usr/lib64/dri/i965_dri.so
> /usr/lib64/dri/i965_dri.so
>
> [root@nuc5cdev2 ~]# lspci | grep VGA
> 00:02.0 VGA compatible controller: Intel Corporation
> Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated
> Graphics Controller (rev 21)
>
>
> Jerry

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Little help with VAAPI

Jerry Geis-2
HI yes I do have that.


> [root@nuc5cdev2 ~]# ls /usr/lib64/dri/i965_dri.so
> /usr/lib64/dri/i965_dri.so 

 Jerry

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Little help with VAAPI

Jerry Geis-2
In reply to this post by Pascal Jacquemart
Sorry - wrong file I looked at. No I dont have that file.

 ls -l /usr/lib64/dri//i965*
-rwxr-xr-x 2 root root 10641848 Aug 16 12:00 /usr/lib64/dri//i965_dri.so


 yum provides "*/i965_drv_video.*"
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ftp.ussg.iu.edu
 * elrepo: ord.mirror.rackspace.com
 * epel: fedora.mirrors.pair.com
 * extras: ftp.ussg.iu.edu
 * updates: ftp.ussg.iu.edu
No matches found


Jerry


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Little help with VAAPI

Pascal Jacquemart

Ok, for sure you need the intel driver.

But I am not so sure if vaapi can work while still using the
default kms driver. You can try to enable intel driver like this:

cat /etc/X11/xorg.conf.d/20-intel.conf
Section "Device"
  Identifier  "Intel Graphics"
  Driver      "intel"

Confirm before and after the change by checking
/var/log/Xorg.0.log


On Wed, 16 Oct 2019 20:44:41 -0400
Jerry Geis <[hidden email]> wrote:

> Sorry - wrong file I looked at. No I dont have that file.
>
>  ls -l /usr/lib64/dri//i965*
> -rwxr-xr-x 2 root root 10641848 Aug 16
> 12:00 /usr/lib64/dri//i965_dri.so
>
>
>  yum provides "*/i965_drv_video.*"
> Loaded plugins: fastestmirror, langpacks
> Loading mirror speeds from cached hostfile
>  * base: ftp.ussg.iu.edu
>  * elrepo: ord.mirror.rackspace.com
>  * epel: fedora.mirrors.pair.com
>  * extras: ftp.ussg.iu.edu
>  * updates: ftp.ussg.iu.edu
> No matches found
>
>
> Jerry

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Little help with VAAPI

Jerry Geis-2
Hi 

So I created the 20-intel.conf file and rebooted.

[    18.048]    ABI class: X.Org Video Driver, version 24.0
[    18.048] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[    18.051] (II) intel: Driver for Intel(R) HD Graphics
[    18.051] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[    18.051] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[    18.051] (++) using VT number 1

This is what I get now. So I think the Intel driver is loading.

However vainfo is still no go.
 vainfo
libva info: VA-API version 0.40.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

These are the files:
ls /usr/lib64/dri/
i915_dri.so  i965_dri.so  kms_swrast_dri.so  nouveau_dri.so  r300_dri.so  r600_dri.so  radeonsi_dri.so  swrast_dri.so  virtio_gpu_dri.so  vmwgfx_dri.so

So I search for the file:
 yum provides "*/*i965_drv_video.so"
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ftp.ussg.iu.edu
 * elrepo: ord.mirror.rackspace.com
 * epel: ord.mirror.rackspace.com
 * extras: ftp.ussg.iu.edu
 * updates: ftp.ussg.iu.edu
No matches found

I am using CentOS 7.7


Jerry

On Wed, Oct 16, 2019 at 9:09 PM Pascal Jacquemart <[hidden email]> wrote:

Ok, for sure you need the intel driver.

But I am not so sure if vaapi can work while still using the
default kms driver. You can try to enable intel driver like this:

cat /etc/X11/xorg.conf.d/20-intel.conf
Section "Device"
  Identifier  "Intel Graphics"
  Driver      "intel"

Confirm before and after the change by checking
/var/log/Xorg.0.log


On Wed, 16 Oct 2019 20:44:41 -0400
Jerry Geis <[hidden email]> wrote:

> Sorry - wrong file I looked at. No I dont have that file.
>
>  ls -l /usr/lib64/dri//i965*
> -rwxr-xr-x 2 root root 10641848 Aug 16
> 12:00 /usr/lib64/dri//i965_dri.so
>
>
>  yum provides "*/i965_drv_video.*"
> Loaded plugins: fastestmirror, langpacks
> Loading mirror speeds from cached hostfile
>  * base: ftp.ussg.iu.edu
>  * elrepo: ord.mirror.rackspace.com
>  * epel: fedora.mirrors.pair.com
>  * extras: ftp.ussg.iu.edu
>  * updates: ftp.ussg.iu.edu
> No matches found
>
>
> Jerry


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Little help with VAAPI

Stephenwei
Hi,
Maybe you can show the CPU model



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Little help with VAAPI

Victor Jaquez
In reply to this post by Jerry Geis-2

This reference may help

https://blogs.igalia.com/vjaquez/2018/03/28/gstreamer-va-api-troubleshooting/

On Wed, 16 Oct 2019 at 07:39, Jerry Geis wrote:

> I am compiling gstreamer by source... trying to get VAAPI to work.
> when I run gst-inspect-1.0 | grep vaapi    nothing shows.
>
> I have successfully compiled gstreamer-vaapi-1.12.3  and all its other base
> and plugins.
>
> Where do I go look to see why vaapi is not getting detected when compiling?
> I see that libav compiles with --disable-vaapi ???
> so I tried to add --enable-vaapi but it says UNKNOWN option.
>
> How do I get vaapi compiled in gstreamer ?
> THanks,
>
> Jerry

> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel