News:

Server migration complete, Welcome to version 2.1.1

+-+-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Site Stats

Members
Total Members: 16460
Latest: tripleblack
New This Month: 10
New This Week: 1
New Today: 0
Stats
Total Posts: 132598
Total Topics: 16443
Most Online Today: 221
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 1
Guests: 178
Total: 179

Load .raw image to frame buffer for overlay image display on fb0 or LED Colors

Started by digilabpg, May 24, 2024, 11:02:45 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

digilabpg

Thanks to everyone who can help me, I use the FPP 7.5 version but with the FPP 8.0 version it's the same, I've been trying to write an image to HDMI or 'LED Colors' for some time via the fb0 or 'LED Colors' device ', what I wanted to ask is there an API command to save an image from the Frame buffer to a file, I tried it and it works well, the command is this:

arg = {"File": "ImageFilename.png"}
r = requests.put('http://localhost/api/overlays/model/fb0/save';, json = arg)

I wanted to ask you, is there a command to do the opposite, load a RAW image from a frame buffer file? Type load command?
I tried using the fppmm command with this syntax:

fppmm -m fb0 -o on
fppmm -m fb0 -f raw.raw

It always gives me the error 'Bus error' the raw file is the right size, I don't understand where my error is.
Thanks in advance to anyone who can help me

CaptainMurdoch

You should be able to just write to the /dev/shm files as Dan mentioned in the other thread.  https://falconchristmas.com/forum/index.php?topic=16789.msg134583

I just tested this using a simple 'cat' from the command line and it worked fine for my P10 matrix.

You have to enable the overlay model and then anything you write to the FPP-Model-Data-* file for the model should show up on the lights.  You can read the current data by reading the file.  In my quick test, I drew on the matrix model with the MatrixTools plugin, then saved the data off to another file, then cleared the matrix using the MatrixTools plugin and wrote that same data back to the model using the CLI and the P10 panels lit up with my previous drawing.
-
Chris

Support FPP

+- Recent Topics

Did the the latest upgrade tonight and it failed. by MikeKrebs
June 10, 2024, 09:19:42 PM

No Audio by Steve
June 07, 2024, 02:10:47 PM

Video IP Capture -> sound by MikeKrebs
June 06, 2024, 09:00:17 PM

Control Channel Output by zj023
June 03, 2024, 06:23:35 AM

Compatibility question by John_82
June 02, 2024, 04:23:25 PM

Virtual Display not working? by colonelcline
June 01, 2024, 04:55:41 PM

Help for my LED Pit board project by Octonath
May 31, 2024, 06:15:17 PM

Help, can't get PCA9685 working with xLights and FPP by dkulp
May 30, 2024, 08:54:53 AM

HELP Did something dumb - turned on Tethering by The Engineer
May 27, 2024, 06:39:38 PM

First Time User - Can't open GUI only Terminal by k6ccc
May 27, 2024, 09:51:34 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod