Description of problem: I can't use function cvCreateVideoWriter for write video to file. If I compiled and run same code in other distributions with (deb packages), everything worked fine (code is correctly). I tried to install many packages for gstream. Version-Release number of selected component (if applicable): opencv-devel-docs-2.3.1-3.fc16.noarch opencv-2.3.1-3.fc16.x86_64 opencv-devel-2.3.1-3.fc16.x86_64 How reproducible: Steps to Reproduce: 1. I install opencv library for developing 2. Compile program 3. Run program and it failed during try to write video Actual results: OpenCV Error: Unsupported format or combination of formats (Gstreamer Opencv backend doesn't support this codec acutally.) in CvVideoWriter_GStreamer::open, file /builddir/build/BUILD/OpenCV-2.3.1/modules/highgui/src/cap_gstreamer.cpp, line 483 terminate called after throwing an instance of 'cv::Exception' what(): /builddir/build/BUILD/OpenCV-2.3.1/modules/highgui/src/cap_gstreamer.cpp:483: error: (-210) Gstreamer Opencv backend doesn't support this codec acutally. in function CvVideoWriter_GStreamer::open
Can you report the output of: rpm -qa gstreamer\* And which file format are you trying to write ?
>> rpm -qa gstreamer\* gstreamer-plugins-espeak-0.3.5-1.fc16.x86_64 gstreamer-devel-0.10.35-1.fc16.i686 gstreamer-plugins-base-devel-0.10.35-3.fc16.x86_64 gstreamer-plugins-bad-free-0.10.22-2.fc16.2.x86_64 gstreamer-plugins-bad-nonfree-0.10.22-2.fc16.x86_64 gstreamer-0.10.35-1.fc16.x86_64 gstreamer-plugins-good-0.10.30-5.fc16.x86_64 gstreamer-rtsp-0.10.8-1.fc16.x86_64 gstreamer-plugins-bad-free-devel-docs-0.10.22-2.fc16.2.x86_64 gstreamer-ffmpeg-0.10.13-1.fc16.x86_64 gstreamer-plugins-ugly-devel-docs-0.10.18-3.fc16.noarch gstreamermm-devel-0.10.10-1.fc16.x86_64 gstreamer-devel-0.10.35-1.fc16.x86_64 gstreamer-plugins-bad-free-extras-0.10.22-2.fc16.2.x86_64 gstreamer-plugins-fc-0.2-2.fc15.x86_64 gstreamer-plugins-bad-free-devel-0.10.22-2.fc16.2.x86_64 gstreamer-ffmpeg-0.10.13-1.fc16.i686 gstreamer-tools-0.10.35-1.fc16.x86_64 gstreamer-plugins-base-tools-0.10.35-3.fc16.x86_64 gstreamermm-0.10.10-1.fc16.x86_64 gstreamer-0.10.35-1.fc16.i686 gstreamer-plugins-bad-0.10.22-2.fc16.x86_64 gstreamer-plugins-base-0.10.35-3.fc16.x86_64 gstreamer-plugins-ugly-0.10.18-3.fc16.x86_64 gstreamer-plugins-entrans-docs-0.10.3-3.fc16.noarch gstreamer-python-0.10.19-2.fc15.x86_64 gstreamer-plugins-entrans-0.10.3-3.fc16.x86_64 gstreamer-plugins-base-devel-docs-0.10.35-3.fc16.noarch gstreamer-plugins-base-0.10.35-3.fc16.i686 gstreamer-plugins-good-devel-docs-0.10.30-5.fc16.noarch I tested these basic video formats: CV_FOURCC('D','I','V','X') CV_FOURCC('P','I','M','1') CV_FOURCC('F','L','V','1') CV_FOURCC('M','J','P','G')
Can you test on theora (or anything that do not use gstreamer-ffmpeg,bad,ugly) ?
Do you mean CV_FOURCC('T','H','E','O') ? I tried to test it, but it was same problem. I can use other library, but writing video is simple in opencv.
Can you try to reproduce with opencv from rawhide ? (aka OpenCV-2.4.1)
I have same problem in Fedora 18: Program in C/C++ - using CV_FOURCC('T', 'H', 'E', 'O') OpenCV Error: Unsupported format or combination of formats (Gstreamer Opencv backend doesn't support this codec acutally.) in CvVideoWriter_GStreamer::open, file /builddir/build/BUILD/OpenCV-2.4.2/modules/highgui/src/cap_gstreamer.cpp, line 479 terminate called after throwing an instance of 'cv::Exception' what(): /builddir/build/BUILD/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 >> rpm -qa | grep opencv libfreenect-opencv-0.1.2-2.fc18.x86_64 opencv-2.4.2-2.fc18.x86_64 opencv-devel-docs-2.4.2-2.fc18.noarch opencv-python-2.4.2-2.fc18.x86_64 opencv-devel-2.4.2-2.fc18.x86_64 >>rpm -qa | grep gstream gstreamer-plugins-base-devel-0.10.36-3.fc18.x86_64 gstreamer1-1.0.3-1.fc18.x86_64 gstreamer-0.10.36-2.fc18.x86_64 gstreamer-plugins-espeak-0.4.0-1.fc18.x86_64 gstreamer1-plugins-bad-free-1.0.3-1.fc18.x86_64 gstreamer-plugins-base-0.10.36-3.fc18.x86_64 gstreamer-rtsp-0.10.8-3.fc18.x86_64 gstreamer-python-0.10.22-3.fc18.x86_64 gstreamer-devel-0.10.36-2.fc18.x86_64 PackageKit-gstreamer-plugin-0.8.6-1.fc18.x86_64 gstreamer1-plugins-base-1.0.3-1.fc18.x86_64 gstreamer1-plugins-good-1.0.3-1.fc18.x86_64 gstreamer-tools-0.10.36-2.fc18.x86_64 gstreamer-plugins-bad-free-0.10.23-11.fc18.x86_64 gstreamer-plugins-good-0.10.31-5.fc18.x86_64
I solved this problem. I recompile packages with support ffmpeg library cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON CMAKE_VERBOSE=1 -DPYTHON_PACKAGES_PATH=/usr/lib64/python2.7/site-packages -DCMAKE_SKIP_RPATH=ON -DUSE_FAST_MATH=0 -DUSE_OMIT_FRAME_POINTER=0 -DCMAKE_BUILD_TYPE=Release -DBUILD_TEST=1 -DWITH_TBB=1 -DTBB_LIB_DIR=/usr/lib64 -DWITH_FFMPEG=1 -DWITH_OPENNI=ON -DWITH_XINE=1 -DINSTALL_C_EXAMPLES=1 -DINSTALL_PYTHON_EXAMPLES=1 .. If somebody hava same problem, I created new compiled packages with ffmpeg support: http://apt.varhoo.cz/fedora/17/
Yes, there is even an RPM option I try to maintain with ffmpeg. But this is not usable for Fedora. It means it cannot be enabled by default. It would be much more useful to see if others codecs cannot be enabled via gstreamer instead. Such as adding FourCC to the CvVideoWriter_GStreamer::init() function (see l. 445 in modules/highgui/src/cap_gstreamer.cpp).
This message is a reminder that Fedora 16 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 16. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '16'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 16's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 16 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged to click on "Clone This Bug" and open it against that version of Fedora. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Upstream bug report with patch attached (untested) http://code.opencv.org/issues/2721
opencv-2.4.3-5.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/opencv-2.4.3-5.fc18
Package opencv-2.4.3-5.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing opencv-2.4.3-5.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-1199/opencv-2.4.3-5.fc18 then log in and leave karma (feedback).
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle. Changing version to '19'. (As we did not run this process for some time, it could affect also pre-Fedora 19 development cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.) More information and reason for this action is here: https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19
opencv-2.4.5-1.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/opencv-2.4.5-1.fc18
opencv-2.4.5-1.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.
I,m working in face tracking using aam opencv in ubuntu 14.0 lts ... and i installed opencv 2.4.9, ffmpeg, gstreamer, x26,v4l... but i get an error when i did ./runner are mentioned below... OpenCV Error: Unsupported format or combination of formats (Gstreamer Opencv backend doesn't support this codec acutally.) in CvVideoWriter_GStreamer::open, file /home/mano/project/opencv-2.4.9/modules/highgui/src/cap_gstreamer.cpp, line 505terminate called after throwing an instance of 'cv::Exception' what(): /home/mano/project/opencv-2.4.9/modules/highgui/src/cap_gstreamer.cpp:505: error: (-210) Gstreamer Opencv backend doesn't support this codec acutally. in function CvVideoWriter_GStreamer::open pls i need for help ....reply as soon as possible