wiki:Tools/VAAPI

VAAPI

Most of my life I have used crappy low-end Intel laptops with i3 CPUs with shitty HD Graphics.

The only advantage is that I could upgrade DDR3 RAM, install FHD IPS panel and replace battery dirt cheap, compared to Thinkpads or Macbooks.

There is a set of tricks to comfortably watch video lectures and even movies on HD Graphics

At least I am able to play Blade Runner 2049.1080p.WEB-DL.H264.mlv smoothly with mpv and vlc on crappy Intel Corporation Skylake GT2 [HD Graphics 520]

Intel firmware

in /etc/modprobe.d/i915.conf add

options i915 enable_guc=3
options i915 enable_fbc=1

Clang

I believe in Clang and its libc++, so everything must be compiled with -march=native -mtune=native -O3. Even a few percentage points matter.

Wayland

I run gnome-shell on wayland. It is crap, but it is tolerable. Much better than Unity or full blown Gnome.

My Emacs is compiled with gtk3. Chrome uses wayland and gtk3, so why shouldn't I

git clone git://github.com/wayland-project/wayland
git clone git://github.com/wayland-project/wayland-protocols

libdrm

libva needs libdrm

git clone git://anongit.freedesktop.org/mesa/drm

libva

git clone git://github.com/01org/libva

Old driver

git clone git://github.com/01org/intel-vaapi-driver

cd intel-vaapi-driver
./autogen.sh && make -s all
sudo make -s install

then add to ~/.bashrc

export LIBVA_DRIVERS_PATH=/usr/local/lib/dri
export LIBVA_DRIVER_NAME=i965

The new driver requires gmmlib

gmmlib

git clone git://github.com/intel/gmmlib

The new driver

git clone git://github.com/intel/media-driver
cd media-driver
mkdir build
cd build
cmake .. && make -s all
sudo make -s install

to activate it add to ~/.bashrc

export LIBVA_DRIVERS_PATH=/usr/local/lib/dri
export LIBVA_DRIVER_NAME=iHD

ffmperg

git clone git://source.ffmpeg.org/ffmpeg

cd ffmpeg
./configure --prefix=/usr/local \
    --cc=clang \
    --enable-shared \
    --enable-libdrm \
    --enable-vaapi \
    --enable-opengl \
    --enable-opencl \
    --enable-nonfree \
    --enable-gpl

make -s -j3 all

vlc

shaderc

Google's Vulkan support for Android (it has lots of dependencies). There is no reason why it shouldn't work on wayland

git clone git://github.com/google/shaderc

cd shaderc
cd third_party
git clone https://github.com/google/googletest.git
git clone https://github.com/google/glslang.git
git clone https://github.com/KhronosGroup/SPIRV-Tools.git spirv-tools
git clone https://github.com/KhronosGroup/SPIRV-Headers.git spirv-headers
git clone https://github.com/google/re2.git
git clone https://github.com/google/effcee.git
cd ..
mkdir build
cd build
cmake .. && make -s -j3 all
sudo make -s install 

mpv

git clone git://github.com/mpv-player/mpv

cd mpv
./waf configure --prefix=/usr/local --enable-wayland --enable-vaapi --enable-vulkan --enable-shaderc
./waf
sudo ./waf install
Last modified 14 months ago Last modified on Dec 20, 2018, 5:28:01 AM
Note: See TracWiki for help on using the wiki.