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
Copy file name to clipboardExpand all lines: docs/camera_support.md
+26-38Lines changed: 26 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ The extended firmware includes hardware-accelerated camera support.
10
10
- v4l2-mpp: MIPI CSI and USB camera support
11
11
- WebRTC low-latency streaming
12
12
- Hot-plug detection for USB cameras
13
+
- Ability to select different stream types (WebRTC, MJPEG-adaptive, h264 iframe...)
13
14
14
15
## Accessing Cameras
15
16
@@ -29,52 +30,39 @@ Access USB camera at:
29
30
http://<printer-ip>/webcam2/
30
31
```
31
32
32
-
You need to add USB camera in Fluidd. Use the following
33
-
settings for the best performance:
33
+
You need to add USB camera to Fluidd. Use the following settings for the best performance:
34
34
35
35
<imgsrc="images/usb_cam.png"alt="Fluidd USB camera"width="300"/>
36
36
37
-
## Change Internal Camera Stream Type
37
+
Alternatively, you can add USB camera to Moonraker configuration which also makes it available in Fluidd and all other Moonraker clients:
38
+
39
+
1. In web browser go to Fluidd Configuration editor at `http://<printer-ip>/#/configure`
40
+
2. Enter `moonraker` directory and right-click on `03_usb_camera.cfg.disabled` and rename it to `03_usb_camera.cfg`
41
+
5. Restart Moonraker service or printer for changes to take effect.
38
42
39
-
By default the internal camera stream uses WebRTC for low-latency streaming.
40
-
Not all apps/integrations support WebRTC.
41
-
To switch internal camera to MJPEG or h264 stream, simply rename existing preset files using either Fluidd or SSH interface:
43
+
## Change Internal Camera Stream Type
42
44
43
-
<details>
44
-
<summary>Click to expand Fluidd instructions</summary>
45
+
By default the internal "case" camera streams in WebRTC format for low-latency and high-quality video.
46
+
Some apps don't support WebRTC (Mobileraker, Homeassistant...), so you may want to switch the default stream type to MJPEG or h264 instead. Or you can have multiple stream types enabled at the same time and client apps can choose the one that works for them.
47
+
To do that, simply rename the existing `09_user_camera.cfg.disabled` to `09_user_camera.cfg`. You can do that from Fluidd web interface:
45
48
46
49
1. In web browser go to Fluidd Configuration editor at `http://<printer-ip>/#/configure`
47
-
2. Enter `moonraker` directory and right-click on the preset files to rename them
48
-
- Disable WebRTC stream to prevent having multiple cameras in Fluidd:
49
-
- Rename `02_webrtc_internal_camera.cfg` to `02_webrtc_internal_camera.cfg.disabled`
50
-
- Enable mjpg-adaptive stream:
51
-
- Rename `03_mjpg_internal_camera.cfg.disabled` to `03_mjpg_internal_camera.cfg`
52
-
- Enable h264 stream:
53
-
- Rename `04_h264_internal_camera.cfg.disabled` to `04_h264_internal_camera.cfg`
54
-
55
-
</details>
56
-
57
-
<details>
58
-
<summary>Click to expand SSH instructions</summary>
59
-
60
-
```bash
61
-
# Disable WebRTC stream to prevent having multiple cameras in Fluidd
2. Enter `moonraker` directory, right-click on `09_user_camera.cfg.disabled` and rename it to `09_user_camera.cfg`
51
+
That file contains a section which disables default WebRTC stream:
52
+
53
+
```ini
54
+
[webcam case]
55
+
enabled: false
56
+
```
57
+
58
+
If you prefer to keep the WebRTC stream enabled, simply toggle it to `enabled: true` and modify its settings as needed.
59
+
60
+
3. Edit any other webcam sections to enable other stream types and configure their settings.
61
+
Refer to [09_user_camera.cfg.disabled](../overlays/camera-v4l2-mpp/root/home/lava/origin_printer_data/config/moonraker/09_user_camera.cfg.disabled) content for examples.
62
+
4. Save the changes
63
+
5. Restart Moonraker service or printer for changes to take effect.
76
64
77
-
</details>
65
+
Refer to official [Moonraker documentation](https://moonraker.readthedocs.io/en/latest/configuration/#webcam) for more details on available webcam settings.
Copy file name to clipboardExpand all lines: overlays/camera-v4l2-mpp/root/home/lava/origin_printer_data/config/moonraker/02_webrtc_internal_camera.cfg
Copy file name to clipboardExpand all lines: overlays/camera-v4l2-mpp/root/home/lava/origin_printer_data/config/moonraker/03_mjpg_internal_camera.cfg.disabled
Copy file name to clipboardExpand all lines: overlays/camera-v4l2-mpp/root/home/lava/origin_printer_data/config/moonraker/04_h264_internal_camera.cfg.disabled
0 commit comments