Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Error when capture RTSP IP Camera using OpenCV 2.10 and Visual Studio 2008

$
0
0
Hi ! I am newbie in openCV. I made a program to access IP Camera that support RTSP protocol using OpenCV 2.10 and Visual Studio 2008. I made this program using Win32 Application. When I debug my program, my frame could open once and I got some error. The error said: "Compiler did not align stack variables. Libavcodec has been miscompiled and may be very slow or crash. This is not a bug in libavcodec, but in the compiler. You may try recompiling using gcc >= 4.2. Do not report crashes to FFmpeg developers. An unhandled exception of type 'System.AccessViolationException' occurred in CobaKameraIPConsole.exe Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt." This is my code : #include "stdafx.h" #include "cv.h" #include "cxcore.h" #include "highgui.h" IplImage *in_img; using namespace System; int main(array ^args) { CvCapture *URLKamera1 = cvCaptureFromFile("rtsp://192.168.1.125:554//user=admin_password=tlJwpbo6_channel=1_stream=0.sdp?real_stream"); while(1) { in_img = cvQueryFrame (URLKamera1); cvShowImage("input image",in_img); int key = cvWaitKey(1); if ((key==27)|(key==13)) break; //key 27 escape, key 13 enter } cvReleaseCapture(&URLKamera1); cvDestroyWindow("input image"); return 0; }

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>