Hi everyone.
First of all thanks for the tutorial and helpful replies in this topic, this helped me set up the server. Well, almost.
For some infuriating reason, everything works *perfectly*, but only for a few seconds (it seems like it varies from like 5 seconds to a minute).
So basically nginx starts up normally, I can connect obs to the rtmp no problem. I can then watch the stream from jwplayer or even vlc, or spawn ffmpeg to reencode to twitch, no problem as long as I do it fast enough.
As long as the clients stay opened, they see the stream, it keeps working for as long as I had time to test.
But a client disconnects, or if a new one tries connecting after a seemingly random but short time, they get nothing.
Here is what I get in the logs:
Working:
xxxxx [22/Oct/2014:18:12:36 +0200] PLAY "big" "1080" "" - 568 2716292 "" "WIN 15,0,0,152" (4s)
xxxxx [22/Oct/2014:18:12:46 +0200] PLAY "big" "1080" "" - 623 5302084 "" "WIN 15,0,0,152" (7s)
Not working:
xxxxx [22/Oct/2014:18:13:01 +0200] PLAY "big" "1080" "" - 511 542 "" "WIN 15,0,0,152" (13s)
xxxxx [22/Oct/2014:18:13:16 +0200] PLAY "big" "1080" "" - 511 542 "" "WIN 15,0,0,152" (12s)
xxxxx [22/Oct/2014:18:15:19 +0200] PLAY "big" "1080" "" - 511 436 "" "WIN 15,0,0,152" (12s)
xxxxx [22/Oct/2014:18:16:32 +0200] PLAY "small" "1080" "" - 519 436 "" "WIN 15,0,0,152" (41s)
These lines only appear in the logs if I press stop or reload the page in the browser. Basically it connects to nginx, nginx sends some stuff, and then nothing until the client disconnects.
Someone seemed to have a similar issue a few pages ago, but didn't post a solution.
I have tried many things, including downgrading to 1.1.4, playing with the meta/wait_video/ack_window/chunck_size/ping, but I have no solution.
After spending 3 hours on this, it's time for me to ask for your help :)
Here is a pastebin of a rtmpdump when it doesn't work:
http://pastebin.com/bw3m6zbS
Any idea would be *much* appreciated.