Skip to content

Commit b4fb608

Browse files
authored
Clarify docs about rtmp (blakeblackshear#5052)
* Update readme features * Remove RTMP setup from setup guide * Update integration for RTSP * Remove rtmp from faq * Remove RTMP stream from guide * Remove rtmp from install * Remove rtmp from dev config
1 parent ab44a65 commit b4fb608

File tree

7 files changed

+20
-29
lines changed

7 files changed

+20
-29
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ Use of a [Google Coral Accelerator](https://coral.ai/products/) is optional, but
1616
- Communicates over MQTT for easy integration into other systems
1717
- Records video with retention settings based on detected objects
1818
- 24/7 recording
19-
- Re-streaming via RTMP to reduce the number of connections to your camera
19+
- Re-streaming via RTSP to reduce the number of connections to your camera
20+
- WebRTC & MSE support for low-latency live view
2021

2122
## Documentation
2223

docs/docs/development/contributing.md

-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ cameras:
6262
input_args: -re -stream_loop -1 -fflags +genpts
6363
roles:
6464
- detect
65-
- rtmp
6665
detect:
6766
height: 1080
6867
width: 1920

docs/docs/frigate/installation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ services:
119119
size: 1000000000
120120
ports:
121121
- "5000:5000"
122-
- "1935:1935" # RTMP feeds
122+
- "8554:8554" # RTSP feeds
123123
environment:
124124
FRIGATE_RTSP_PASSWORD: "password"
125125
```

docs/docs/guides/camera_setup.md

+2-10
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,14 @@ Larger resolutions **do** improve performance if the objects are very small in t
2323

2424
For the Dahua/Loryta 5442 camera, I use the following settings:
2525

26-
**Main Stream (Recording)**
26+
**Main Stream (Recording & RTSP)**
2727

2828
- Encode Mode: H.264
2929
- Resolution: 2688\*1520
3030
- Frame Rate(FPS): 15
3131
- I Frame Interval: 30
3232

33-
**Sub Stream 1 (RTMP)**
34-
35-
- Enable: Sub Stream 1
36-
- Encode Mode: H.264
37-
- Resolution: 720\*576
38-
- Frame Rate: 10
39-
- I Frame Interval: 10
40-
41-
**Sub Stream 2 (Detection)**
33+
**Sub Stream (Detection)**
4234

4335
- Enable: Sub Stream 2
4436
- Encode Mode: H.264

docs/docs/guides/getting_started.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@ cameras:
6868
- path: rtsp://10.0.10.10:554/rtsp # <----- Update for your camera
6969
roles:
7070
- detect
71-
- rtmp
72-
rtmp:
73-
enabled: False # <-- RTMP should be disabled if your stream is not H264
7471
detect:
7572
width: 1280 # <---- update for your camera's resolution
7673
height: 720 # <---- update for your camera's resolution
@@ -80,7 +77,7 @@ cameras:
8077
8178
At this point you should be able to start Frigate and see the the video feed in the UI.
8279
83-
If you get a green image from the camera, this means ffmpeg was not able to get the video feed from your camera. Check the logs for error messages from ffmpeg. The default ffmpeg arguments are designed to work with H264 RTSP cameras that support TCP connections. If you do not have H264 cameras, make sure you have disabled RTMP. It is possible to enable it, but you must tell ffmpeg to re-encode the video with customized output args.
80+
If you get an error image from the camera, this means ffmpeg was not able to get the video feed from your camera. Check the logs for error messages from ffmpeg. The default ffmpeg arguments are designed to work with H264 RTSP cameras that support TCP connections.
8481
8582
FFmpeg arguments for other types of cameras can be found [here](../configuration/camera_specific.md).
8683
@@ -148,7 +145,6 @@ cameras:
148145
- path: rtsp://10.0.10.10:554/rtsp
149146
roles:
150147
- detect
151-
- rtmp
152148
detect:
153149
width: 1280
154150
height: 720
@@ -173,7 +169,6 @@ cameras:
173169
- path: rtsp://10.0.10.10:554/rtsp
174170
roles:
175171
- detect
176-
- rtmp
177172
- path: rtsp://10.0.10.10:554/high_res_stream # <----- Add high res stream
178173
roles:
179174
- record

docs/docs/integrations/home-assistant.md

+13-9
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Home Assistant > Configuration > Integrations > Frigate > Options
6464

6565
| Option | Description |
6666
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
67-
| RTMP URL Template | A [jinja2](https://jinja.palletsprojects.com/) template that is used to override the standard RTMP stream URL (e.g. for use with reverse proxies). This option is only shown to users who have [advanced mode](https://www.home-assistant.io/blog/2019/07/17/release-96/#advanced-mode) enabled. See [RTMP streams](#streams) below. |
67+
| RTSP URL Template | A [jinja2](https://jinja.palletsprojects.com/) template that is used to override the standard RTMP stream URL (e.g. for use with reverse proxies). This option is only shown to users who have [advanced mode](https://www.home-assistant.io/blog/2019/07/17/release-96/#advanced-mode) enabled. See [RTSP streams](#streams) below. |
6868

6969
## Entities Provided
7070

@@ -124,13 +124,17 @@ https://HA_URL/api/frigate/notifications/<event-id>/clip.mp4
124124

125125
## RTMP stream
126126

127-
In order for the live streams to function they need to be accessible on the RTMP
128-
port (default: `1935`) at `<frigatehost>:1935`. Home Assistant will directly
127+
RTMP is deprecated and it is recommended to switch to use RTSP restreams.
128+
129+
## RTSP stream
130+
131+
In order for the live streams to function they need to be accessible on the RTSP
132+
port (default: `8554`) at `<frigatehost>:8554`. Home Assistant will directly
129133
connect to that streaming port when the live camera is viewed.
130134

131-
#### RTMP URL Template
135+
#### RTSP URL Template
132136

133-
For advanced usecases, this behavior can be changed with the [RTMP URL
137+
For advanced usecases, this behavior can be changed with the [RTSP URL
134138
template](#options) option. When set, this string will override the default stream
135139
address that is derived from the default behavior described above. This option supports
136140
[jinja2 templates](https://jinja.palletsprojects.com/) and has the `camera` dict
@@ -142,24 +146,24 @@ This is potentially useful when Frigate is behind a reverse proxy, and/or when
142146
the default stream port is otherwise not accessible to Home Assistant (e.g.
143147
firewall rules).
144148

145-
###### RTMP URL Template Examples
149+
###### RTSP URL Template Examples
146150

147151
Use a different port number:
148152

149153
```
150-
rtmp://<frigate_host>:2000/live/front_door
154+
rtsp://<frigate_host>:2000/front_door
151155
```
152156

153157
Use the camera name in the stream URL:
154158

155159
```
156-
rtmp://<frigate_host>:2000/live/{{ name }}
160+
rtsp://<frigate_host>:2000/{{ name }}
157161
```
158162

159163
Use the camera name in the stream URL, converting it to lowercase first:
160164

161165
```
162-
rtmp://<frigate_host>:2000/live/{{ name|lower }}
166+
rtsp://<frigate_host>:2000/{{ name|lower }}
163167
```
164168

165169
## Multiple Instance Support

docs/docs/troubleshooting/faqs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A solid green image means that Frigate has not received any frames from ffmpeg.
1313

1414
### How can I get sound or audio in my recordings? {#audio-in-recordings}
1515

16-
By default, Frigate removes audio from recordings to reduce the likelihood of failing for invalid data. If you would like to include audio, you need to override the output args to remove `-an` for where you want to include audio. The recommended audio codec is `aac`. Not all audio codecs are supported by RTMP, so you may need to re-encode your audio with `-c:a aac`. The default ffmpeg args are shown [here](../configuration/index.md/#full-configuration-reference).
16+
By default, Frigate removes audio from recordings to reduce the likelihood of failing for invalid data. If you would like to include audio, you need to override the output args to remove `-an` for where you want to include audio. The recommended audio codec is `aac`. The default ffmpeg args are shown [here](../configuration/index.md/#full-configuration-reference).
1717

1818
:::tip
1919

0 commit comments

Comments
 (0)