Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service: Add 5MP noir arducam sensor configuration #108

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

0xB0D
Copy link

@0xB0D 0xB0D commented Oct 16, 2023

Great application.

I'm using the following config for the standard noir ov5647 as a baby monitor.

  • Auto exposure enable
  • Auto exposure mode long
  • Auto white balance enable
  • Auto white balance Incandescent

This gives me a pretty good picture with just one 860 nm IR led in otherwise dark conditions.

I used a cheaper clone of the arducam
https://www.arducam.com/product-category/cameras-for-raspberrypi/raspberry-pi-camera-raspistill-raspvivid/5mp-ov5467/

https://www.amazon.de/dp/B071718FDK/ref=pe_27091401_487024491_TE_item
https://www.cytron.io/p-3w-infrared-led-for-rpi-noir-camera-module

@stefan-sherwood
Copy link

I created a nearly identical file for the Raspberry Pi official camera v1.2

When I enabled it, I got a series of warnings:

Oct 26 13:12:11 rpi systemd[1]: Started camera-streamer-raspi-v1-5MP.service - camera-streamer web camera for Pi Camera v1.2 5MP on Raspberry PI.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-camera-path=/base/soc/i2c0mux/i2c@1/ov5647@10' is deprecated change to '--camera-path=/base/soc/i2c0mux/i2c@1/ov5647@10'.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-camera-type=libcamera' is deprecated change to '--camera-type=libcamera'.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-camera-format=YUYV' is deprecated change to '--camera-format=YUYV'.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-camera-width=2592' is deprecated change to '--camera-width=2592'.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-camera-height=1944' is deprecated change to '--camera-height=1944'.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-camera-fps=30' is deprecated change to '--camera-fps=30'.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-camera-nbufs=2' is deprecated change to '--camera-nbufs=2'.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-camera-snapshot.height=1080' is deprecated change to '--camera-snapshot.height=1080'.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-camera-video.height=972' is deprecated change to '--camera-video.height=972'.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-camera-stream.height=480' is deprecated change to '--camera-stream.height=480'.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-camera-options=brightness=0.1' is deprecated change to '--camera-options=brightness=0.1'.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-rtsp-port' is deprecated change to '--rtsp-port'.

The fix is to replace all of the single hyphen options with double, e.g.

[Service]
ExecStart=/usr/bin/camera-streamer \
  --camera-path=/base/soc/i2c0mux/i2c@1/ov5647@36 \
  --camera-type=libcamera \
  --camera-format=YUYV \
  --camera-width=2592 -camera-height=1944 \
  --camera-fps=30 \
  ; use two memory buffers to optimise usage
  --camera-nbufs=2 \
  ; the snapshot is 1920x1080
  --camera-snapshot.height=1080 \
  ; the video/webrtc is 1296x972
  --camera-video.height=972 \
  ; the stream is 640x480
  --camera-stream.height=480 \
  ; bump brightness slightly
  --camera-options=brightness=0.1 \
  --http-listen=0.0.0.0 \
  --http-port=8080 \
  --rtsp-port

Note that I use a lower stream resolution so this shouldn't be copied verbatim.

@0xB0D
Copy link
Author

0xB0D commented Nov 30, 2023

I created a nearly identical file for the Raspberry Pi official camera v1.2

When I enabled it, I got a series of warnings:

Oct 26 13:12:11 rpi systemd[1]: Started camera-streamer-raspi-v1-5MP.service - camera-streamer web camera for Pi Camera v1.2 5MP on Raspberry PI.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-camera-path=/base/soc/i2c0mux/i2c@1/ov5647@10' is deprecated change to '--camera-path=/base/soc/i2c0mux/i2c@1/ov5647@10'.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-camera-type=libcamera' is deprecated change to '--camera-type=libcamera'.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-camera-format=YUYV' is deprecated change to '--camera-format=YUYV'.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-camera-width=2592' is deprecated change to '--camera-width=2592'.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-camera-height=1944' is deprecated change to '--camera-height=1944'.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-camera-fps=30' is deprecated change to '--camera-fps=30'.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-camera-nbufs=2' is deprecated change to '--camera-nbufs=2'.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-camera-snapshot.height=1080' is deprecated change to '--camera-snapshot.height=1080'.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-camera-video.height=972' is deprecated change to '--camera-video.height=972'.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-camera-stream.height=480' is deprecated change to '--camera-stream.height=480'.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-camera-options=brightness=0.1' is deprecated change to '--camera-options=brightness=0.1'.
Oct 26 13:12:11 rpi camera-streamer[376470]: util/opts/opts.c: ?: Usage of '-rtsp-port' is deprecated change to '--rtsp-port'.

The fix is to replace all of the single hyphen options with double, e.g.

[Service]
ExecStart=/usr/bin/camera-streamer \
  --camera-path=/base/soc/i2c0mux/i2c@1/ov5647@36 \
  --camera-type=libcamera \
  --camera-format=YUYV \
  --camera-width=2592 -camera-height=1944 \
  --camera-fps=30 \
  ; use two memory buffers to optimise usage
  --camera-nbufs=2 \
  ; the snapshot is 1920x1080
  --camera-snapshot.height=1080 \
  ; the video/webrtc is 1296x972
  --camera-video.height=972 \
  ; the stream is 640x480
  --camera-stream.height=480 \
  ; bump brightness slightly
  --camera-options=brightness=0.1 \
  --http-listen=0.0.0.0 \
  --http-port=8080 \
  --rtsp-port

Note that I use a lower stream resolution so this shouldn't be copied verbatim.

I created a nearly identical file for the Raspberry Pi official camera v1.2

When I enabled it, I got a series of warnings:

Ah nice.

I upgraded to the latest version and got this error. Turns out you found the solution.

Let me reping this thread with your fix.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@nexus-software.ie>
@2114L3
Copy link

2114L3 commented Dec 26, 2023

argument options should be all double dash '--' as single dash is deprecated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants