r/coolgithubprojects • u/Western_Storage_4369 • 11m ago
Update: we-linux-to-mp4 now supports GPU rendering + NVIDIA/AMD hardware codecs
Quick update on we-linux-to-mp4, a tool that renders heavy Wallpaper Engine scenes (.pkg) into MP4 on Linux, so you can use them as video wallpapers (e.g. with mpvpaper).
What's new:
- New render mode: Cage headless (experimental). The scene is rendered on the GPU through the Cage Wayland compositor and recorded with wf-recorder. The default Xvfb mode still renders on CPU via llvmpipe.
- Hardware codecs: NVIDIA h264_nvenc and AMD h264_vaapi, plus the default CPU libopenh264. If the codec you pick isn't available in your FFmpeg, it falls back to libopenh264 automatically.
- Big performance improvements. Work is moving in giant leaps: a lot of wallpapers now render to MP4 without a single lag.
How it works: you run node index.js, pick the .pkg, then choose duration, FPS, render mode (Xvfb / Cage), resolution (Xvfb: 1920x1080 or 1280x720; Cage is fixed at 1920x1080) and codec. It can also extract a ready-made video from the archive and shows a resource map of the .pkg (videos, textures, shaders, configs, audio). The installer covers apt, dnf and pacman distros and builds linux-wallpaperengine for you. MIT licensed.
Notes: hardware codecs need a suitable GPU, drivers and FFmpeg support. Very heavy shaders and real-time widgets are still not supported. Finer settings and more effect types are planned.
I really need your feedback. Last time nobody tried it or told me anything, so I don't know what works and what breaks on your setups. If you have a Linux machine and some Wallpaper Engine scenes, please try it, especially the Cage + NVENC/VAAPI path, and tell me your distro, GPU and which wallpapers worked or failed. Even a one-line "works / doesn't work" helps a lot.
🔗 https://github.com/R31tr0/we-linux-to-mp4