g_object_set: assertion 'G_IS_OBJECT (object)' failed
Hello, I am using OpenCV (2.4.11) on Windows (Cygwin). I want to open a video file but I get this error message:
GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
Editing images works great, so my installation in general should be fine. Maybe I am missing a Codec? My code looks like this:
VideoCapture cap(argv[1]);
if(cap.grab()){
cout<<"success"<<endl;
}
./test.exe video.avi
I already searched for a solution, but I didn't found any useful ideas... Thank you for your help!
did you somehow build with gstreamer ?
(where else should such an error come from ?)
You are right, I am using gstreamer. I installed some additional plugins and now I get an other error:
Webm Format is working fine...The error message is still cryptic to me :/
maybe you can try this overload , and see, if ffmpeg or dshow canhandle your video