OutputVideo.open("outVideo.avi", -1, 25, Size(100, 100), true) Ĭout << "Could not open the output video for write" << endl įfmpeg is enable to support OpenCV and libx264 is enabled when compiling ffmpeg.īy using ffmpeg command line, libx264 is running normally.įfmpeg -i test.avi -vcodec libx264 test. in functionīool fourcc_on = true //switch on / off different error What(): /home/XXX/Downloads/opencv-2.4.8/modules/highgui/src/cap_gstreamer.cpp:505:Įrror: (-210) Gstreamer Opencv backend doesn't support this codec acutally. Terminate called after throwing an instance of 'cv::Exception' home/XXX/Downloads/opencv-2.4.8/modules/highgui/src/cap_gstreamer.cpp, line 505 OpenCV Error: Unsupported format or combination of formats (Gstreamer Opencvīackend doesn't support this codec acutally.) in CvVideoWriter_GStreamer::open, file Using FOURCC = -1 to invoke user customized codec profile is optional x264 defaults to highĬould not open codec 'libx264': Unspecified errorĢ. will changes of default in ffmpeg be carried to libx264?Įrrors: 1.how to change ffmpeg default settings using code, hopefull, can be easily embeded into OpenCV?.anyone knows where and how OpenCV invoke ffmpeg API?.Thus the "Could not open codec 'libx264'" error. Then these setting is broken for libx264. Probably I have a problem with my Ubuntu 18. It seems that OpenCV invoke ffmpeg API using default parameters and ffmpeg invoke x264 using its default parameters. Im trying to use mp4 format coding (fourcc0x21) on OpenCV 3.2 without success. But when constructing VideoWriter, errors came out. I am new to OpenCV, and I want write Mat images into video using VideoWriter on Ubuntu 12.04.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |