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

Changing capture parameters in runtime #5

Open
ramsafin opened this issue Nov 2, 2018 · 0 comments
Open

Changing capture parameters in runtime #5

ramsafin opened this issue Nov 2, 2018 · 0 comments

Comments

@ramsafin
Copy link
Owner

ramsafin commented Nov 2, 2018

Let's consider the code:

...
lirs::V4L2VideoCapture capture("/dev/video0", ...);
if (capture.IsOpened()) {
    capture.StartStreaming();
    // formats, frame, etc. rate are negotiated, buffers are allocated
    capture.Set(lirs::CaptureParams::FPS, 60);   // change the frame
}

In the code above frame rate is being changed during streaming process.
Currently, this change will be ignored. However, it is expected to change streaming frame rate in runtime. See v4l2 Buffer docs for more info on how it should be handled.

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

No branches or pull requests

1 participant