Skip to content

Commit 199c226

Browse files
committed
Add snapshot/video height to libcamera service/conf
Makes use of the new -camera-video.height and -camera-snapshot.height
1 parent 0c4564f commit 199c226

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

scripts/files/camera-streamer/camera-streamer-libcamera.service

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ ExecStart=/bin/sh -c "exec /usr/local/bin/camera-streamer \
1515
-camera-path=$(/usr/bin/libcamera-hello --list-cameras | grep -o '/base/soc/[^)]*' | head -n1) \
1616
-camera-format=YUYV \
1717
-camera-width=${WIDTH} -camera-height=${HEIGHT} \
18+
-camera-video.height=${VIDEO_HEIGHT} \
19+
-camera-snapshot.height=${SNAPSHOT_HEIGHT} \
1820
-camera-fps=${FRAMERATE} \
1921
-camera-nbufs=2 \
2022
${OPTIONS}"

scripts/files/camera-streamer/libcamera.conf

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@
55
# camera will be considered the one with 8080.
66
PORT=8080
77

8-
# The resolution to set on the camera. Defaults to 1280x720.
9-
WIDTH=1280
10-
HEIGHT=720
8+
# The resolution to request on the camera sensor. Defaults to 1280x720.
9+
WIDTH=1920
10+
HEIGHT=1080
11+
12+
# The height to use for the video stream. Defaults to 720.
13+
VIDEO_HEIGHT=720
14+
15+
# The height to use for the snapshots. Defaults to 1080.
16+
SNAPSHOT_HEIGHT=1080
1117

1218
# The framerate to set on the camera. Defaults to 15fps.
1319
FRAMERATE=15

0 commit comments

Comments
 (0)