我已经使用来自
https://github.com/nxp的基于 kirkstone 5.15.52-2.1.0 BSP 的
$ bitbake imx-image-full构建了一个新图像。
在成功构建和部署“完整”图像后,我尝试使用 Gstermer 使用 mipi csi 捕获图片。
通过使用以下命令
$ gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=1 ! 视频/x-raw,宽度=640,高度=480!jpegenc!文件接收器位置=/tmp/pic_one.jpg
我收到以下错误:
剧透(Highlight to read)Set
ting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src1: Internal data stream error.
Additional debug info:
../git/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Additional debug info:
../git/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src1:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
ERROR: pipeline doesn't want to preroll.
Execution ended after 0:00:00.000408375
Setting pipeline to NULL ...
Freeing pipeline ...
Setting pipeline to PAUSED ...Pipeline is live and does not need PREROLL ...Pipeline is PREROLLED ...Setting pipeline to PLAYING ...ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src1: Internal data stream error.Additional debug info:../git/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:streaming stopped, reason not-negotiated (-4)Additional debug info:../git/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src1:streaming stopped, reason not-negotiated (-4)ERROR: pipeline doesn't want to preroll.ERROR: pipeline doesn't want to preroll.Execution ended after 0:00:00.000408375Setting pipeline to NULL ...Freeing pipeline ...
顺便说一句,当我尝试将上述命令与来自 NXP 网站的 NXP prebuild 可下载图像一起使用时,该命令运行良好......
您能否就可能出现的问题提出建议,我还发现缺少一些工具,例如“lsusb”和“ping”?
0