From 7a584dc16d73dfe6e5d7bbf005580714463c69ee Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Wed, 24 Aug 2022 17:51:33 +0200 Subject: [PATCH] Add disclaimer about auto_focus, vflip and hflip --- .vscode/settings.json | 6 +++++- cmd/camera-streamer.c | 6 +++--- service/camera-streamer-arducam-16MP.service | 5 +++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 7435ad5..0e9745b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -74,6 +74,10 @@ "v4l2.h": "c", "stdlib.h": "c", "stdint.h": "c", - "videodev2.h": "c" + "videodev2.h": "c", + "opts.h": "c", + "ioctl.h": "c", + "syscall.h": "c", + "unistd.h": "c" } } diff --git a/cmd/camera-streamer.c b/cmd/camera-streamer.c index ac4ef80..45962b8 100644 --- a/cmd/camera-streamer.c +++ b/cmd/camera-streamer.c @@ -168,9 +168,9 @@ option_t all_options[] = { DEFINE_OPTION(camera, low_res_factor, float, "Set the desired low resolution output scale factor."), DEFINE_OPTION_PTR(camera, options, list, "Set the camera options. List all available options with `-camera-list_options`."), DEFINE_OPTION(camera, auto_reconnect, uint, "Set the camera auto-reconnect delay in seconds."), - DEFINE_OPTION_DEFAULT(camera, auto_focus, bool, "1", "Do auto-focus on start-up."), - DEFINE_OPTION_DEFAULT(camera, vflip, bool, "1", "Do vertical image flip."), - DEFINE_OPTION_DEFAULT(camera, hflip, bool, "1", "Do horizontal image flip."), + DEFINE_OPTION_DEFAULT(camera, auto_focus, bool, "1", "Do auto-focus on start-up (does not work with all camera)."), + DEFINE_OPTION_DEFAULT(camera, vflip, bool, "1", "Do vertical image flip (does not work with all camera)."), + DEFINE_OPTION_DEFAULT(camera, hflip, bool, "1", "Do horizontal image flip (does not work with all camera)."), DEFINE_OPTION_PTR(camera, isp.options, list, "Set the ISP processing options. List all available options with `-camera-list_options`."), DEFINE_OPTION_PTR(camera, jpeg.options, list, "Set the JPEG compression options. List all available options with `-camera-list_options`."), diff --git a/service/camera-streamer-arducam-16MP.service b/service/camera-streamer-arducam-16MP.service index eb6dcc3..8595feb 100644 --- a/service/camera-streamer-arducam-16MP.service +++ b/service/camera-streamer-arducam-16MP.service @@ -9,7 +9,8 @@ ExecStart=/usr/local/bin/camera-streamer \ -camera-type=libcamera \ -camera-format=YUYV \ -camera-width=2328 -camera-height=1748 \ - -camera-fps=30 \ + -camera-options=rotation=90 \ + -camera-fps=15 \ ; use two memory buffers to optimise usage -camera-nbufs=2 \ ; the high-res is 1552x1165 @@ -19,7 +20,7 @@ ExecStart=/usr/local/bin/camera-streamer \ ; bump brightness slightly -camera-options=brightness=0.1 \ ; disable auto-focus - -camera-auto_focus=0 + -camera-auto_focus=1 DynamicUser=yes SupplementaryGroups=video i2c