请选择 进入手机版 | 继续访问电脑版
按照手册使用如下命令,可以查看实时视频(ffplay,cheese 等都不可用,这是唯一能用的方式),但是视频图像特别暗,就像 ISP 没工作一样


gst-launch-1.0 v4l2src device=/dev/video11 ! video/x-raw,format=NV12,width=640,height=480,framerate=30/1 ! autovideosink


Setting pipeline to PAUSED ...
libEGL warning: DRI2: failed to authenticate
Using mplane plugin for capture
libv4l2: error getting pixformat: Invalid argument
Pipeline is live and does not need PREROLL ...
Got context from element 'autovideosink0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0";
Setting pipeline to PLAYING ...
New clock: GstSystemClock
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:02.996036585
Setting pipeline to NULL ...
Freeing pipeline ...

使用这个命令保存一个图片


$ gst-launch-1.0 v4l2src device=/dev/video11 num-buffers=1 ! video/x-raw,format=NV12,width=1920,height=1080 ! jpegenc ! filesink location=pic.jpg
Setting pipeline to PAUSED ...
Using mplane plugin for capture
libv4l2: error getting pixformat: Invalid argument
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:00:00.241745178
Setting pipeline to NULL ...
Freeing pipeline ...

见附件

请问怎么解决?
pic.jpg

1

主题

1

回帖

17

积分

新手上路

积分
17
 楼主| 发表于 2025-8-12 20:06:20 | 显示全部楼层
沙发
问题解决了,因为是重新定制的系统,需要自己编译安装 camera_engine_rkaiq 这个包。。。真是全是坑
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Powered by Discuz! X3.5  © 2001-2013 Comsenz Inc.