Skip to content

Commit 598dd6b

Browse files
authored
service: change examples to avoid using deprecated argument syntax (#127)
* Update camera-streamer-arducam-64MP.service deprecated argument syntax * Update camera-streamer-arducam-16MP.service deprecated argument syntax * Update camera-streamer-generic-usb-cam.service deprecated argument syntax * Update camera-streamer-raspi-usb-cam.service deprecated argument syntax * Update camera-streamer-raspi-v2-8MP.service deprecated argument syntax * Update camera-streamer-raspi-v3-12MP.service deprecated argument syntax
1 parent 3d2085c commit 598dd6b

6 files changed

+63
-63
lines changed

service/camera-streamer-arducam-16MP.service

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,27 @@ ConditionPathExists=/sys/bus/i2c/drivers/imx519/10-001a/video4linux
55

66
[Service]
77
ExecStart=/usr/local/bin/camera-streamer \
8-
-camera-path=/base/soc/i2c0mux/i2c@1/imx519@1a \
9-
-camera-type=libcamera \
10-
-camera-format=YUYV \
11-
-camera-width=2328 -camera-height=1748 \
12-
-camera-options=rotation=90 \
13-
-camera-fps=15 \
8+
--camera-path=/base/soc/i2c0mux/i2c@1/imx519@1a \
9+
--camera-type=libcamera \
10+
--camera-format=YUYV \
11+
--camera-width=2328 --camera-height=1748 \
12+
--camera-options=rotation=90 \
13+
--camera-fps=15 \
1414
; use two memory buffers to optimise usage
15-
-camera-nbufs=2 \
15+
--camera-nbufs=2 \
1616
; the snapshot is 1438x1080
17-
-camera-snapshot.height=1080 \
17+
--camera-snapshot.height=1080 \
1818
; the video/webrtc is 958x720
19-
-camera-video.height=720 \
19+
--camera-video.height=720 \
2020
; the stream is 639x480
21-
-camera-stream.height=480 \
21+
--camera-stream.height=480 \
2222
; bump brightness slightly
23-
-camera-options=brightness=0.1 \
23+
--camera-options=brightness=0.1 \
2424
; disable auto-focus
25-
-camera-auto_focus=1 \
25+
--camera-auto_focus=1 \
2626
--http-listen=0.0.0.0 \
2727
--http-port=8080 \
28-
-rtsp-port
28+
--rtsp-port
2929

3030
DynamicUser=yes
3131
SupplementaryGroups=video i2c

service/camera-streamer-arducam-64MP.service

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,26 @@ ConditionPathExists=/sys/bus/i2c/drivers/arducam_64mp/10-001a/video4linux
88
ExecStartPre=-/usr/bin/v4l2-ctl -d /dev/v4l-subdev1 -c focus_absolute=2200
99

1010
ExecStart=/usr/local/bin/camera-streamer \
11-
-camera-path=/base/soc/i2c0mux/i2c@1/arducam_64mp@1a \
12-
-camera-type=libcamera \
13-
-camera-format=YUYV \
14-
-camera-width=2328 -camera-height=1748 \
15-
-camera-fps=30 \
11+
--camera-path=/base/soc/i2c0mux/i2c@1/arducam_64mp@1a \
12+
--camera-type=libcamera \
13+
--camera-format=YUYV \
14+
--camera-width=2328 --camera-height=1748 \
15+
--camera-fps=30 \
1616
; use two memory buffers to optimise usage
17-
-camera-nbufs=2 \
17+
--camera-nbufs=2 \
1818
; the snapshot is 1438x1080
19-
-camera-snapshot.height=1080 \
19+
--camera-snapshot.height=1080 \
2020
; the video/webrtc is 958x720
21-
-camera-video.height=720 \
21+
--camera-video.height=720 \
2222
; the stream is 639x480
23-
-camera-stream.height=480 \
23+
--camera-stream.height=480 \
2424
; bump brightness slightly
25-
-camera-options=brightness=0.1 \
25+
--camera-options=brightness=0.1 \
2626
; disable auto-focus
27-
-camera-auto_focus=0 \
27+
--camera-auto_focus=0 \
2828
--http-listen=0.0.0.0 \
2929
--http-port=8080 \
30-
-rtsp-port
30+
--rtsp-port
3131

3232
DynamicUser=yes
3333
SupplementaryGroups=video i2c

service/camera-streamer-generic-usb-cam.service

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ ConditionPathExistsGlob=/dev/v4l/by-id/usb-*-video-index0
55

66
[Service]
77
ExecStart=/usr/local/bin/camera-streamer \
8-
-camera-path=/dev/video0 \
9-
-camera-format=JPEG \
10-
-camera-width=1920 -camera-height=1080 \
11-
-camera-fps=30 \
8+
--camera-path=/dev/video0 \
9+
--camera-format=JPEG \
10+
--camera-width=1920 --camera-height=1080 \
11+
--camera-fps=30 \
1212
; use two memory buffers to optimise usage
13-
-camera-nbufs=3 \
13+
--camera-nbufs=3 \
1414
--http-listen=0.0.0.0 \
1515
--http-port=8080 \
1616
; disable video streaming (WebRTC, RTSP, H264)
1717
; on non-supported platforms
18-
-camera-video.disabled
18+
--camera-video.disabled
1919

2020
DynamicUser=yes
2121
SupplementaryGroups=video i2c

service/camera-streamer-raspi-usb-cam.service

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ ConditionPathExistsGlob=/dev/v4l/by-id/usb-*-video-index0
55

66
[Service]
77
ExecStart=/usr/local/bin/camera-streamer \
8-
-camera-path=/dev/video0 \
9-
-camera-format=JPEG \
10-
-camera-width=1920 -camera-height=1080 \
11-
-camera-fps=30 \
8+
--camera-path=/dev/video0 \
9+
--camera-format=JPEG \
10+
--camera-width=1920 --camera-height=1080 \
11+
--camera-fps=30 \
1212
; use two memory buffers to optimise usage
13-
-camera-nbufs=3 \
13+
--camera-nbufs=3 \
1414
; the high-res is 1920x1080
15-
-camera-snapshot.height=1080 \
15+
--camera-snapshot.height=1080 \
1616
; the video/webrtc is 1280x720
17-
-camera-video.height=720 \
17+
--camera-video.height=720 \
1818
; the stream is 853x480
19-
-camera-stream.height=480 \
19+
--camera-stream.height=480 \
2020
--http-listen=0.0.0.0 \
2121
--http-port=8080 \
22-
-rtsp-port
22+
--rtsp-port
2323

2424
DynamicUser=yes
2525
SupplementaryGroups=video i2c

service/camera-streamer-raspi-v2-8MP.service

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@ ConditionPathExists=/sys/bus/i2c/drivers/imx219/10-0010/video4linux
99

1010
[Service]
1111
ExecStart=/usr/local/bin/camera-streamer \
12-
-camera-path=/base/soc/i2c0mux/i2c@1/imx219@10 \
13-
-camera-type=libcamera \
14-
-camera-format=YUYV \
15-
-camera-width=3280 -camera-height=2464 \
16-
-camera-fps=30 \
12+
--camera-path=/base/soc/i2c0mux/i2c@1/imx219@10 \
13+
--camera-type=libcamera \
14+
--camera-format=YUYV \
15+
--camera-width=3280 --camera-height=2464 \
16+
--camera-fps=30 \
1717
; use two memory buffers to optimise usage
18-
-camera-nbufs=2 \
18+
--camera-nbufs=2 \
1919
; the snapshot is 1438x1080
20-
-camera-snapshot.height=1080 \
20+
--camera-snapshot.height=1080 \
2121
; the video/webrtc is 958x720
22-
-camera-video.height=720 \
22+
--camera-video.height=720 \
2323
; the stream is 639x480
24-
-camera-stream.height=480 \
24+
--camera-stream.height=480 \
2525
; bump brightness slightly
26-
-camera-options=brightness=0.1 \
26+
--camera-options=brightness=0.1 \
2727
--http-listen=0.0.0.0 \
2828
--http-port=8080 \
29-
-rtsp-port
29+
--rtsp-port
3030

3131
DynamicUser=yes
3232
SupplementaryGroups=video i2c

service/camera-streamer-raspi-v3-12MP.service

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ ConditionPathExists=/sys/bus/i2c/drivers/imx708/10-001a/video4linux
99

1010
[Service]
1111
ExecStart=/usr/local/bin/camera-streamer \
12-
-camera-path=/base/soc/i2c0mux/i2c@1/imx708@1a \
13-
-camera-type=libcamera \
14-
-camera-format=YUYV \
15-
-camera-width=2304 -camera-height=1296 \
16-
-camera-fps=30 \
12+
--camera-path=/base/soc/i2c0mux/i2c@1/imx708@1a \
13+
--camera-type=libcamera \
14+
--camera-format=YUYV \
15+
--camera-width=2304 --camera-height=1296 \
16+
--camera-fps=30 \
1717
; use two memory buffers to optimise usage
18-
-camera-nbufs=2 \
18+
--camera-nbufs=2 \
1919
; the snapshot is 1920x1080
20-
-camera-snapshot.height=1080 \
20+
--camera-snapshot.height=1080 \
2121
; the video/webrtc is 1280x720
22-
-camera-video.height=720 \
22+
--camera-video.height=720 \
2323
; the stream is 853x480
24-
-camera-stream.height=480 \
24+
--camera-stream.height=480 \
2525
; enable continuous autofocus
26-
-camera-options=AfMode=2 \
27-
-camera-options=AfRange=2 \
26+
--camera-options=AfMode=2 \
27+
--camera-options=AfRange=2 \
2828
--http-listen=0.0.0.0 \
2929
--http-port=8080 \
30-
-rtsp-port
30+
--rtsp-port
3131

3232
DynamicUser=yes
3333
SupplementaryGroups=video i2c

0 commit comments

Comments
 (0)