RGBMatrixEmulator icon indicating copy to clipboard operation
RGBMatrixEmulator copied to clipboard

:cinema: Possible to export to `mp4` file ?

Open adriens opened this issue 1 year ago • 3 comments

Hi, your project od Matrix LED amulation looks realy cool : I wonder if it would be possible to export is as a mp4 file ?

adriens avatar Sep 23 '24 02:09 adriens

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).

ty-porter avatar Sep 23 '24 15:09 ty-porter

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.

badele avatar Oct 25 '25 18:10 badele

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

ty-porter avatar Oct 26 '25 02:10 ty-porter