error mpeg 4 codecs ip streaming
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 );
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();
cvReleaseCapture( &capture );
cvReleaseImage( &original );
return 0;
}
and i get this kind of error see below :
---- 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?