Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can i use node to get screenshot from framebuffer raw #1

Open
iBongiornor opened this issue Aug 29, 2018 · 6 comments
Open

Can i use node to get screenshot from framebuffer raw #1

iBongiornor opened this issue Aug 29, 2018 · 6 comments

Comments

@iBongiornor
Copy link

Hi Mr.Deng:

I'm finding some infomation about converting framebuffer raw data to a screenshot,
I find your work here coincidently.
Can i get screenshot from framebuffer raw using node。js ?
Could i get some hit from your exprience?
thank you

@denghongcai
Copy link
Owner

https://github.com/denghongcai/node-framebuffer/blob/master/lib/framebuffer.js#L46

actually, node-framebuffer already mmapped fb for you, you can directly read from it.

@iBongiornor
Copy link
Author

thanks for feedback, is that the whole pixel data in the raw data?
and additionally, it seems that i failed in installing node-framebuffer when ‘npm i’ runs into “mmap-io”

gyp ERR! node -v v8.11.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `g++ --version; node-gyp configure && node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

it seems not the version in the package.json

@denghongcai
Copy link
Owner

is that the whole pixel data in the raw data?
yes

please paste whole log here, not the last few lines.

@iBongiornor
Copy link
Author

emmmm, the error is very long, i think you can check the attachment
error.log

@iBongiornor
Copy link
Author

a very strange thing ,
I tried on macOS and linux both,
I only successfully pass the process of install under the root of linux,
while i get failed under macOS and non-root user of linux.

the log is the non-root user's log file

@denghongcai
Copy link
Owner

mmap-io version may related to V8 version, maybe your node version is too high.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants