Ask Your Question

daktor's profile - activity

2019-04-19 07:46:08 -0600 received badge  Popular Question (source)
2013-05-06 20:24:44 -0600 received badge  Supporter (source)
2013-05-06 20:23:45 -0600 commented question FFMPEG crash with a GoPro video

I am also having this issue; 64bit and try to open movie with AAC audio stream causes crash in opencv_ffmpeg243_64.dll.

2013-05-03 13:38:43 -0600 answered a question Mat::resize() hangs in 64bit

This worked, not sure why:

Mat frame;
...
Size_<int> s(1024, 1024);
resize(frame, frame, s, 0, 0, INTER_NEAREST);
2013-04-30 23:39:18 -0600 received badge  Editor (source)
2013-04-30 23:38:17 -0600 asked a question Mat::resize() hangs in 64bit

EDIT: This was caused by code outside of OpenCV. Still haven't tracked down exactly what's going on, but it is not the fault of OpenCV.

Mat frame;
if (Cap.read(frame))
{
   Size_<int> s(1024, 1024);
   Mat test;
   resize(frame, test, s);
}

Running x86 this works perfectly in 2.4.3. Running x64 execution hits resize() but never returns. Any ideas what I've done wrong? Or a different way to resize Mats?

Thanks!

2013-04-11 09:57:56 -0600 commented answer delete videocapture

Yup, I'll give that a shot, thanks!

2013-04-11 09:33:04 -0600 commented answer delete videocapture

Thank you all for the quick responses.

I tried passing the movie file in to the constructor with no luck:

VideoCapture* x = new VideoCapture("test.avi");

delete x;

If I run as is, it crashes. If I comment delete x; then the movie loads fine and all is well, but the memory doesn't get freed properly.

2013-04-11 06:39:52 -0600 commented answer delete videocapture

This line of code results in the compiler error:

error C2440: 'initializing' : cannot convert from 'cv::VideoCapture *' to 'cv::VideoCapture'

NOTE: initializing on the stack does work well for us. This question pertains to initializing on the heap.

Stack:

function foo()

{

VideoCapture x;

x.open(movieFile);

}

2013-04-11 06:36:39 -0600 commented answer delete videocapture

I did try x->release(); before delete x and it still crashes when deleting x.

2013-04-11 01:07:44 -0600 received badge  Student (source)
2013-04-11 00:28:07 -0600 asked a question delete videocapture

Hi all,

I'm using OpenCV 2.42. If I initialize a VideoCapture object on the stack, all is good. However if I try:

VideoCapture *x = new VideoCapture();
delete x;

It crashes when I delete x. Any ideas what I've done wrong?

Thanks!