Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

VideoCapture can not get the right code of codec

VideoCapture vido_file("D:\1.avi");//read file if(vido_file.isOpened()==NULL) return -1; int ex = static_cast<int>(vido_file.get(CV_CAP_PROP_FOURCC));

i copy the codes from user manul,but i doesn't work. ex=1196444237,why ? thank you for help .

VideoCapture can not get the right code of codec

VideoCapture vido_file("D:\1.avi");//read file vido_file("D:\1.avi");

    if(vido_file.isOpened()==NULL)
             return -1;
     int ex = static_cast<int>(vido_file.get(CV_CAP_PROP_FOURCC));

static_cast<int>(vido_file.get(CV_CAP_PROP_FOURCC));

i copy the codes from user manul,but i doesn't work. ex=1196444237,why ? thank you for help .