OBS can not connect to RTMP Server

ZeroEnna

New Member
Hey everyone,

I tried to set up my own restream server on a raspberry pi (for testing purposes for now, to see if that Raspberry Pi can handle the load, or whether I need a vServer).

I created the server according to this tutorial:


I have created a conf file that looks like this:

Code:
rtmp {
        server {
                listen 1935;
                chunk_size 4096;
                notify_method get;

                application live {
                             on_publish http://localhost/auth;
                             live on;
                             record off;
                             # Define the applications to which the stream will$
                             push rtmp://localhost/twitch;
                             push rtmp://localhost/facebook;
                }

                      # Twitch Stream Application
                      application twitch {
                          live on;
                          record off;

                          # Only allow localhost to publish
                          allow publish 127.0.0.1;
                          deny publish all;

                          # Push URL with the Twitch stream key
                          push rtmp://live-cdg.twitch.tv/app/MySecretKey
                      }

                      # Facebook Stream Application
                      application facebook {
                          live on;
                          record off;

                          #Only allow localhost to publish
                          allow publish 127.0.0.1;
                          deny publish all;

                          # Push URL with the Facebook stream key
                          #push rtmps://live-api-s.facebook.com:443/rtmp/MySecretKey

                      }
                  }
}

However, whenever I try to connect to the server (rtmp://192.168.0.20:1935/live), I get an error. "Unable to access channel or stream key."

What's the matter here? I think I'm close, but I'm lacking the final "push" in the right direction.

Thank you in advance.

Kind Regards

Zero
 
Last edited:

Tomasz Góral

Active Member
did you check if nginx is running on rpi?
rtmp = default port 1935, you don't need to list it eg rtmp: //192.168.0.20/live is the server address, you give the key (any value).

Show your log file.
 

ZeroEnna

New Member
I found the problem. Your remark about the logs... damn... who has 10 years of experience being an admin? Not me, it seems...
Anyway, this line was it:

on_publish http://localhost/auth;

After that was gone, I now can connect to the nginx.
Thank you very much :)
 
Last edited:
Top