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

Fixed camera stream too big and colorimetry setting #137

Open
wants to merge 338 commits into
base: develop
Choose a base branch
from

Conversation

Gioee
Copy link

@Gioee Gioee commented Mar 12, 2023

Description:

Related issue (if applicable): fixes #

Checklist:

  • The code change is tested and works locally.

@@ -11,14 +11,7 @@ X::X()

Copy link
Contributor

Choose a reason for hiding this comment

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

you'll want to remove your personal changes here


DASH_LOG(info) << "[CameraPage] Creating GStreamer pipeline with " << this->config->get_cam_local_device().toStdString();
std::string pipeline = "v4l2src device=" + this->config->get_cam_local_device().toStdString() +
" ! capsfilter caps=\"video/x-raw,width=" + std::to_string(res.width()) + ",height=" + std::to_string(res.height()) + ";image/jpeg,width=" + std::to_string(res.width()) + ",height=" + std::to_string(res.height()) + "\"" +
" ! capsfilter caps=\"video/x-raw,width=" + std::to_string(res.width()) + ",height=" + std::to_string(res.height()) + ",colorimetry=bt601;image/jpeg,width=" + std::to_string(res.width()) + ",height=" + std::to_string(res.height()) + "\"" +
Copy link
Contributor

Choose a reason for hiding this comment

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

does that break the pipeline for other cameras? we'll want to add something similar to this->config->get_cam_local_device() (and maybe default it to an empty string?) if that's the case

Copy link
Author

Choose a reason for hiding this comment

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

Idk if it breaks or if it works. For my camera it works. Someone gotta test this out. But I think it would be perfect to put it in the config like you said.

@rsjudka rsjudka mentioned this pull request Mar 14, 2023
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