完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
问题描述及复现步骤: 通过v4l2-ctl对摄像头进行取流测试,但输出文件大小为0,没有保存任何数据。 使用SDK版本为:rk3588_repo_sdk_v1.0.2a.7z, Bundle:rk3588-v1.0.2a-to-v1.0.2b.7z; rk3588-v1.0.2b-to-v1.0.2c.7z
|
|
相关推荐
3个回答
|
|
|
|
|
|
我试了gstreamer,命令如下:
firefly@firefly:~$ gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=NV12,width=800,height=600,framerate=30/1 ! kmssink 输出结果如下: Setting pipeline to PAUSED ... Using mplane plugin for capture Pipeline is live and does not need PREROLL ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock ERROR: from element /GstPipeline:pipeline0/GstKMSSink:kmssink0: GStreamer encountered a general resource error. Additional debug info: ../sys/kms/gstkmssink.c(1967): gst_kms_sink_show_frame (): /GstPipeline:pipeline0/GstKMSSink:kmssink0: drmModeSetPlane failed: Invalid argument (22) ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error. Execution ended after 0:00:01.193099748 Additional debug info: ../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: streaming stopped, reason error (-5) Setting pipeline to NULL ... Freeing pipeline ... 好像还是不行。 另外,我在Debian的固件中使用V4L2 TestBench工具,能够看到摄像头图像,也能够把图像保存到文件中。 那很奇怪,使用v4l2-ctl为什么不行?而且我自己写了一个通过v4l2的取流的程序,读取的buffer为空。 |
|
|
|
我试了gstreamer,命令如下:
firefly@firefly:~$ gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=NV12,width=800,height=600,framerate=30/1 ! kmssink 输出结果如下: Setting pipeline to PAUSED ... Using mplane plugin for capture Pipeline is live and does not need PREROLL ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock ERROR: from element /GstPipeline:pipeline0/GstKMSSink:kmssink0: GStreamer encountered a general resource error. Additional debug info: ../sys/kms/gstkmssink.c(1967): gst_kms_sink_show_frame (): /GstPipeline:pipeline0/GstKMSSink:kmssink0: drmModeSetPlane failed: Invalid argument (22) ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error. Execution ended after 0:00:01.193099748 Additional debug info: ../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: streaming stopped, reason error (-5) Setting pipeline to NULL ... Freeing pipeline ... 好像还是不行。 另外,我在Debian的固件中使用V4L2 TestBench工具,能够看到摄像头图像,也能够把图像保存到文件中。 那很奇怪,使用v4l2-ctl为什么不行?而且我自己写了一个通过v4l2的取流的程序,读取的buffer为空。 |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
2136 浏览 0 评论
956 浏览 0 评论
1413 浏览 1 评论
【幸狐Omni3576边缘计算套件试用体验】自行转换大模型失败,搞一个语音小智玩玩吧.
503 浏览 1 评论
【幸狐Omni3576边缘计算套件试用体验】使用rkllm运行DeepSeek的服务模式体验
968 浏览 0 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-4-9 20:22 , Processed in 0.476107 second(s), Total 43, Slave 38 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191