#Raspbery pi cam 3 wide
4 messages · Page 1 of 1 (latest)
Fix your tags #readme
Have a look at: https://github.com/ayufan/camera-streamer/blob/master/docs/configure.md#resolution
[[Crowsnest]] sets --camera-width and --camera-height according to the resolution specified inside your crowsnest.conf.
So if you set it to 1280x720, [[Crowsnest]] uses something like custom_flags: --camera-width=1280 --camera-height=720 internally.
To get the correct setup, you have to follow https://github.com/ayufan/camera-streamer/blob/master/docs/configure.md#resolution to find the correct fitting --camera-width and --camera-height and set those as the resolution. Then set custom_flags: --camera-video.height=720 to scale the stream down to 720p for example.
An example:
I run libcamera-hello --list-cameras and get following output:
pi@mainsail:~ $ libcamera-hello --list-cameras
Available cameras
-----------------
0 : imx708 [4608x2592] (/base/soc/i2c0mux/i2c@1/imx708@1a)
Modes: 'SRGGB10_CSI2P' : 1536x864 [30.00 fps - (0, 0)/0x0 crop]
2304x1296 [30.00 fps - (0, 0)/0x0 crop]
4608x2592 [30.00 fps - (0, 0)/0x0 crop]
I now want a 1920x1080 [[WebRTC]] stream, so I have to set following parameters inside my crowsnest.conf:
resolution: 2304x1296
custom_flags: --camera-video.height=1080
For 1208x720 it would be:
resolution: 2304x1296
custom_flags: --camera-video.height=720
If I now want to change my [[MJPG]] stream to a lower resolution too, I would set following:
resolution: 2304x1296
custom_flags: --camera-video.height=720 --camera-stream.height=480
Important Notes:
- The pi only supports encoding up to
1920x1920. Settingcamera-video.heighthigher than 1080 won't do anything --camera-snapshot.height=1080is set as an invisible default value
Thanks that worked 🙂