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

Add support for unbuffered streaming #54

Open
DerZombiiie opened this issue Sep 23, 2022 · 1 comment
Open

Add support for unbuffered streaming #54

DerZombiiie opened this issue Sep 23, 2022 · 1 comment

Comments

@DerZombiiie
Copy link

When using uncompressed formats its impossible to use the library on devices with little ram.
E.g. a Raspberry Pi

@bazile-clyde
Copy link
Contributor

We (gostream) also need support for an unbuffered stream, though, for different reasons. We depend on mediadevices which in turn depends on this library for its linux implementation (see camera_linux.go). mediadevices calls camera.SetBufferCount(1) when opening a camera and later camera.ReadFrame() to get a frame from that camera. Because camera.ReadFrame() returns the last frame in the buffer we always get a stale image. Setting camera.SetBufferCount(2) gives us two stale frames and so forth. Is there currently a way to get the current frame from camera.ReadFrame() rather than a previously buffered image?

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