|
发表于 2022-3-1 15:03:47
只看该作者
7#
运行下面命令,捕获一张图片保存到本地
gst-launch-1.0 v4l2src device=/dev/video0 ! jpegdec ! filesink location=./test.jpg
得到如下:
librga:RGA_GET_VERSION:4.00,4.000000
ctx=0x55b9441270,ctx->rgaFd=3
Rga built version:version:+2017-09-28 10:12:42
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
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.005840838
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
请问运行的命令是否正确,以及报错如何解决
|
|