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

How to launch two cameras in one pipeline and synchronize their settings? #2

Open
Userpc1010 opened this issue Dec 20, 2021 · 1 comment

Comments

@Userpc1010
Copy link

Userpc1010 commented Dec 20, 2021

I have changed the default example opencvcap, but it still only works with one camera?


            " gst-launch-1.0 max-buffers=1 drop=true sync=false"
            " v4l2src device=/dev/video"+ std::to_string(device_1) + " !"                    
            " video/x-raw,"
            " width=(int)" + std::to_string(capture_width) + ","
            " height=(int)" + std::to_string(capture_height) + ","
            " format=GRAY8,"
            " framerate=(fraction)" + std::to_string(framerate) +"/1 !"
            " appsink"
            " v4l2src device=/dev/video"+ std::to_string(device_2) + " !"                    
            " video/x-raw,"
            " width=(int)" + std::to_string(capture_width) + ","
            " height=(int)" + std::to_string(capture_height) + ","
            " format=GRAY8,"
            " framerate=(fraction)" + std::to_string(framerate) +"/1 !"
            " appsink";

@Qengineering
Copy link
Owner

Check with v4l2-ctl --device=/dev/video1 -D --list-formats-ext if you have a video source living at /dev/video1.
If so, try hard-coded " v4l2src device=/dev/video1" instead of " v4l2src device=/dev/video"+ std::to_string(device_1)

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