Writing video with openCV - no key frame set for track 0
问题 I'm trying to modify and write some video using openCV 2.4.6.1 using the following code: cv::VideoCapture capture( video_filename ); // Check if the capture object successfully initialized if ( !capture.isOpened() ) { printf( "Failed to load video, exiting.\n" ); return -1; } cv::Mat frame, cropped_img; cv::Rect ROI( OFFSET_X, OFFSET_Y, WIDTH, HEIGHT ); int fourcc = static_cast<int>(capture.get(CV_CAP_PROP_FOURCC)); double fps = 30; cv::Size frame_size( RADIUS, (int) 2*PI*RADIUS ); video