Capturing images from multiple webcams?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 346
- Joined: Mon Mar 01, 2010 7:13 pm
- Location: London, UK
- Contact:
Capturing images from multiple webcams?
Is it possible to capture image data from multiple webcams (basically any cheap USB-connected cameras) simultaneously? (Near-simultaneous would be fine, I'm not worried about the precise definition of the word.
I want to be able to grab a single still image/frame from each camera, as part of a Rev (now LiveCode) experiment and art project. Does anyone have any suggestions?
Thanks! - Keith
I want to be able to grab a single still image/frame from each camera, as part of a Rev (now LiveCode) experiment and art project. Does anyone have any suggestions?
Thanks! - Keith
Technical Writer, Meta
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist
Re: Capturing images from multiple webcams?
Hi Keith,
I may be wrong, but I am afraid that the "RevVideoGrabber" only supports one cam at a time.
Best
Klaus
I may be wrong, but I am afraid that the "RevVideoGrabber" only supports one cam at a time.
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 346
- Joined: Mon Mar 01, 2010 7:13 pm
- Location: London, UK
- Contact:
Re: Capturing images from multiple webcams?
I wondered whether that might be an issue.
Two devious (and hence probably futile) ideas occured to me...
(1) Can selecting the cam source be controlled by script?
(2) Alternatively, could multiple copies of a standalone be made to work with different cam inputs at the same time, or is the input selection actually a one-at-a-time, system-level thing?
Keith
Two devious (and hence probably futile) ideas occured to me...
(1) Can selecting the cam source be controlled by script?
(2) Alternatively, could multiple copies of a standalone be made to work with different cam inputs at the same time, or is the input selection actually a one-at-a-time, system-level thing?
Keith
Technical Writer, Meta
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist
Re: Capturing images from multiple webcams?
Hi Keith,
1. I think "revVideoGrabSettings" will also contain the source of the video,
so switching by script with "revSetVideoGrabSettings" should "restore" the input, too.
Do some tests to be sure.
2. Sound doable, but I don't know if this is possible, do some tests
Best
Klaus
1. I think "revVideoGrabSettings" will also contain the source of the video,
so switching by script with "revSetVideoGrabSettings" should "restore" the input, too.
Do some tests to be sure.
2. Sound doable, but I don't know if this is possible, do some tests
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 346
- Joined: Mon Mar 01, 2010 7:13 pm
- Location: London, UK
- Contact:
Re: Capturing images from multiple webcams?
Hmm. Well, it seems that, contrary to my surface-level attempts at logic, Rev/LiveCode doesn't play ball in this way; it doesn't let me juggle video input settings on the fly within one lump o' script.Klaus wrote:1. I think "revVideoGrabSettings" will also contain the source of the video,
so switching by script with "revSetVideoGrabSettings" should "restore" the input, too.
I edited the Video Capture example so that the Video Settings button called & captured two input settings, stored in two different stack-level custom properties. Then I scripted a button to use the first settings, grab an image, store the imageData in an image object... then do the same with the second stored input settings and a second image object.
No luck; I always just get the same image in both, not one from each camera. I'll experiment more tonight, but this may not be workable.
Next step, separate apps!
Keith
Technical Writer, Meta
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist
-
- Posts: 361
- Joined: Wed Apr 27, 2011 2:12 pm
Re: Capturing images from multiple webcams?
So, from this thread, is it safe to assume that Live Code cannot be used to create a webcam community video program where people can talk to each other through chat and video? This was one of the things I was hoping to accomplish with Live Code. I do not need to 'capture' the video, as in saving it to disk, but more just show the streams. I do have a Red5 server already in place and can host as many as 300 concurrent streams. I was hoping to make a program where people could log on and talk with each other, one on one or as a group. I was also going to customize my client's mysql database to work with this webcam project.
Is it at all possible?
Mike
Is it at all possible?
Mike
Re: Capturing images from multiple webcams?
Hi Mike,
I strongly doubt that this is possible!
Best
Klaus
I strongly doubt that this is possible!
Best
Klaus
-
- Posts: 361
- Joined: Wed Apr 27, 2011 2:12 pm
Re: Capturing images from multiple webcams?
That is too bad. Now I have to spend $600 on another script that CAN do this. Damn. I was hoping this would work because the database integration sounds to be a MUCH easier task than straight php and mysql.Klaus wrote:Hi Mike,
I strongly doubt that this is possible!
Best
Klaus
Mike