Hi everybody, i would like to kmown if someone known how works opencv with codec? i'm using this code see below :
int main() //{ //capture = cvCaptureFromFile( "rtsp://IP/ch2" ); //for(;;) //{ //frame = cvQueryFrame( capture ); ////cvWriteFrame(writer, frame); //if ( !frame ) //break; //if ( !original ) //{ //original = cvCreateImage( cvGetSize( frame ), IPL_DEPTH_8U, 3 ); //cvGetSize( frame ); //original->origin = frame->origin; //} //cvCopy( frame, original ); //cvNamedWindow( "",CV_WINDOW_NORMAL && CV_GUI_NORMAL); //cvMoveWindow("",0,0); //cvResizeWindow("",600,600); //cvShowImage( "", original ); //if ( cvWaitKey(5) == 27) //break; // //} //cvDestroyAllWindows(); ////cvReleaseVideoWriter(&writer); //cvReleaseCapture( &capture ); //cvReleaseImage( &original ); // return 0; //}
and i get this kind of error see below :
[mpeg4 @ serie of number] Error at Mb: 430 [mpeg4 @ serie of number] slice end not reached but screenspace end (o left 000000,score =-625) [mpeg4 @ serie of number] ac-tex damaged at 42 2 ---- all error are refer to mpeg4
i tried to install some codec but without result.
the capture seems related to "opencv_ffmpeg249_64.dll" because when i cancel it from project the video result null.
my questions is:
- to stream ip camera, opencv use her own codec or use the external component?