Gstreamer Opencv 后端实际上不支持此编解码器
Gstreamer Opencv backend doesn't support this codec acutally
这是我在启动自己的项目时遇到的问题,
OpenCV Error: Unsupported format or combination of formats (Gstreamer
Opencv backend doesn't support this codec acutally.) in
CvVideoWriter_GStreamer::open, file
/home/htf/Downloads/opencv-2.4.9/modules/highgui/src/cap_gstreamer.cpp,
line 505
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.
terminate called after throwing an instance of 'cv::Exception'
what(): /home/htf/Downloads/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
Aborted (core dumped)
opencv 版本:2.4.9
我是 OpenCV 的新手,有人知道如何解决这个问题吗?您的线索也将不胜感激。
您似乎向 VideoWriter
class 传递了不受支持的 fourcc
参数。
OpenCV 2.4.9 中 CvVideoWriter_GStreamer
的 fourcc
支持值列表可在以下位置找到:https://github.com/opencv/opencv/blob/2.4.9/modules/highgui/src/cap_gstreamer.cpp#L462.
出于好奇,你为什么使用自编译版本的 OpenCV?
这是我在启动自己的项目时遇到的问题,
OpenCV Error: Unsupported format or combination of formats (Gstreamer Opencv backend doesn't support this codec acutally.) in CvVideoWriter_GStreamer::open, file /home/htf/Downloads/opencv-2.4.9/modules/highgui/src/cap_gstreamer.cpp, line 505
Qt has caught an exception thrown from an event handler. Throwing exceptions from an event handler is not supported in Qt. You must reimplement QApplication::notify() and catch all exceptions there.
terminate called after throwing an instance of 'cv::Exception' what(): /home/htf/Downloads/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
Aborted (core dumped)
opencv 版本:2.4.9
我是 OpenCV 的新手,有人知道如何解决这个问题吗?您的线索也将不胜感激。
您似乎向 VideoWriter
class 传递了不受支持的 fourcc
参数。
OpenCV 2.4.9 中 CvVideoWriter_GStreamer
的 fourcc
支持值列表可在以下位置找到:https://github.com/opencv/opencv/blob/2.4.9/modules/highgui/src/cap_gstreamer.cpp#L462.
出于好奇,你为什么使用自编译版本的 OpenCV?