【发布时间】:2020-08-19 20:34:59
【问题描述】:
我不确定为什么这条管道会中断,我已经根据网站的确切说明在 linux 上安装了 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 ...
如果我将其更改为:
gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert! videoscale ! video/x-raw, width=2592, height=600 ! autovideosink -v
它会起作用,但为什么它不能以另一种方式起作用?
【问题讨论】:
-
如果我将其更改为:gst-launch-1.0 v4l2src device=/dev/video0 !视频转换!视频缩放!视频/x-raw,宽度=2592,高度=600! autovideosink -v ,它会工作,但为什么它不能工作?
-
不要在评论中发布此类信息。编辑您的问题以显示该替代方案。否则,一个非常好的第一个 Q。让我知道你做了那个改变,我们可以删除这些无关的 cmets(我会支持你的 Q)。祝你好运。
标签: linux terminal gstreamer pipeline v4l2