Back to Mediamtx

Forward

docs/2-features/11-forward.md

1.18.1286 B
Original Source

Forward

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