docker-nginx-rtmp
docker-nginx-rtmp copied to clipboard
UDP stream
Hello
do you know how I can output / broadcast a video stream in udp://@IPADRESS:PORT with nginx ?
Thanks
Seems like more of a task for ffmpeg.
You can modify the nginx configuration in the docker image and add it via ffmpeg. Its starts on line 17: https://github.com/alfg/docker-nginx-rtmp/blob/5331db562489a30c3768bcc47f03506a8316ae46/nginx.conf#L17
You can download the nginx configuration somewhere on your host and ship it in the Docker container. That could look like this:
docker run -it \
--restart unless-stopped \
--name livestream \
-p 1935:1935 -p 80:80 -p 443:443 \
--mount type=bind,source="/path/to/your/nginx.conf",target="/etc/nginx/nginx.conf.template" \
alfg/nginx-rtmp
Thanks @rmens!
@Korben00, can you try the suggestion above?