VideoWriter problem with Ubuntu (3.0 alpha)

asked 2014-09-03 14:45:43 -0500

kovand11 gravatar image

updated 2014-09-08 09:00:34 -0500

With opencv 3.0 (master branch)

int codec = cv::VideoWriter::fourcc('M','J','P','G');
cv::VideoWriter writer(ui->lineEdit->text().toStdString(),codec,23,cv::Size(640,480));
qDebug() << "videoWriter.isOpened() = " << writer.isOpened();
writer.release();

//Debug output
//videoWriter.isOpened() =  false

With libopencv-dev package installed from Ubuntu repo:

int codec = CV_FOURCC('M','J','P','G');
cv::VideoWriter writer(ui->lineEdit->text().toStdString(),codec,23,cv::Size(640,480));
qDebug() << "videoWriter.isOpened() = " << writer.isOpened();
writer.release();

//Debug output
//videoWriter.isOpened() =  true

Any idea how to solve whats wrong (no console error)?

  • Hidden dependency what is installed with the libopencv-dev package?
  • Bug in the 3.0 version?

UPDATE:

I tried out the stable 2.4 branch, but it's broken as well. So there must be some package that comes with the libopencv-dev, that is needed.

edit retag flag offensive close merge delete

Comments

With libopencv-dev package installed from Ubuntu repo ... worst approach ever I would say. Stick to the github repo, it ensures the latest fixes. But no clue why it got broken. Keep in mind that 3.0 branch is unstable ...

StevenPuttemans gravatar imageStevenPuttemans ( 2014-09-04 08:13:58 -0500 )edit