support filtering interface and source IP in UDP sources (#4178) (#4464)

This commit is contained in:
Alessandro Ros
2025-04-28 22:22:55 +02:00
committed by GitHub
parent a348007607
commit a0f5315549
4 changed files with 167 additions and 57 deletions

View File

@@ -895,7 +895,23 @@ paths:
The resulting stream is available in path `/mypath`.
Known clients that can publish with WebRTC and WHIP are [FFmpeg](#ffmpeg) and [GStreamer](#gstreamer).
If the listening IP is a multicast IP, _MediaMTX_ listens for incoming multicast packets on all network interfaces. It is possible to listen on a single interface only by using the `interface` parameter:
```yml
paths:
mypath:
source: udp://238.0.0.1:1234?interface=eth0
```
It is possible to restrict who can send packets by using the `source` parameter:
```yml
paths:
mypath:
source: udp://0.0.0.0:1234?source=192.168.3.5
```
Known clients that can publish with UDP/MPEG-TS are [FFmpeg](#ffmpeg) and [GStreamer](#gstreamer).
## Read from the server