First off, this guide has been great in helping me get an RTMP server setup. As someone very new to linux and such, it has been pretty straightforward to follow.
I'm trying to stream to twitch and youtube simultaneously, and having some problems. I have the RTMP server set up on a Raspberry Pi. It works fine for a while (sometimes 5 minutes, sometimes 20 or more minutes), and then the transfer rate that OBS shows in the bottom right corner begins to fluctuate, then the stream disconnects. Sometimes it comes right back, and is stable again, sometimes I have to restart my RTMP server to get it back. Occasionally only the youtube stream comes back and the twitch stream doesn't work until I restart the RTMP server...
I have just finished verifying that streaming to only twitch through the RTMP server works for about an hour, I am satisfied that works. Streaming to twitch straight from OBS also works. When I streamed to youtube only through the RTMP server, it disconnected after about 20 minutes. I am currently running a test streaming direct to the youtube channel through OBS, not the RTMP server. Here are the lines in my nginx.conf file to push to my streams.
Code:
rtmp {
server{
listen 1935;
chunk_size 4096;
application live {
live on;
record off;
push rtmp://live.twitch.tv/app/[streamkeyfromtwitch];
push rtmp://a.rtmp.youtube.com/live2/[streamkeyfromyoutube];
}
}
}
Is it possible that I am just surpassing the amount of data that the Raspberry Pi can transfer? I have tried different bitrates, and it seems like even if I make the rate very low, I still have the instability problems. My internet is 10 Mbps upload, I do not think I am maxing that out. Plus the fact I get the disconnect on youtube and not on twitch when I run only one at a time, makes me skeptical the Pi is the problem.
If anyone has any insight on what might be happening, please let me know. I'd be happy to post any further information you request, although I will warn you I am very inexperienced with linux, so I may need instruction on how to get to/post any log files or anything like that.
Thanks for your time,
Ventea