You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`-l`, `--lensposition`| Set focal distance. 0 for infinite focus, 0.5 for approximate 50cm. Only used with Autofocus manual. |`0.0`|
51
52
|`-s`, `--autofocusspeed`| Autofocus speed. Supported values: `normal`, `fast`. Only used with Autofocus continuous |`normal`|
52
-
|`-ud`, `--upsidedown`| Rotate the image by 180° (see below) ||
53
-
|`-fh`, `--flip_horizontal`| Mirror the image horizontally (see below) ||
54
-
|`-fv`, `--flip_vertical`| Mirror the image vertically (see below) ||
55
-
|`-or`, `--orientation_exif`| Set the image orientation using an EXIF header (see below) ||
53
+
|`-ud`, `--upsidedown`| Rotate the image by 180° (see [below](#image-orientation))||
54
+
|`-fh`, `--flip_horizontal`| Mirror the image horizontally (see [below](#image-orientation))||
55
+
|`-fv`, `--flip_vertical`| Mirror the image vertically (see [below](#image-orientation))||
56
+
|`-or`, `--orientation_exif`| Set the image orientation using an EXIF header (see [below](#image-orientation))||
56
57
|`-c`, `--controls`| Define camera controls to start spyglass with. Can be used multiple times. This argument expects the format \<control\>=\<value\>. ||
57
-
|`--list-controls`| List all available libcamera controls onto the console. Those can be used with `--controls`||
58
58
|`-tf`, `--tuning_filter`| Set a tuning filter file name. ||
59
59
|`-tfd`, `--tuning_filter_dir`| Set the directory to look for tuning filters. ||
60
60
|`-n`, `--camera_num`| Camera number to be used. All cameras with their number can be shown with `libcamera-hello`. |`0`|
61
+
|`--disable_webrtc`| Disables WebRTC encoding (recommended on Pi5). ||
62
+
|`--list-controls`| List all available libcamera controls onto the console. Those can be used with `--controls`||
61
63
62
64
Starting the server without any argument is the same as
63
65
@@ -123,6 +125,14 @@ If you want to use Spyglass as a webcam source for [Mainsail]() add a webcam wit
123
125
- URL Snapshot: `/webcam/snapshot`
124
126
- Service: `V4L-MJPEG`
125
127
128
+
Alternatively you can use WebRTC. This will take less network bandwidth and might help to fix low fps:
129
+
130
+
- URL Stream: `/webcam/webrtc`
131
+
- URL Snapshot: `/webcam/snapshot`
132
+
- Service: `WebRTC (MediaMTX)`
133
+
134
+
WebRTC needs [aiortc](https://github.com/aiortc/aiortc) installed. This gets automatically installed with `make install` for further instructions, please see the [install](#install) chapter below.
135
+
126
136
## Install as application
127
137
128
138
If you want to install Spyglass globally on your machine you can use `python -m pip install .` to do so.
0 commit comments