fotografia:camaras:rtmp_proxy
This is an old revision of the document!
Servidor de RTMP con nginx
Fichero nginx.conf
worker_processes auto;
events {
worker_connections 1024;
}
rtmp {
server {
listen 1935; # Puerto para RTMP
chunk_size 4096;
application live {
live on;
record off;
}
}
}
http {
sendfile off;
tcp_nopush on;
directio 512;
default_type application/octet-stream;
server {
listen 8080;
location / {
return 200 'RTMP server running\n';
}
}
}
Ejecutamos docker
docker run -d \
-p 1935:1935 \
-p 8080:8080 \
-v ~/nginx-rtmp/nginx.conf:/etc/nginx/nginx.conf \
--name rtmp-server \
alfg/nginx-rtmp
Configurar proxy RTMP a proxy RTSP
Levanto un servidor de RTMP y lo paso a RTSP
ffmpeg -i rtmp://<ip_del_servidor>:<puerto>/<stream_key> -f rtsp rtsp://localhost:8554/mystream
fotografia/camaras/rtmp_proxy.1730802413.txt.gz · Last modified: by jose
