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

rpicam-vid: Update for camera sync algorithm #727

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

davidplowman
Copy link
Collaborator

A "sync" option has been added, which may take the values "server" or "client", turning the camera into either the server of client of a synchronised recording.

Recording only starts once the sync algorithm flag that the cameras are "ready to go".

@davidplowman
Copy link
Collaborator Author

@naushir Another one!

core/video_options.hpp Outdated Show resolved Hide resolved
apps/rpicam_vid.cpp Outdated Show resolved Hide resolved
A "sync" option has been added, which may take the values "server" or
"client", turning the camera into either the server of client of a
synchronised recording.

Setting the camera into sync mode, and skipping frames while waiting
for sync, is delegated to the RPiCamEncoder class, so that all video
recording applications acquire the functionality.

Signed-off-by: David Plowman <[email protected]>
Signed-off-by: Arsen Mikovic <[email protected]>
Signed-off-by: Naushir Patuck <[email protected]>
@@ -158,6 +158,8 @@ struct VideoOptions : public Options
("av-sync", value<std::string>(&av_sync_)->default_value("0us"),
"Add a time offset (in microseconds if no units provided) to the audio stream, relative to the video stream. "
"The offset value can be either positive or negative.")
("sync", value<std::string>(&sync_)->default_value("off"),
"Whether to synchronise with another camera. Use \"off\", \"server\" or \"client\".")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Outside the #if block as well... sorry I missed this one.

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

Successfully merging this pull request may close these issues.

2 participants