error mpeg 4 codecs ip streaming

asked 2014-06-25 02:40:56 -0500

Clem50FFF gravatar image

updated 2014-06-25 03:15:42 -0500

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 :

image description

---- 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?
edit retag flag offensive close merge delete