Davidy22 / SkunkBooth

Text based command line webcam photobooth app
https://Davidy22.github.io/SkunkBooth/
Other
50 stars 12 forks source link

Multiple Webcams #78

Closed ghost closed 2 years ago

ghost commented 2 years ago

Is your feature request related to a problem? Please describe.

I have 2 webcams on my thinkpad, first is IR-Camera and the second one is a classic webcam. Here is the output of /dev: /dev/video0 /dev/video1 /dev/video2 /dev/video3 The issue here is I can't change cameras in SkunkBooth, and by default it opens the IR-Camera which is /dev/video2

Is there a way to change it ?

github-actions[bot] commented 2 years ago

Seems like this is your first issue here. Make sure to read the contributing guidelines and follow them here.

Davidy22 commented 2 years ago

There's no webcam detection/selection yet, currently just grabs the first one found, but if someone's up for it extra webcam detection's a welcome addition.

ghost commented 2 years ago

Oh okay…

In that case, is there a way to change it manually, like modifying a piece of code in the script?

Davidy22 commented 2 years ago

if you just want to change a number, this line is the one that selects the camera. Change the number from 0 to 1 or 2 and experimentally find the number of your webcam. If you're up for it, we also very much welcome patches if you're interested in writing a more general implementation of this feature

ghost commented 2 years ago

Great thank you.

It worked for me, I changed 0 to 2. All good

Davidy22 commented 2 years ago

If you're willing, we welcome patches if you want to write some camera detection and switching in the options

ghost commented 2 years ago

I wish I could, but don't know how to code yet :disappointed: