Problem with cvCreateVideoWriter in OpenCv. Again )

I know, that the issue had been widely discussed before, but after 5 hours of inefficient googling I guess I deserve to ask :) By the way, all such problems concerned earlier versions of OpenCV, so..

I've compiled fresh OpenCV 2.1. from source under Ubuntu 9.10. It works fine except of cvCreateVideoWriter, which returns null to the following request:

CvVideoWriter *writer = cvCreateVideoWriter("video.avi", CV_FOURCC('M','J','P','G'), fps, size, 0);

I've walked through the OpenCv folders - it even seems to have ffmpeg inside. I've also installed it on the system to make sure. I've changed CV_FOURCC('M','J','P','G') to -1 - all worthless.

I would appreciate your help soo much!

-------------Problems Reply------------

I recompiled OpenCV and ffmpeg from source again and it seems to work fine right now.

Category:c# Views:2 Time:2010-05-30
Tags: c# opencv ffmpeg

Related post

  • Problem with VideoCapture in OpenCV 2.3 2011-07-12

    I have problem in using VideoCapture calss for opening a MPEG video file. The code was compile properly. However, during the running time, it can not open the file and give me the following warning message: warning: Error opening file (../../modules/

  • build problems with Qt and opencv on Windows 2012-04-07

    I would like to create a gui application with Qt, using opencv on Windows XP. I used both Qt and opencv before, but never together. Long story short, I'm unable to get opencv work with Qt. As on all the forums I searched there are just little pieces

  • Problem with cmake and OpenCV 2.0 in Ubuntu 2011-05-25

    Goodnight, I'm working in a project where we use Cmake and OpenCV 2.0 in Ubuntu 10.04, everyone in the team(we are a micro-mouse contest team) can compile code just fine, but I cant. This is what Cmake says to me: [email protected]:~/bioloid/build$

  • OpenCV Eye Tracking looses out for some frames 2011-10-19

    I am pasting code below to track both eyes and overlay an image when both eyes are tracked. I am using haar xml files to track both eyes of faces and overlaying an image over it. My problem is I get result like this. Img 1 Img 2 Img 3 Img 4 Img 5 Img

  • OpenCV 2.3.1 highgui crash on exit when using cvVideoWriter 2012-04-18

    recently I was recommended here on Stackoverflow to upgrade to OpenCV 2.3.1 in order to improve the results with cvVideoWriter (the last frame of a video was neither read/ written) and indeed with v.2.3.1 reading is okay but writing still is sort of

  • OpenMP with OpenCV on OS X 2010-02-23

    I'm having a problem getting OpenMP and OpenCV to play nicely with a new project in Xcode. The project in its current state does nothing but grab frames from the default camera and put them into a window. This functionality works. However, I would li

  • Issue with reading an image using "cv::imread" function in OpenCv 2010-04-06

    I have got a problem with some basic OpenCV code. Here is my code: cv::Mat src; src=imread("Calibration.bmp",0); if (src.empty()) cout << "Cannot load image" << " "; else cout << src.cols << " " << src.rows << " ";

  • OpenCV 2.1 Python Bindings Segfaulting 2010-09-11

    Hello I have a problem when grouping the OpenCV's functions in functions of my own and getting segmentation fault. Even with code as simple as this def acquire_imagen(): capture = cv.CaptureFromCAM( 0 ) img = cv.QueryFrame( capture ) return img img =

  • Determining template type when accessing OpenCV Mat elements 2011-01-20

    I'm using the following code to add some noise to an image (straight out of the OpenCV reference, page 449 -- explanation of cv::Mat::begin): void simulate_noise(Mat const &in, double stddev, Mat &out) { cv::Size s = in.size(); vector<doub

  • OpenCV - Error C2244 2011-01-21

    I'm currently on vacation far away from my desktop, however I wanted to practice my c++ in particular with openCV, so I brought my laptop along. Given time and family constraints I didn't get everything set up in time with the libraries before flying

  • Pattern Recognition using OpenCV 2011-02-19

    I am trying to detect a pattern on an object on a green field, made up of three colors (two pink markers to the sides and a blue one in the middle) arranged like a traffic light. At first I tried converting the images from the webcam to hsv color spa

  • Problem when I try to free a pointer vector 2011-03-25

    I am trying to learn to free pointer in a vector, I have read the questions on this page, and follow the answers to write some test code.I grab images from a web camera and first store all the images in memory, after all images are grabbed ,I save al

  • How to avoid interfering namespace issues between the Juce Framework and OpenCV? 2011-08-16

    I created an Juce Audio-Plugin project with the introjucer and Xcode4. All works fine until I added #include <cv.h> into my code. I got 317 issues in the OpenCV files: core.hpp, operations.hpp, mat.hpp, imgproc.hpp, features2d.hpp, objdetect.hp

  • How to properly install Python on OSX for use with OpenCV? 2011-08-20

    I spent the past couple of days trying to get opencv to work with my Python 2.7 install. I kept getting an error saying that opencv module was not found whenever I try "import cv". I then decided to try installing opencv using Macports, but that didn

  • OpenCV: "Feature Matching with FLANN" tutorial - getting exception 2011-09-09

    I am starting up with OpenCV (using C++) and was playing around with the "Feature matching with FLANN" tutorial from here: I did not modify anything, j

  • imread not working in Opencv 2011-09-14

    I'm trying to use the imread function from OpenCV2.2. My code is very simple. cv::Mat host= imread("1.bmp", CV_LOAD_IMAGE_GRAYSCALE); After that, the host matrix became filled by zeros pointers, i.e. an image has not loaded. If I use cvLoadImage then

  • Opencv: image, retrieved from camera capture is always gray 2011-09-30

    I am always getting a grey screen when showing image using opencv, the image is captured from camera. capture = cvCaptureFromCAM(-1); cvGrabFrame(capture); image = cvRetrieveFrame(capture); cvShowImage("name", image); after this I see the grey screen

  • OpenCV extrinsic camera from feature points 2011-11-15

    How do I retrieve the rotation matrix, the translation vector and maybe some scaling factors of each camera using OpenCV when I have pictures of an object from the view of each of these cameras? For every picture I have the image coordinates of sever

  • OpenCV and Computer Vision, where do we stand now? 2011-12-02

    I want to do a project involving Computer Vision. Mostly object detection/identification. After some research, I keep coming back to OpenCV. But all of the tutorials are from 2008 (I guess it was big for a bit then). It doesn't compile in Python on t

Copyright (C), All Rights Reserved.

processed in 0.091 (s). 11 q(s)