Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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!