Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DroidFreak32/576a043d6f6412c91158fc6a51a6356c to your computer and use it in GitHub Desktop.
Save DroidFreak32/576a043d6f6412c91158fc6a51a6356c to your computer and use it in GitHub Desktop.

Stremio on Debian 12 with MPV Config (~/.config/mpv/mpv.conf) and Intel iGPU VAAPI support.

Introduction

Current version of stremio on debian 12 has dependency issues with libssl1 and libmpv1 not being available in the stable repos.

While we can certainly use the flatpak, it has issues with audio-passthrough for DTS/Atmos tracks, and more playback issues when trying to hexedit the MPV config support.

Steps

  1. Install and configure a JuNest environment in the debian host (I have only tested Linux namespaces mode).
  2. (Inside JuNest env) Install few dependencies via pacman:
    base-devel, ttf-opensans gno-free-fonts noto-fonts noto-fonts-emoji ttf-dejavu (for rendering fonts), mpv, intel-media-driver (For HW Accel)
  3. (Inside JuNest env) Install and configure chaotic-aur: https://aur.chaotic.cx/docs
  4. (Inside JuNest env) Install stremio from chaotic-aur
  5. (Inside JuNest env) Go to /opt/stremio and perform the hexediting to enable support for ~/.config/mpv/mpv.conf:

$ colordiff <(xxd stremio-original) <(xxd stremio)

8965c8965
< 00023040: 0079 6573 0074 6572 6d69 6e61 6c00 616c  .yes.terminal.al
---
> 00023040: 0079 6573 0063 6f6e 6669 6700 0000 616c  .yes.config...al
  1. Exit JuNest, and ensure you are seeing the Intel iGPU rendering device: ls -al /dev/dri/render* (Else Check Jellyfin docs to install dependent packages on host)
  2. Enter JuNest again by binding /dev/dri from host to the JuNest env:

$ junest -b "--bind /dev/dri $JUNEST_HOME/dev/dri"

  1. (Inside JuNest env) Launch stremio from the shell, it should now pickup the configs from ~/.config/mpv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment