openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.97k stars 2.55k forks source link

WIndows 8 videoGrabber pixelates and crops image #1962

Open danzeeeman opened 11 years ago

danzeeeman commented 11 years ago

I'm seeing some very strange issues with Windows 8 and the ofDirectShowGrabber. The videoGrabber isn't working correctly. I've uploaded 4 images here that illustrate the issues I'm seeing and the differences between oF Win, oF OS X, and p5 Win. I captured these images using the videoGrabber example. I made simple changes to set the grabber's size to 1920x1080 and added something to save the frame. I'm using the Microsoft LifeCam Studio as my camera but can reproduce the issue with other high res webcams. It looks like the requested size is failing and it is falling back to some default value then scaling the image up to the requested size. When I run the same oF project on OS X and a similar p5 sketch on Windows using the same webcam it works perfectly.

So I dug deeper and tested the videoInput library and saw some of the same issues but just the requested size failing and not the scaling up to the requested size when draw. I also tested Cinder and it is a problem there too. Looks like they are also using something based off of @ofTheo's old videoInput library as well. Any ideas?

ofZach commented 9 years ago

is this still an issue? (I've noticed the other related issue #1364 is closed). I think the default on OSX had always been to try to open to the requested size and to resize internally (AFAIK, it was actually not even in OF where the resize was happening on the OSX side).