TareqAlqutami / rtmp-hls-server

a docker file to create a streaming server that supports RTMP, HLS and DASH content based on nginx and nginx-rtmp-module.
MIT License
407 stars 194 forks source link

High delay? #25

Open Matt1azz opened 3 years ago

Matt1azz commented 3 years ago

Just started testing around with it and i seem to have around 60 second or more delay. Is there anyway to lower this?

TareqAlqutami commented 3 years ago

Hello @Mattajaz, The delay is usually less than 10s. Testing locally, I get 1-2s delay for RTMP. Can you share info about your setup

Matt1azz commented 3 years ago

Im running this on my Unraid server. just installed via Apps. And running with 2x E5506 and 72gb ram. on 4x 6tb hdd

TareqAlqutami commented 3 years ago

Sorry, It is hard to tell what is wrong with this info. can you provide info about the rtmp configuration.

dio99 commented 3 years ago

hellu same for me just tested this setup and is nice :) but i get delay and i also wonder how i should change if i want to pull from rtsp ip cam directly i tested to add it but i dont get that to work the players dont play the stream then. exec_pull /usr/localt/bin/ffmpeg -i rtsp://192.168.1.207:554/media/video1 -vcodec copy -acodec copy -f flv rtmp://localhost:1935/live/$name;