GStreamer管道中断

问题描述

我不确定为什么该管道中断了,我是否从网站上获得了gstreamer的确切说明,有什么想法?

gst-launch-1.0 v4l2src device=/dev/video0 ! videoscale ! video/x-raw,width=2592,height=600 ! autovideosink -v
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped,reason not-negotiated (-4)
Execution ended after 0:00:00.000093207
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

解决方法

您的网络摄像头会将原始视频输出传输给正在收听的任何人。添加videoconvert会将原始视频编码为编解码器,该编解码器可以由videoscale元素进行操作,而操作的最终结果将由autovideosink元素进行理解。

因此gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert! videoscale ! video/x-raw,width=2592,height=600 ! autovideosink告诉gstreamer从摄像机获取原始视频,将其编码为我们可以理解的东西,更改视频并显示。

我真的建议您,如果对某个元素有疑问,请致电gst-inspect-1.0 <element name>以查看其说明和属性。

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...