---------------------
It's all right for now.
Good night!

It was this quote, along with the positive responses that motivated me to push the last little bit.The main core of the openCV is adapted to purebasiс. Thank you!
I understand that you are tired, but is it possible that project will continue a little later?
Wow that many; makes me think I should have started an upload policy awhile ago.It was my 57th downloaded package...
Me too, your support and contributions have been a big asset - cheers!I will be glad to meet you here.
Not sure I understood you correctly, but maybe the following will help?For now i'm trying to set connection to an IP camera and to get video from it.
What do you think about how to check that OpenCV libraries (VC10, VC11) are built with ffmpeg support?
Code: Select all
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <stdio.h>
int main()
{
CvCapture *capture = cvCreateFileCapture("rtsp://user:password@192.168.1.123:554/mpeg4");
// CvCapture *capture = cvCreateFileCapture("http://www.fileformat.info/format/mpeg/sample/567fd6a0e0da4a8e81bdeb870de3b19c/DELTA.MPG");
if (capture == NULL)
{
printf("capture is null, aborting...");
return -1;
}
cvNamedWindow("IPcam",CV_WINDOW_AUTOSIZE);
while (cvWaitKey(1) != 27)
{
IplImage *img = cvQueryFrame(capture );
if (img == NULL)
{
printf("img == null ");
fflush(stdout);
break;
}
cvShowImage("IPcam", img);
}
cvReleaseCapture(&capture );
return 0;
}
Code: Select all
IncludeFile "includes/cv_functions.pbi"
#CV_WINDOW_NAME = "IPcam"
Repeat
nCreate + 1
; *capture = cvCreateFileCapture("http://www.fileformat.info/format/mpeg/sample/567fd6a0e0da4a8e81bdeb870de3b19c/DELTA.MPG")
*capture = cvCreateFileCapture("rtsp://user:password@192.168.1.123:554/mpeg4")
Delay(500)
Until nCreate = 5 Or *capture
While *capture = 0;
Delay(500)
; *capture = cvCreateFileCapture("http://www.fileformat.info/format/mpeg/sample/567fd6a0e0da4a8e81bdeb870de3b19c/DELTA.MPG")
*capture = cvCreateFileCapture("rtsp://user:password@192.168.1.123:554/mpeg4")
Debug *capture
Wend
cvNamedWindow(#CV_WINDOW_NAME, #CV_WINDOW_AUTOSIZE)
*image.IplImage
Repeat
*image = cvQueryFrame(*capture)
If *image
cvShowImage(#CV_WINDOW_NAME, *image)
EndIf
keyPressed = cvWaitKey(10)
Until keyPressed = 27 Or ExitCV
cvDestroyWindow(#CV_WINDOW_NAME)
My best ideas usually happen just before REM sleep.But! my tired brain was visited by idea to try the program on other computer with windws7
Have you tried the VC12 binaries included with the package; should work for both Windows XP and Windows 7.Perhaps there are some compatibility problems of the opencv libraries (VC11 version) with Windows XP.
How did you test this, my example only displays values from: cvGetCaptureProperty_FFMPEG...FFMPEG library is not very good, it is slow, so the HD image (1280*720) contains artefacts often.
Yes, i have tried. Result is the same: my program don't work in Windows XP.Have you tried the VC12 binaries included with the package; should work for both Windows XP and Windows 7.
There are two video streams from IP cam:How did you test this...