-
Notifications
You must be signed in to change notification settings - Fork 31
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
Does this support libcamera? #39
Comments
I am interested to learn the answer to this question too. |
@gurmukhp I apologize for such a late reply to your question and @reselbob thanks for the bump. Currently this library does not support
Is this something you guys would be interested in seeing? @gurmukhp With regard to lights, this library does not currently support turning lights on and off as up until now the |
I've tried to run first test in stream-camera.test file after replacing raspivid with libcamera-vid but it looks like output format has changed UPD: this.childProcess.stderr.on('data', data => {
const str = data.toString()
if(str.includes('ERROR')) this.emit('error', new Error(str))
}); I've tried to run tests but with no success, libcamera-vid doesn't seem to support multiple streams: |
any updates on this? |
For my case, I've tried just replacing raspivid call to libcamera-vid and it mostly works. The only thing I had to change was the jpeg signature on static readonly jpegSignature = Buffer.from([0xff, 0xd8, 0xff]); StillCamera seems to work as well but I noticed the libcamera output's jpeg signature was also different on the It shouldn't be hard to port this to use libcamera and fix a few deprecation warnings for node 21 and the latest typescript. Thanks for the library @gregnr! |
The link in the documentation points to a page on Raspberry Pi's official site saying only libcamera is supported in the latest Raspbian.
Does this library support libcamera?
Also does it support camera with lights? I.e. turn the lights on and off?
The text was updated successfully, but these errors were encountered: