mirror of
https://github.com/gen2brain/cam2ip.git
synced 2026-04-26 22:55:53 +03:00
[GH-ISSUE #39] Add ability to choose camera by ID #29
Labels
No labels
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cam2ip#29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bronzegoddess on GitHub (Oct 23, 2022).
Original GitHub issue: https://github.com/gen2brain/cam2ip/issues/39
Currently when I run the program I go through a series of indexes until I find the right camera on my mac.
-index 1, 2, 3 etcIt would be nice if we could call the camera by its Unique ID.
Example:
Unique ID: 0x4015000005ac1112Also, it would be even better if the program would tell us what those Unique Ids are (on our system)
Full Example
Start the program by running it via index
/Users/bronzemedia/Downloads/cam2ip -index 2 -bind-addr ":4444" -width 1920 -height 1080The system responds with:
/Users/bronzemedia/Downloads/cam2ip -cameraid "0x4015000005ac1112" -bind-addr ":4444" -width 1920 -height 1080@gen2brain commented on GitHub (Oct 26, 2022):
Unfortunately, OpenCV which is used for macOS doesn't provide a name or ID, only an index. Even in native Linux and Windows implementations, I don't see a way, perhaps it is possible to dig that info on Windows. At least, on Linux is possible to always map the camera indexes via UDEV so they don't change.
@bronzegoddess commented on GitHub (Nov 2, 2022):
Thank you for the clarification.
I will look into disabling other cameras on my Mac so that the webcam is the only option.