我目前正在使用这个命令:
libcamera-vid -t 0 --inline --framerate 30 -o - | cvlc stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/stream1}' :demux=h264
尽管传感器的分辨率为 2592 x 1944,但驱动程序似乎仅将其设置为 640 x 480 的分辨率(输出:)
libcamera-vid -t 0 --inline --framerate 30 -o - | cvlc stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/stream1}' :demux=h264
VLC media player 3.0.16 Vetinari (revision 1.0.6-1682-g88158c836)
[014c4010] main interface error: no suitable interface module
[01439b98] main libvlc error: interface "globalhotkeys,none" initialization failed
[014c4010] dummy interface: using the dummy interface module...
Preview window unavailable
[11:10:08.908820944] [11839] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3406-e96d0201
[11:10:08.931110987] [11846] ERROR CameraSensor camera_sensor.cpp:551 'ov5647 10-0036': Camera sensor does not support test pattern modes.
[11:10:08.954015489] [11846] INFO RPI raspberrypi.cpp:1326 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media3 and ISP device /dev/media0
[11:10:08.954716951] [11839] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-YUV420
[11:10:08.955574644] [11846] INFO RPI raspberrypi.cpp:747 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 640x480-SGBRG10_1X10 - Selected unicam format: 640x480-pGAA
[11:10:08.983201335] [11859] INFO IPARPI raspberrypi.cpp:626 Request ctrl: Saturation = 1.000000
[11:10:08.983283728] [11859] INFO IPARPI raspberrypi.cpp:626 Request ctrl: Contrast = 1.000000
[11:10:08.983323397] [11859] INFO IPARPI raspberrypi.cpp:626 Request ctrl: Brightness = 0.000000
[11:10:08.983359065] [11859] INFO IPARPI raspberrypi.cpp:626 Request ctrl: AwbMode = 0
[11:10:08.983392715] [11859] INFO IPARPI raspberrypi.cpp:626 Request ctrl: Sharpness = 1.000000
[11:10:08.983428310] [11859] INFO IPARPI raspberrypi.cpp:626 Request ctrl: ExposureValue = 0.000000
[11:10:08.983463349] [11859] INFO IPARPI raspberrypi.cpp:626 Request ctrl: AeExposureMode = 0
[11:10:08.983494109] [11859] INFO IPARPI raspberrypi.cpp:626 Request ctrl: FrameDurationLimits = [ 33333, 33333 ]
[11:10:08.983530315] [11859] INFO IPARPI raspberrypi.cpp:626 Request ctrl: AeMeteringMode = 0
[11:10:08.983562150] [11859] INFO IPARPI raspberrypi.cpp:626 Request ctrl: NoiseReductionMode = 1
[a2603578] main stream error: unknown query 0x30e in demux_vaControlHelper
视频源看起来一尘不染。另一方面……当我使用命令
libcamera-vid -t 0 --inline --framerate 30 -o - --width 1920 --height 1080 | cvlc stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/stream1}' :demux=h264
我只能看到原始视角的一小部分。我该如何告诉相机使用 1080p30?
答案1
两个月后你也许还会有答案,但这个问题经常会发生。
根据设置的分辨率(以及比例)裁剪相机图片。
尝试 1280x960 您将能看到大部分角度。
其中一个硬件站点上有一张包含视频模式信息的图片。根据分辨率显示带有方框的图片。