Webcam show black screen on Max
I'm using Max 8.6.5 with windows 10
Until now my two Logitech webcam was opened no problem in max and was displaying an input.
Now I'm open my patch after 3 weeks not using this computer and camera show black screen.
I open the windows camera app and the camera is displaying properly.
What could be the issue?
ok so I find the issue.
my device list was change and therefore my automatic loadmess 0 was not opening the correct camera. how can I make sure it will always open my correct camera even if it place in the list is changed?
The problem here is using different computers. If you were using the same computer, you could rely on the @uniqueid attribute to make sure to select the right device everytime. When using your patch on another computer, these uniqueid will be different and you will need to change them.
You can also select a device by its name by populating a [umenu] with the devices names using the getvdevlist
message and select the desired device by name using the symbol
message to [umenu]. However, if your two cameras have the same name, then you'll need to rely on the uniqueid
attribute and make sure to set them right every time you open your patch on a new computer or with different cameras.
I don't think I understand how to use this unique arrtibute?
I'm using two identical Logitech cameras
Open the right camera using
vdevice $1
message and a number (iterate through all devices until you find the right one)copy the content of jit.grab's uniqueid attribute (you can alternatively send
getuniqueid
to [jit.grab] and you'll get the result from the objects right outlet)paste it in a new message
add a [prepend uniqueid] after the message and a [loadbang] before it
Repeat for the second jit.grab and camera.
2.copy the content of jit.grab's uniqueid attribute (you can alternatively send
getuniqueid
to [jit.grab] and you'll get the result from the objects right outlet)

ok the message is getunique.
the problem is that I'm getting the same unique id from both jit.grag object although I'm using two cameras (but that are identical)
Which version of Max do you have?
getuniqueid
should work and give you something like uniqueid 1F06D5FF-4C76-410E-9770-C04C467C1317
, but iirc it is a rather recent feature of Max 9.
Sending getunique
queries the @unique
attribute which is either 0 or 1 and has nothing to do with the unique id of a device.
uniqueid was added in Max 9
Which version of Max do you have?
Max 8.6.5