openframeworks / openFrameworks

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

of0.80 videoInput bug. #2757

Open yty opened 10 years ago

yty commented 10 years ago

win7+vs2012+of0.80

bool ofDirectShowGrabber::initGrabber(int w, int h){
   ...
  //bool bOk = VI.setupDevice(device, width, height);
  bool bOk = VI.setupDevice(device, width, height,VI_S_VIDEO); //VI_S_VIDEO bug .
  ...
}

Unable to get the video stream.

strangely enough, if videoGrabber.isFramenew() breakpoints, run the program, you can see the captured image.

I am using this capture card ,Compatible with DirectShow, And you can use amcap acquire images.

http://avertv.avermedia.com/Product/ProductDetail.aspx?Id=523

@ofTheo You can upload the latest code videoInput it? This address is not of0.80 version version

videoInput => # define VI_VERSION 0.1995 https://github.com/ofTheo/videoInput/tree/master/videoInputSrcAndDemos/libs/videoInput

of0.80 => # define VI_VERSION 0.200 https://github.com/openframeworks/openFrameworks/blob/master/libs/videoInput

ofTheo commented 10 years ago

the latest VI is actually here in the update2013 branch: https://github.com/ofTheo/videoInput/tree/update2013/videoInputSrcAndDemos/libs/videoInput

does that version also cause problems?

micuat commented 10 years ago

I had a similar problem with Win7 + VS2012 + oF0.80 + Basler Camera. Specifically, grabber crashes at

                        hr = pMoniker->BindToObject(NULL, NULL, IID_IBaseFilter, (void**)gottaFilter);

After a while playing with videoInput, I noticed that the Windows Firewall prevents from connecting to Basler camera (over eth), and makes the ofApp to crash at that line. When I permit the ofApp to connect to intranet the problem is fixed.

bakercp commented 7 years ago

@yty Is this still an issue in the master branch?