On Jul 28 20:19:48, raf...@sizeofvoid.org wrote:
> On Sun Jul 28, 2024 at 06:52:04PM GMT, Jan Stary wrote:
> > On Jul 28 18:37:55, raf...@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.

With the updated intel-vaapi-driver, vainfo says:

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: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Sandybridge Desktop - 
2.4.1
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc

So I suppose I can use the i965 to help decode some H264 videos.

        Thanks!

                Jan


Reply via email to