Ask Your Question

Ajai's profile - activity

2017-07-08 11:11:10 -0600 commented question custom codec

I am facing a similar issue. I am using OpenCV 2.4.13.2 build on Visual Studio 2008. I have to open a video file which is created with a custom code Delphi Jpeg IP. OpenCV 's VideoCapture is not able to open the file. Open return failure. Can anyone help.

I was thinking of checking the possibility of making FFMPEG to support my codec. Any thoughts on that from anyone

2017-07-08 09:45:20 -0600 received badge  Editor (source)
2017-07-08 09:36:20 -0600 commented question OpenCV2.2 with Visual Studio 2008

Hi, Now i realized the issue with the file opening is not related to the version of OpenCV. The file that i was trying to open was created with a Custom Codec known as DJIP. I tried with a downloaded avi file and that was working. Now i need to know how can i open or add support to a custom codec generated video file. I read somewhere that the Videos are open using ffmpeg.

Thanks AJAI

2017-07-08 09:02:35 -0600 asked a question How to make opencv support custom codes for videos for reading

Hi, I wrote a small test sample program to open an avi file. The program is as show when i tried to open the file, it is always failing. I tried another file downloaded from the internet and that successfully opened. It is because the file that i was initially trying to open is created with a custom code and the second one( which opened successfully), was written with a codec IV41. I want to know how can i make my OpenCV to support custom built codecs.

     VideoCapture input;// = VideoCapture( filename );
     bool status = input.open( filename);
     if (!input.isOpened()) return 0;
2017-05-18 04:53:22 -0600 commented question OpenCV2.2 with Visual Studio 2008

Hi, I am working with release. In debug when i tried to run the application it wasnt showing any exception but the value of the obj and refcount are 0s. I tried to create the debug information in Release. When i removed the debug information, its not giving any exception. But the values is same in the Debug.

Thanks AJAI

2017-05-18 02:13:39 -0600 asked a question OpenCV2.2 with Visual Studio 2008

I am very new to OpenCV. I downloaded and installed Open CV according to the instructions in the link https://rangadabarera.wordpress.com/o... . My requirement is to create a video library that can be used to replace the existing video library that uses Video For Windows(VFW). I am trying to write a sample code to open and read an avi file. I added the following libraries "opencv_core220.lib opencv_highgui220.lib opencv_video220.lib opencv_ffmpeg220.lib". The code i have written looks like as follows

#include <iostream>

#include "opencv2/opencv.hpp"
#include "opencv2/highgui/highgui_c.h"
#include "opencv2/highgui/highgui.hpp"
using namespace std;
using namespace cv;
int main()
{
    string filename ("C:\\ADAS_AHBC_201046_002.avi") ; 

    VideoCapture input;
    bool status = input.open( filename );
    if (!input.isOpened()) return 0;
    int frameCount = input.get(CV_CAP_PROP_FRAME_COUNT);
}

But while running the code, i am getting an exception with the following text Unhandled exception at 0x00905a4d in aviread.exe: 0xC0000005: Access violation. The value of the obj and referance count fields within the VideoCapture object seems to be 0

I tried another version like as follows and the output is the same

int main()
{
    string filename ("C:\\ADAS_AHBC_201046_002.avi") ; 

    VideoCapture input = VideoCapture( filename );
    //bool status = input.open( filename );
    if (!input.isOpened()) return 0;
    int frameCount = input.get(CV_CAP_PROP_FRAME_COUNT);
}

But when i tried to to read from a camera, it seems like not throwing any error. The code is as follows int main() { string filename ("C:\ADAS_AHBC_201046_002.avi") ;

    VideoCapture input = VideoCapture( 0 );
    //bool status = input.open( filename );
    if (!input.isOpened()) return 0;
    int frameCount = input.get(CV_CAP_PROP_FRAME_COUNT);
}

While debugging this code, my lap's camera is getting invoked. Can you please help me understand as what is wrong with what i am doing.

Thanks AJAI