|
Author |
Topic: hauppauge wintv input source (Read 3953 times) |
|
michael05
|
hauppauge wintv input source
« on: Oct 8th, 2004, 6:23pm » |
|
hi i am trying to use an analogue camera with an hauppauge wintv card for an augmented reality device. my problem is that i cannot set the svideo input for vdig when starting beginvideo in processing. is there a way to set the default source in the registry or in vdig? i tried to set it in hauppauge's tools and in hacktv. but next time i am starting processing the source is the tv imput again. thanks michael05
|
°°°°°°°°°°°°°°°°°°°° http://www.m05.de
|
|
|
chrisoshea
|
Re: hauppauge wintv input source
« Reply #2 on: Feb 7th, 2005, 1:40am » |
|
Do you know how to select the source (s-video, composite etc) in 070? Thanks Chris
|
|
|
|
st33d
|
Re: hauppauge wintv input source
« Reply #3 on: Feb 7th, 2005, 2:27pm » |
|
Had a similar problem. Don't know if it has the same solution though. http://processing.org/discourse/yabb/board_VideoCamera_action_d_isplay_num_1107140778.html Code: boolean newFrame = false; void setup() { size(320, 240); 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(); } beginVideo(width, height, 4); } void videoEvent() { newFrame = true; } void loop() { if(newFrame) { background(video); newFrame = false; } } |
|
|
« Last Edit: Feb 7th, 2005, 2:28pm by st33d » |
|
I could murder a pint.
|
|
|
chrisoshea
|
Re: hauppauge wintv input source
« Reply #4 on: Feb 9th, 2005, 3:42pm » |
|
Unfortunately Processing 068 just hangs for me when I try that code. I am on XP and hvae Quicktime for Java & WinVDIG. I can't try it in a later version as doesn't like beginvideo()
|
|
|
|
fjen
|
Re: hauppauge wintv input source
« Reply #5 on: Feb 9th, 2005, 3:54pm » |
|
can you try to run this? Code: void setup(){ size(100,100); 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(); println( "dv.getInput :" ); println( vd.getInput() ); println(); quicktime.std.sg.DigitizerInfo di = vd.getDigitizerInfo(); println( "DigitizerInfo :" ); println( di.toString() ); println(); } catch (Exception e) {e.printStackTrace();} } |
| does this hang as well? /F
|
|
|
|
chrisoshea
|
Re: hauppauge wintv input source
« Reply #6 on: Feb 9th, 2005, 4:14pm » |
|
on Feb 9th, 2005, 3:54pm, fjen wrote: does this hang as well /F |
| Nope, I get a little window. Success it seems, partly. Output I get: -------- dv.getNumberOfInputs : 2 dv.getInput : 1 DigitizerInfo : quicktime.std.sg.DigitizerInfo MinDestHeight: 240 MinDestWidth: 320 maxDestHeight: 240 MaxDestWidth: 320 blendLevels: 0 InputCapabilityFlags: 5383 OutputCapabilityFlags: 436232192 ------- [edit] It appears to be BeginVideo that causes it to crash, which is very strange. I've seen my capture card working in WinVDIG and use it in other applications like Eyesweb & Jitter.
|
« Last Edit: Feb 9th, 2005, 4:19pm by chrisoshea » |
|
|
|
|
fjen
|
Re: hauppauge wintv input source
« Reply #7 on: Feb 10th, 2005, 11:18am » |
|
good! i think beginvideo hangs because it's desperately trying to read from the wrong input --- staring into the black hole -- it reports 2 inputs and is set to input 1, so logic dictates to try port 2 i guess Code: void setup(){ size(100,100); 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(); // trying port 2 ... not sure if this is zero-based ... vd.setInput(2); // see what is says now ... quicktime.std.sg.DigitizerInfo di = vd.getDigitizerInfo(); println( "DigitizerInfo :\r" + di.toString() + "\r" ); } catch (Exception e) {e.printStackTrace();} // check if beginVideo() works now ... beginVideo(width, height, 15); } void videoEvent() { newFrame = true; } void loop() { if(newFrame) { background(video); newFrame = false; } } |
| /F
|
|
|
|
|