Question / Help nginx push problem

golf

New Member
Hey

everytime i try to use the push feature on my windows nginx server it keeps on saying this to me

push" directive is not allowed here, i posted the error log, so what am i doing wrong then
 

Attachments

  • error.log
    8.2 KB · Views: 23

golf

New Member
Hey

this is how i have it wrote down in the nginx conf file

rtmp {
server {
listen 1935;
chunk_size 4096;

application live {
live on;
record off;
} push rtmp://live-ymq.twitch.tv/app/

is that right

how is it spose to be wrote down then
 

Narcogen

Active Member
No.

The push directive needs to be inside the closing brace, not outside it.

The URL for the twitch ingest needs to include your key in this format, not include a final forward slash, and the line needs to end with a semicolon like all the other lines.

push rtmp://live-ymq.twitch.tv/app/live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX;
 

golf

New Member
Do you mean like this

rtmp {
server {
listen 1935;
chunk_size 4096;

application live {
live on;
record off;
} push rtmp://live-ymq.twitch.tv/app/live_443111498_gcmkVwxzu7G58cDI0qVgGq22aM0h6W;
}
}
 

Narcogen

Active Member
Delete that, you've just published your stream key.

And no, you still have a stray closed bracket in front of your push directive that should not be there.
 

Narcogen

Active Member
Like this:

rtmp { server { listen 1935; chunk_size 4096; buflen 500ms; application live { live on; record off; push rtmp://live-jfk.twitch.tv/app/live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; } } }
 
I need help with my Nginx also. When I try to broadcast from OBS I receive the message "Unable to connect to server", if I change the name "localhost" to the machine IP it connects, but NGinx somehow can´t push my stream to youtube or any other platform fast. It slowdown, and I don´t know why. See the picture: This is from the page stat ( I run almost latest 64bit OBS on a Win 7 excellent machine, and my internet connection is 300 Mbps ). If I use OBS to connect directly, I have no problems.

Nginx.jpg
 
Top