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: 16462
Latest: TheRockyRoad
New This Month: 12
New This Week: 1
New Today: 0
Stats
Total Posts: 132620
Total Topics: 16449
Most Online Today: 390
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 114
Total: 114

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 1 Guest 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

Video Output display creation failed by Zcarpenter
June 17, 2024, 11:42:12 AM

Difference on Channel output > LED Panels between two FPP instances by Poporacer
June 17, 2024, 08:08:51 AM

Scheduler Holiday list now only has Christmas and New Years by SeldenBlack
June 16, 2024, 04:43:00 PM

Did the the latest upgrade tonight and it failed. by k6ccc
June 15, 2024, 11:56:26 AM

FPP 7.5 Virtual Matrix Overlay Sub Model State by wjenkins364
June 14, 2024, 11:04:59 PM

Looking for specs on F4V2 (Red) by algerdes
June 13, 2024, 08:14:31 PM

F16v3 & Differential Cntrl Pwr Question by jeff.ott
June 13, 2024, 07:55:31 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

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod