Score:-1

Nginx RTMP to Telegram not working through Stunnel

jp flag

I already tried to find an answer but couldn't find anything on this board or on Google.

I followed a guide on YouTube on how to set up a Nginx server on my old MacBook Pro to stream a RTMP video from OBS to different platforms simultaneously.

I already tested it and everything works perfectly when I'm streaming to Twitch and YouTube. I also added Stunnel to stream to Facebook as well (since Facebook requires an RTMPS connection) and it works great.

As a final test I also wanted to add Telegram as a destination. I basically copy-pasted the configuration I did with Facebook but it's not working and I can't understand why.

This is my nginx.conf file:

rtmp {
    server {
        listen 1935;
        ping 30s;
        notify_method get;

        application restream {
            live on;
            # YouTube configuration
            push rtmp://a.rtmp.youtube.com/live2/******* STREAM KEY ********;

            # Twitch configuration
            push rtmp://mil02.contribute.live-video.net/app/******* STREAM KEY ********;
           
            # Below is a push to Stunnel > Facebook
            push rtmp://127.0.0.1:19350/rtmp/****** STREAM KEY ****;

            # TELEGRAM

            push rtmp://127.0.0.1:19351/rtmp/****** STREAM KEY *****;
  
        }
   }
}

Here's the configuration for Stunnel:

[fb-live]
client = yes
accept = 127.0.0.1:19350
connect = live-api-s.facebook.com:443
verifyChain = no

[telegram]
client = yes
accept = 127.0.0.1:19351
connect = dc4-1.rtmp.t.me/s/
verifyChain = no
djdomi avatar
za flag
and this is a business related question? Enduser shall ask on superuser.com
fedpep avatar
jp flag
Sorry, didn’t know that this website was only for business related questions. I also post this on superuser
djdomi avatar
za flag
don't cross post, flag your question for movement. then it will be referred to superuser.com
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.