Index | Thread | Search

From:
Rafael Sadowski <rafael@sizeofvoid.org>
Subject:
Re: Enable VA-API in graphics/ffmpeg
To:
Jan Stary <hans@stare.cz>
Cc:
ports <ports@openbsd.org>
Date:
Sun, 28 Jul 2024 20:19:48 +0200

Download raw body.

Thread
  • Brad Smith:

    Enable VA-API in graphics/ffmpeg

  • On Sun Jul 28, 2024 at 06:52:04PM GMT, Jan Stary wrote:
    > On Jul 28 18:37:55, rafael@sizeofvoid.org wrote:
    > > On Sun Jul 28, 2024 at 06:35:37PM GMT, Jan Stary wrote:
    > > > Before I get down the rabbit hole,
    > > > is there any way to tell which codecs
    > > > my inteldrm is able to decode/accelerate
    > > > and how much it is worth it?
    > 
    > cd /usr/ports/sysutils/libva-utils && make install && vainfo
    > 
    > Thanks for the quick hint. This is what vainfo -a has to say:
    > 
    > Trying display: x11
    > libva info: VA-API version 1.22.0
    > libva info: Trying to open /usr/X11R6/lib/modules/dri/iHD_drv_video.so
    > libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
    > libva info: va_openDriver() returns -1
    > libva info: Trying to open /usr/X11R6/lib/modules/dri/i965_drv_video.so
    > libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
    > libva info: va_openDriver() returns -1
    > vaInitialize failed with error code -1 (unknown libva error),exit
    > 
    > Note the filepaths: indeed,
    > 
    > ls: /usr/X11R6/lib/modules/dri/i965_drv_video.so: No such file or directory
    > ls: /usr/local/lib/dri/i965_drv_video.so: No such file or directory
    > 
    > I have intel-vaapi-driver-2.4.1 installed,
    
    You need to upgrade to intel-vaapi-driver-2.4.1p0.
    intel-vaapi-driver-2.4.1 is no longer in sync with xenocara -current.
    
    Our libva searches /usr/local/lib/dri/ and /usr/X11R6/lib/modules/dri/
    for drivers since the last change.
    
    > which provides a single file, namely
    > 
    > /usr/local/lib/xorg/modules/i965_drv_video.so
    > 
    > but vainfo doesn't seem to even try that.
    > Is there a way to tell vainfo to try that?
    > (libva-utils is a bunch of binaries with no manpage.)
    > 
    > 	Jan
    > 
    > 
    > 
    
    
    
  • Brad Smith:

    Enable VA-API in graphics/ffmpeg