参考解决方法 查看buildinformation:缺少gstreamer》》重新编译,编译参数中增加:-DWITH_GSTREAMER=ON ; https://docs.opencv.org/4.5.5/d0/da7/videoio_overview.html不缺少》》重新编译 编译参考:https://docs.opencv.org/4.5.5/db/d05/tutorial_config_reference.html