Skip Navigation or Skip to Content

OBS with obs-shaderfilter plugin on Ubuntu

Relevant For Version

  • Ubuntu 20.04
  • OBS-studio 27.2
  • obs-shaderfilter 1.21

Overview

obs-shaderfilter is not available for Ubuntu. The only option -for now- is to compile OBS-studio with obs-shaderfilter plugin on your computer. While I'm at it, I also include what is required to run a loopback camera.

The principal steps:

  • install git on your computer.
  • Download obs-shaderfilter source code repository.
  • Download OBS-Studio source code (Recursive) and additional modules.
  • Install all dependency packages on your computer.
  • Copy obs-shaderfilter folder into OBS-Studio repo.
  • Modify OBS-Studio configuration to include obs-shaderfilter.
  • Build and install OBS-Studio.

Video Demo

The detailed steps:

  • install git on your computer
    sudo apt install git
  • mkdir gitroot && cd gitroot
  • Download obs-shaderfilter source code repository.
    git clone https://github.com/Saravji/obs-shaderfilter.git
  • Download OBS-studio source code (Recursive) and additional modules.
    git clone -b release/27.2 --recursive https://github.com/obsproject/obs-studio.git
    wget https://cdn-fastly.obsproject.com/downloads/cef_binary_4638_linux64.tar.bz2
    tar -xjf ./cef_binary_4638_linux64.tar.bz2
  • Install all dependency packages on your computer.
    sudo apt install build-essential cmake libmbedtls-dev libasound2-dev libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libcurl4-openssl-dev libfdk-aac-dev libfontconfig-dev libfreetype6-dev libglvnd-dev libjack-jackd2-dev libjansson-dev libluajit-5.1-dev libpulse-dev libqt5x11extras5-dev libspeexdsp-dev libswresample-dev libswscale-dev libudev-dev libv4l-dev libvlc-dev libwayland-dev libx11-dev libx264-dev libxcb-shm0-dev libxcb-xinerama0-dev libxcomposite-dev libxinerama-dev pkg-config python3-dev qtbase5-dev qtbase5-private-dev libqt5svg5-dev swig libxcb-randr0-dev libxcb-xfixes0-dev libx11-xcb-dev libxcb1-dev libxss-dev qtwayland5 libgles2-mesa libgles2-mesa-dev libpci-dev pipewire libnss3-dev v4l2loopback-dkms ffmpeg
  • copy obs-shaderfilter folder into obs-studio repo.
    cp -R ./obs-shaderfilter ./obs-studio/plugins/obs-shaderfilter
  • modify OBS-Studio configuration to include obs-shaderfilter.
    echo "add_subdirectory(obs-shaderfilter)" >> ./obs-studio/plugins/CMakeLists.txt
  • build and install OBS-Studio.
    cd obs-studio
    mkdir build && cd build
    cmake -DUNIX_STRUCTURE=1 -DENABLE_PIPEWIRE=OFF -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_BROWSER=ON -DCEF_ROOT_DIR="../../cef_binary_4638_linux64" ..
    make -j$(nproc)
    sudo make install