【新手诚心求助】摄像头:OV5647,500W,CSI可以拍照, 不能录视频。

hetui 25cm2022-11-03972 次点击
描述:4b 官方64 os. desktop.

ls -lrt /dev/video*
crw-rw----+ 1 root video 81, 14 Nov 3 12:40 /dev/video0

vcgencmd get_camera
supported=1 detected=0, libcamera interfaces=1

libcamera-hello : 测试正常。

libcamera-jpeg:拍照正常
libcamera-still :拍照正常

libcamera-vid:报错 死循环。

sudo libcamera-vid -t 3000 -o test.h264
error: XDG_RUNTIME_DIR not set in the environment.
Made X/EGL preview window
[0:36:19.863048046] [1754] INFO Camera camera_manager.cpp:293 libcamera v0.0.1+21-7c855784
[0:36:19.904569339] [1755] INFO RPI raspberrypi.cpp:1414 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media0 and ISP device /dev/media3
[0:36:19.905734859] [1754] INFO Camera camera.cpp:1026 configuring streams: (0) 640x480-YUV420
[0:36:19.906190500] [1755] INFO RPI raspberrypi.cpp:800 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 640x480-SGBRG10_1X10 - Selected unicam format: 640x480-pGAA
[0:36:22.244065365] [1755] WARN V4L2 v4l2_videodevice.cpp:2004 /dev/video0[16:cap]: Dequeue timer of 2206000.00us has expired!
[0:36:22.244160382] [1755] ERROR RPI raspberrypi.cpp:1862 Unicam has timed out!
[0:36:22.244179419] [1755] ERROR RPI raspberrypi.cpp:1863 Please check that your camera sensor connector is attached securely.
[0:36:22.244197992] [1755] ERROR RPI raspberrypi.cpp:1864 Alternatively, try another cable and/or sensor.
ERROR: Device timeout detected, attempting a restart!!!
[0:36:24.558518998] [1755] WARN V4L2 v4l2_videodevice.cpp:2004 /dev/video0[16:cap]: Dequeue timer of 2206000.00us has expired!

求助:detected=0 但是能拍图。 录像就不行了。
收藏 ♥ 感谢
Spoony 小组长 2022-11-07 
感觉是摄像头驱动兼容性的问题
用官方摄像头试试看

或者用 32 位系统,启用 V4L2 驱动
https://shumeipai.nxez.com/2022/05/14/retrieve-v4l2-camera-driver-and-raspistillvid.html
hetui 25cm 2022-11-11  ♥ 1
@Spoony 谢谢,我没有这么做。 我使用了opencv 发现可以进行拍照视频等任何操作, 我不再纠结于libcamera库的问题,

登录注册 后可回复。




› 相关内容关注微信公众号