Skip to content

Commit a3cb81e

Browse files
committed
More changes
1 parent 338a4a9 commit a3cb81e

File tree

1 file changed

+19
-10
lines changed
  • content/wiki/service/camera-control

1 file changed

+19
-10
lines changed

content/wiki/service/camera-control/index.md

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ contributors: ["caitken-com", "crxporter", "itsj4y", "Shaquu"]
1717

1818
## Notes on Cameras
1919

20-
Cameras require an extra install of FFmpeg for video processing. If you are on a system with `apt` (Raspberry Pi, Ubuntu, Debian, etc.) you can use the FFmpeg install script which is maintained by a couple of our users and designed for NRCHKB. This script is documented [here](https://github.com/marcus-j-davies/nrchkb-ffmpeg-build) and can be run at any time using this one-line terminal command, then following the prompts:
20+
Cameras require an extra install of FFmpeg for video processing.
21+
If you are on a system with `apt` (Raspberry Pi, Ubuntu, Debian, etc.) you can use the FFmpeg install script, which is maintained by a couple of our users and designed for NRCHKB.
22+
This script is documented [here](https://github.com/marcus-j-davies/nrchkb-ffmpeg-build) and can be run at any time using this one-line terminal command, then after the prompts:
2123

2224
```bash
2325
bash <(curl -sL https://raw.githubusercontent.com/marcus-j-davies/nrchkb-ffmpeg-build/main/nrchkb-ffmpeg-build.sh)
@@ -27,11 +29,12 @@ If you are running our [Docker image](https://github.com/NRCHKB/node-red-contrib
2729

2830
For those writing examples, please include how you have installed FFmpeg (including any special build flags)!
2931

30-
It is recommended to use "Accessory" as the Host Type for cameras. The camera should be the Parent Service, with "Motion" and "Doorbell" (if used) as Linked Services.
32+
It is recommended to use "Accessory" as the Host Type for cameras.
33+
The camera should be the Parent Service, with "Motion" and "Doorbell" (if used) as Linked Services.
3134

3235
### How to debug issues
3336

34-
If you have problems with FFmpeg (if you think the camera is set up properly but it "does nothing" then you might have FFmpeg problems) then please follow these steps to properly debug your FFmpeg setup.
37+
If you have problems with FFmpeg (if you think the camera is set up properly, but it "does nothing" then you might have FFmpeg problems) then please follow these steps to properly debug your FFmpeg setup.
3538

3639
- Configure Camera Control node in Node-RED
3740
- Run Node-RED with `DEBUG=NRCHKB*,CameraSource*` and tick "debug mode" in Camera Control
@@ -46,7 +49,8 @@ If you have problems with FFmpeg (if you think the camera is set up properly but
4649

4750
Example written by CRXPorter. Date 21 November 2020, updated February 2022. Plugin version 1.4.3, Node-RED version 2.1.5.
4851

49-
Hardware:\
52+
Hardware:
53+
5054
-Raspberry Pi Zero W\
5155
-Raspberry Pi Camera Module V2\
5256

@@ -75,13 +79,17 @@ Step **five**: import this flow. It should be a single homekit node
7579
Step **six**: add it to your Home.app and enjoy!
7680

7781
Notes:\
78-
Additional tuning could be done to optimize resolution and speed. The new Raspberry Pi High Quality camera should work with the same setup. This setup should work on a Pi 3 or 4 with very little modification. Adding a microphone, motion detector, doorbell button, or other things should be relatively simple. Visit us [on discord](https://discord.gg/uvYac5u) if you'd like to discuss!
82+
Additional tuning could be done to optimize resolution and speed.
83+
The new Raspberry Pi High Quality camera should work with the same setup.
84+
This setup should work on a Pi 3 or 4 with very little modification.
85+
Adding a microphone, motion detector, doorbell button, or other things should be relatively simple.
86+
Visit us [on discord](https://discord.gg/uvYac5u) if you'd like to discuss!
7987

8088
### * Raspberry Pi Zero W running MotionEyeOS
8189

8290
This setup adds motion detection to the Pi Zero W camera. Note that the pi zero does not appear to have enough power to run MotionEye alongside Node-RED, so it is recommended to run MotionEyeOS alone on a pi with Node-RED on another server (bigger pi, NAS, etc.).
8391

84-
1. Head over to [MotionEyeOS](https://github.com/ccrisan/motioneyeos) releases and download the one for "raspberrypi", flash it to your SD card as you normally would
92+
1. Head over to [MotionEyeOS](https://github.com/ccrisan/motioneyeos) releases and download the one for "raspberrypi", flash it to your SD card as you normally would.
8593
2. Boot and set up MotionEyeOS as you like it (motion detector settings, stream quality, etc.) using their instructions. The one important part is to send your motion alerts to a webhook, the address used in the code below is `http://<node-red-pi-address>:1880/MotionEye`
8694
3. To import the flow below into your Node-RED machine, you will need to change the IP addresses in the camera node, so they point to your pi zero.
8795

@@ -98,15 +106,16 @@ Cameras tested:
98106
- UniFi G3 Bullet
99107
- UniFi G4 Doorbell
100108

101-
Motion detection and doorbell presses are available for advanced users, ask @crxporter on discord. A new UniFi node is in active development, check [here](https://github.com/NRCHKB/node-red-contrib-unifi-os) for that project.
109+
Motion detection and doorbell presses are available for advanced users, ask @crxporter on discord.
110+
A new UniFi node is in active development, check [here](https://github.com/NRCHKB/node-red-contrib-unifi-os) for that project.
102111

103-
FFmpeg was installed on a pi 4. Node-RED was installed with the official Node-RED on pi install script.
112+
FFmpeg was installed on a pi 4. Node-RED was installed with the official Node-RED on a PI install script.
104113

105114
#### FFmpeg Install
106115

107116
Just run the `nrchkb-ffmpeg-build` script found here:
108117

109-
```
118+
```bash
110119
bash <(curl -sL https://raw.githubusercontent.com/marcus-j-davies/nrchkb-ffmpeg-build/main/nrchkb-ffmpeg-build.sh)
111120
```
112121

@@ -129,7 +138,7 @@ Audio: yes
129138
Packet Sixe: 564
130139
Map Video: 0:v
131140
Map Audio: 0:a
132-
Video Filter:
141+
Video Filter:
133142
Additional Command Line: -preset slow -profile:v high -level 4.2 -x264-params intra-refresh=1:bframes=0
134143
```
135144

0 commit comments

Comments
 (0)