We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpVideo Capture,  Movie Playback,  Vision Libraries › trying but failing to capture at 640x480
Page Index Toggle Pages: 1
trying but failing to capture at 640x480 (Read 1495 times)
trying but failing to capture at 640x480
May 17th, 2005, 12:09pm
 
I'm trying to capture at 640x480 but getting output that looks suspiciosly like a stretched 320x240 output (it's twice as blury as the 640x480 output I'm used to from the camera).

My camera is listed as "Logitech QuickCam Pro 4000-WDM" and as recomended I'm using WinVDIG Version 1.0 to get it into Quicktime [on windows xp]. The Logitech control panel / capture utility merrily shows a sharp(ish) 640x480 preview. However I can't seem to find how/where to change the capture size for WinVDIG, indeed the QTCap app it comes with only shows a 320x240 preview.

Has anyone else been here before?

p90 example code incase I'm doing something stupid...

Code:
import processing.video.*; 
Capture myCapture;

void setup()
{
 size(640, 480);
 println(Capture.list());
 myCapture = new Capture(this, 640, 480);
}

void captureEvent(Capture myCapture) {
 myCapture.read();
}

void draw() {
 image(myCapture, 0, 0);
}

Re: trying but failing to capture at 640x480
Reply #1 - May 17th, 2005, 4:11pm
 
unless it's the camera, i think it's a limitation of winvdig, that it's using WDM (the older video api for windows) which is limited to 320x240.
Re: trying but failing to capture at 640x480
Reply #2 - May 17th, 2005, 4:19pm
 
boo hoo, is there an alternative to WinVDIG that will get more pixels per penny?
Re: trying but failing to capture at 640x480
Reply #3 - May 17th, 2005, 4:38pm
 
JMF (java media framework) might do it, but some kind sould would need to write a simple JMF lib... (hint, hint for anyone looking for a good project...)
Re: trying but failing to capture at 640x480
Reply #4 - May 20th, 2005, 2:26am
 
FYI, I'm pretty sure I can capture at 640x480 with a Creative web cam. I'm also sure there were settings for different sizes in vdig. I get scaling with a cruddier web cam. Then again I might be wrong but my good cam is photographing a building site every 30 seconds at the moment. Undecided
Page Index Toggle Pages: 1