mirror of
https://github.com/bluenviron/mediamtx.git
synced 2026-01-19 18:09:49 -08:00
12 lines
312 B
Markdown
12 lines
312 B
Markdown
# Forward streams to other servers
|
|
|
|
To forward incoming streams to another server, use _FFmpeg_ inside the `runOnReady` parameter:
|
|
|
|
```yml
|
|
pathDefaults:
|
|
runOnReady: >
|
|
ffmpeg -i rtsp://localhost:$RTSP_PORT/$MTX_PATH
|
|
-c copy
|
|
-f rtsp rtsp://other-server:8554/another-path
|
|
runOnReadyRestart: yes
|
|
```
|