Skip to content

Instantly share code, notes, and snippets.



  • France
View GitHub Profile
mrintrepide /
Last active Apr 11, 2020
Firefox WebRender and Wayland

Firefox 75+


Force enable gfx.webrender.all=true


If Webrender doesn't work you can force enable old OpenGL acceleration with layers.acceleration.force-enabled=true


Set environment variable MOZ_ENABLE_WAYLAND=1

mrintrepide /
Last active Apr 23, 2022
AMD Navi (Radeon RX 5500, 5600, 5700) OpenCL with ROCm for Fedora (and REHL, CentOS, ...)

AMD Navi OpenCL with ROCm

Mesa doesn't provide OpenCL 1.2 support for Navi

AMD provide closed-source AMDGPU-PRO OpenCL 2.0 (PAL for Vega and Navi and Legacy for older product)

Alternatively you can use open-sourced AMD Radeon Open Compute platforM with OpenCL 2.0 support (Hardware Support)

It doesn't breaks Mesa/LLVM dependencies or UEFI Secure Boot

mrintrepide / libmmbd_installer.bat
Created May 9, 2020
MakeMKV (libmmbd) for VLC, HandBrake and Kodi - Windows 32/64 bit - bluray playback
View libmmbd_installer.bat
@echo off
title MakeMKV libmmbd installer
net session >nul 2>&1
if not %ERRORLEVEL% == 0 (
if exist %SystemRoot%"\System32\WindowsPowerShell\v1.0\powershell.exe" (
powershell Start-Process cmd -ArgumentList '/k "\"%0\""' -Verb runAs
) else (
echo Start this script with Administrator rights!
mrintrepide / AV1
Last active May 7, 2022
AV1 quick encode with SVT-AV1
View AV1

SVT-AV1 is the fastest multithreaded AV1 encoder

libaom-av1 is the official av1 decoder/encoder but it's the slowest and lacks of a real multithreading.
rav1e is a xiph encoder project. It's also very slow but you can use multithreading with tiles. Produce small file but lower quality.
libdav1d is a veryfast AV1 VLC decoder project.
svt-av1 is an heavy multithreading intel decoder and encoder. It produce good quality but bigger file size.

It can produce 8 and 10 bit video with constant quality (cqp) or variable bit rate (vbr).
Now with 0.8.3 2-pass is available for cqp. It reduce the average bitrate (and final file size)

mrintrepide / VP9 Encode
Last active Jun 24, 2022
VP9 Encode Guide (ffmpeg, libvpx-vp9, vpxenc)
View VP9 Encode


VP9 encode is very very slow ?
Yes and no. Unlike x265 use all core to speed up encode time, the low threaded libvpx-vp9 use for me 4 core of my Ryzen 3900X. Encode 4 video in the same time -> x4 "boost".

Quality (Unconstrained)

Force dynamic bitrate with b:v 0
Set quality level with -crf <quality level> is a integer (0 to 63)
libvpx use -deadline and ffmpeg -quality need to be set to good.

mrintrepide / Wayland
Last active Jul 23, 2022
Wayland Native Games Compatibility List
View Wayland
Game Wayland Engine Info
Aragami no Unity SDL2: crash
Baba Is You no Multimedia Fusion 2 SDL2: crash
Bastion yes* FNA-XNA SDL2 preload mouse KO, xbox pad OK
BattleBlock Theater® no - SDL2: crash
Besiege no Unity SDL2 : no effect
BioShock Infinite yes* Unreal Engine 3 SDL2 preload
BIT.TRIP Presents... Runner2: Future Legend of Rhythm Alien no - SDL2: crash
Black Mesa yes* Source SDL2 preload