This may help some of you troubleshoot your problems, helped me.
I'm running...
Win XP Pro
Logitech QuickCam 4000
WinVDIG 1.0.1
Quicktime 7.0.4
Processing .99
I was able to get my video to work ok in QTCap after switching the source, but processing was defaulting to another source at runtime. I remembered having this issue a long time ago and dug back through the old alpha forums and found a way for processing to find the first available/working source.
-------------------------------------------------------
import processing.video.*;
Capture video;
void setup()
{
size(320, 240);
framerate(30);
try{
quicktime.QTSession.open();
quicktime.std.sg.SequenceGrabber sg = new quicktime.std.sg.SequenceGrabber();
quicktime.std.sg.SGVideoChannel sc = new quicktime.std.sg.SGVideoChannel(sg);
quicktime.std.sg.VideoDigitizer vd = sc.getDigitizerComponent();
println( "dv.getNumberOfInputs :" ); println( vd.getNumberOfInputs() ); println();
//change line below to set input source
vd.setInput(1);
//
println( "dv.getInput :" ); println( vd.getInput() ); println();
} catch (Exception e) {
e.printStackTrace();
}
// Using the default capture device
video = new Capture(this, 320, 240, 30);
background(0);
}
void captureEvent(Capture camera)
{
camera.read();
}
void draw()
{
image(video, 0, 0);
}
-------------------------------------------------------
I have three available sources:
0 - ATI s-video (default)
1 - QuickCam 4000 (USB)
2 - Samsung mini DV (Firewire)
Nothing plugged into 0 and 2 making 1 the only available source with a signal, so I set vd.setInput(1);
Hope this helps.