Hardveres gyorsítás Intel kártyával, Chromium alatt Fedora 35-on.

Sziasztok! 

 

Probalom ravenni a notim, hogy a chromium alatt hardveresen gyorsitsa a videokat.

 

chromium-freeword-ot hasznalok, mert abban elv van VAAPI szupport.

Igy inditom:

 

chromium-freeworld --ignore-gpu-blacklist --ignore-gpu-blocklist --use-gl=egl --enable-accelerated-video-decode --enable-features=VaapiVideoDecoder

par info:

 

vainfo 
libva info: VA-API version 1.13.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_12
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.13 (libva 2.13.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Mobile - 2.4.1
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Simple            :	VAEntrypointEncSlice
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264MultiviewHigh      :	VAEntrypointVLD
      VAProfileH264MultiviewHigh      :	VAEntrypointEncSlice
      VAProfileH264StereoHigh         :	VAEntrypointVLD
      VAProfileH264StereoHigh         :	VAEntrypointEncSlice
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointVLD

A chrome://gpu azt mondja, elv hw-sen dekodol, de en nem erzem ugy.... a CPU hasznalaton latszik, hogy nincs HW decode...

Valakinek mar sikerult osszehozni Intel kartyaval ezt?

Hozzászólások

Milyen codecje van annak a videonak, amit nezel? Azt tamogatja a hardvered? A Youtube VP9-hez peldaul szerintem keves lesz a Haswell (csak Profile 0 van), mert ugy tudom, hogy a Youtubeon pl Profile 1, 2 es 3 kellene.

Én egyzer végigkonfigoltam a hw gyorsítást chromiumon, de aztán ki is kapcsoltam, mert a böngészés sokkal lassabb lett... vszinu az egl miatt

Igen, nalam is ez van... Addig mar eljutottam mar, h h264 + --use-gl=egl -el van HW gyorsitas egyedul, de akad a video...

 

Szerk:

 

X11-el viszont ugy nez ki faxa, igy:

 

chromium-freeworld --ignore-gpu-blacklist --ignore-gpu-blocklist --use-gl=egl --enable-accelerated-video-decode --enable-features=VaapiVideoDecoder

 

Van arra mod, hogy Wayland alatt csak egy appot X11-el futtassak? 

Szerkesztve: 2021. 12. 14., k – 16:18

Meglett a megoldas :)

https://github.com/macchrome/linchrome

 

linchrome -enable-features=VaapiVideoDecoder --enable-clear-hevc-for-testing

 

Gyororuen megy vele a geforce now, wayland alatt is! (mellesleg az egyetlen Chromium alapu bongeszo, ami csont nelkul megjeleniti a h265-os kameraim kepet, de ez mar mas kerdes :D )

Regebb ota a gepemen van amugy (pont kamerak miatt) gondolotam kiprobalom ezzel is es csont nelkul viszi! (amugy "gyanus" nekem ez a build, asszem nem veletlen, hogy nem teszi kozze a forraskodot... Tuti van benne valami, ami nem legalis...)

 

Tevedtem, ugy nez ki wayland alatt megsem megy, csak X11-el... Ezt a 2020-as bejegyzest talaltam, nem tudom mennyire aktualis meg.

 

https://ask.fedoraproject.org/t/cannot-enable-chromium-freeworld-hardwa…

 

"I think chromium-freeworld does not support VA-API through Xwayland as of yet. The work on Ozone and thus native wayland support is still in progress.

Can you please test if hardware acceleration is working as expected when starting your session with “GNOME on Xorg” in the login screen?

The used display server can be checked with echo $XDG_SESSION_TYPE (x11 = Xorg)."

 

Egyelore maradok X11-en... (Bar itt meg mas hiba van... :D )