:cinema: Possible to export to `mp4` file ?
Hi, your project od Matrix LED amulation looks realy cool : I wonder if it would be possible to export is as a mp4 file ?
Not at the moment, though you could probably make something work by hooking into the websocket from the browser adapter and compile the images into whatever format you want.
It's probably not too difficult to add some middleware to some of the adapters to make this work (browser / pygame).
I use the tool https://github.com/phw/peek which allows you to record your X11 output to an MP4 file. Unfortunately, I see that the project was just archived less than a month ago (September 24, 2025).
The intro video for my project https://github.com/badele/RGBMatrixEmulator-animation was created with peek.
It is in theory possible to use the raw adapter to capture each frame and write them to whatever format you like. I've not done this, but shouldn't be too difficult and it avoids the HTTP stack interaction I suggested before this adapter existed
The raw adapter is how the CI pipeline runs tests against rpi-rgb-led-matrix samples:
- run sample to frame X
- capture framebuffer
- write to image (PIL)
- compare to reference