arut / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
13.35k stars 3.51k forks source link

7sec Live steam lag #502

Open Lawng opened 9 years ago

Lawng commented 9 years ago

I am still new to this module. so i left much out of my cofig in fear i would increase lag. I have an always present 6-8 sec lag on my live streams. I have been searching the issue reports and found some hints but everything i have tried has not improved the time. i am open to any ideas.

I realize that i am pushing to other sites so i should not count their added lag. i do my testes by loading the stream directly from my RTMP server with vlc. any help on reducing this lag would be a huge help.

here is my config file.

rtmp {
        server {
                listen 8411;
                chunk_size 1500;

                application live {
                        live on;
                        record off;
                push rtmp://live.nbg.hitbox.tv/push/STREAMKEY;
                push rtmp://Live-dfw.Twitch.TV/app/STREAMKEY;
                }
        }
}
zydronium commented 9 years ago

From my experience this is quite normal and you always have some latency. In my first tests with nginx here at home I had a latency of about 1 second (everything wired). Last week I had to use wireless and it was about 3 seconds or so.

When I had to use twitch previous year it was about 20 seconds.

It allways takes some time from when you see the frame on your broadcast computer to when you see the same frame on the player.

So I wouldn't mind if I was you.

LF-DevJourney commented 7 years ago

There may be some latency with your player. You can use ffplay --fflags nobuffer rtmp://192.168.1.66/myapp/live to see the latency. Refer more here.

selimatmaca commented 7 years ago

31 Tem 2017 05:00 tarihinde "KrisRoofe" notifications@github.com yazdı:

There may be some latency with your player. You can use ffplay --fflags nobuffer rtmp://192.168.1.66/myapp/live to see the latency. Refer more here https://stackoverflow.com/a/45370210/6521116.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/arut/nginx-rtmp-module/issues/502#issuecomment-318949079, or mute the thread https://github.com/notifications/unsubscribe-auth/AXEwRNW-382ZM-0n5dHIEvEWapfDyv7dks5sTTVGgaJpZM4Cy10r .