gpt4 book ai didi

opencv - Gstreamer Opencv 后端实际上不支持此编解码器

转载 作者:太空宇宙 更新时间:2023-11-03 23:09:57 27 4
gpt4 key购买 nike

这是我在启动自己的项目时遇到的问题,

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 的新手,有人知道如何解决这个问题吗?您的线索也将不胜感激。

最佳答案

您似乎将不受支持的 fourcc 参数传递给了 VideoWriter 类。OpenCV 2.4.9 中 CvVideoWriter_GStreamerfourcc 支持值列表可在以下位置找到:https://github.com/opencv/opencv/blob/2.4.9/modules/highgui/src/cap_gstreamer.cpp#L462 .

出于好奇,您为什么使用自编译版本的 OpenCV?

关于opencv - Gstreamer Opencv 后端实际上不支持此编解码器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52215173/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com