You are not logged in.

#1 2012-10-28 16:31:34

jarav
Member
Registered: 2008-09-04
Posts: 63

supported video codec for Gstreamer Opencv backend

Hi,
I am just starting with opencv. In one of the text book examples involving writing a video file, I have the following line:

    CvVideoWriter *writer = cvCreateVideoWriter("cam_cap", CV_FOURCC('x','v','i','d'), fps, size, 1);


When running the program,  I get the following error:

"
HIGHGUI ERROR: V4L2: Unable to get property <unknown property string>(5) - Invalid argument
OpenCV Error: Unsupported format or combination of formats (Gstreamer Opencv backend doesn't support this codec acutally.) in CvVideoWriter_GStreamer::open, file /build/src/OpenCV-2.4.2/modules/highgui/src/cap_gstreamer.cpp, line 479
terminate called after throwing an instance of 'cv::Exception'
  what():  /build/src/OpenCV-2.4.2/modules/highgui/src/cap_gstreamer.cpp:479: error: (-210) Gstreamer Opencv backend doesn't support this codec acutally. in function CvVideoWriter_GStreamer::open
"

Changing the video codec to other formats does not seem to help and I continue getting this error.

Can anyone help?

Thanks.

Offline

#2 2012-12-04 19:26:43

V01D
Member
Registered: 2006-07-18
Posts: 128

Re: supported video codec for Gstreamer Opencv backend

I'm having the same problem. Please provide some feedback.
I'm suspecting that there's a problem with the gstreamer code.
OpenCV seems to be compiled with Xine support, but not FFMPEG. I don't understand why, since FFMPEG was perfectly working before.

Offline

#3 2013-05-31 00:51:54

mathben
Member
Registered: 2013-04-06
Posts: 7

Re: supported video codec for Gstreamer Opencv backend

I have the same problem, it's with opencv2.4.5. Do you have some news?

Offline

Board footer

Powered by FluxBB