BradsXmasLights
WiFi Interactive
For those wanting to get video playing back on their new P10 matrix's, this is the trick to making it happen with xLights.
You basically are converting the video to a zillon images and the "Picture" effect will magically slideshow them based on your sequence's timing, on the proviso that the picture effect filename contains a dash like something-1.png
eg:
50ms sequence = 20 frames/images needed per second (little slower than normal PAL video @ 25fps)
25ms sequence = 40 frames a second
So do convert your video to a zillon images, use ffmpeg.exe which is in the xLights directory.
Open a command prompt window, and you'll want to run a command something like what is below:
where...
You basically are converting the video to a zillon images and the "Picture" effect will magically slideshow them based on your sequence's timing, on the proviso that the picture effect filename contains a dash like something-1.png
eg:
50ms sequence = 20 frames/images needed per second (little slower than normal PAL video @ 25fps)
25ms sequence = 40 frames a second
So do convert your video to a zillon images, use ffmpeg.exe which is in the xLights directory.
Open a command prompt window, and you'll want to run a command something like what is below:
Code:
cd C:\Program Files (x86)\xLights
Code:
ffmpeg -i c:\temp\lego\LegoSmall.mp4 -s 160x80 -r 40 c:\temp\lego\lego-%d.png
where...
- c:\temp\lego\ is the folder where my video & images will be located
- LegoSmall.mp4 is my source video
- lego-%d.png is my output filename. %d will be replaced for the frame number.
- -s 160x80 is to resize the video to fit 160 x 80 pixels.
- -r 40 is resample frame-rate to 40fps (25ms)