r/coolgithubprojects • u/Western_Storage_4369 • 4d ago
I made a tool that renders heavy Wallpaper Engine scenes to MP4 on Linux (for use with mpvpaper etc.)
I wanted to use some Wallpaper Engine wallpapers on my Linux desktop through mpvpaper, but heavy interactive scenes are a pain to run live. So I built a Node.js tool that renders them into an MP4 you can loop as a wallpaper.
What it does
- Takes a Wallpaper Engine
.pkgarchive and analyzes it - Shows a map of what’s inside (videos, textures, shaders, configs, audio)
- If the archive already contains a video, it can extract it directly
- Otherwise it renders the scene to MP4 using linux-wallpaperengine running under xvfb and recorded with ffmpeg
- You choose duration, FPS and resolution
How to use it
git clone https://github.com/R31tr0/we-linux-to-mp4
cd we-linux-to-mp4
./install.sh
node index.jsThe installer checks dependencies and can install them on apt, dnf and pacman based distros. It also builds linux-wallpaperengine from source if needed. After that you just point it at a .pkg file and answer a few prompts.
Limitations (it’s an early, experimental version)
- Scenes with very heavy shaders may not render correctly
- Widgets that draw in real time won’t work (sometimes it renders without it)
- Results depend on your scene, drivers and system libraries
I plan to improve it with finer settings and support for more effect types.
It’s MIT licensed and all the rendering credit goes to linux-wallpaperengine. I’d love feedback, bug reports, and info about which scenes work or break for you.