Ask Your Question

John's profile - activity

2012-12-31 02:44:17 -0600 commented answer VideoWriter produces empty videos

I think ffmpeg is Linux only.

2012-10-28 07:35:23 -0600 received badge  Teacher (source)
2012-10-24 01:45:35 -0600 received badge  Student (source)
2012-10-24 01:45:26 -0600 received badge  Self-Learner (source)
2012-10-23 17:38:16 -0600 answered a question VideoWriter produces empty videos

I'll answer my own question. I upgraded to ffmpeg 0.11 from 0.8 and it solved the problem.

2012-10-22 18:45:28 -0600 answered a question annotation tool for object detection

Of course it'll vary based on your use case, but you can check out:

http://labelme.csail.mit.edu/Release3.0/

2012-10-21 17:05:35 -0600 asked a question VideoWriter produces empty videos

I'm using OpenCV 2.4.9 (from the source) but I can no longer write videos using VideoWriter. I have FFmpeg 0.7.11 installed.

My code is really nothing special:

  VideoCapture capture;
  capture.open(FLAGS_input_video);
  CHECK(capture.isOpened());

  double fps = capture.get(CV_CAP_PROP_FPS);
  int width = capture.get(CV_CAP_PROP_FRAME_WIDTH);
  int height = capture.get(CV_CAP_PROP_FRAME_HEIGHT);

  VideoWriter writer(FLAGS_output_video, CV_FOURCC('M', 'P', '4', '2'), fps, Size(width, height));

  for (int i = 0; capture.grab(); ++i) {
    Mat frame;
    capture.retrieve(frame);

    writer << frame;
  }

Previously, I was able to write video just fine using OpenCV 2.3.1.