docker-nginx-rtmp icon indicating copy to clipboard operation
docker-nginx-rtmp copied to clipboard

UDP stream

Open Korben00 opened this issue 3 years ago • 2 comments

Hello

do you know how I can output / broadcast a video stream in udp://@IPADRESS:PORT with nginx ?

Thanks

Korben00 avatar Feb 23 '22 15:02 Korben00

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

rmens avatar Feb 23 '22 15:02 rmens

Thanks @rmens!

@Korben00, can you try the suggestion above?

alfg avatar Feb 25 '22 04:02 alfg