Connection Issues NGINX To Some Stream Services

Forum home -> Tech Talk -> View topic

Post

Posted
Rating:
#267 (In Topic #53)
Avatar
Standard member

It's not connecting to Periscope or Vaughnsoftlive

First of all, thank you for your video it was very helpful. I have no problems paying for services but I find Restream ridiculous expensive for what they offer.

So I have been selecting a few services to stream on. Youtube, Facebook are working perfectly but Periscope seems to stay black and nothing happens and Vaugh is not connecting at all.

push rtmp://live-ams.vaughnsoft.net/live/MYKEY;
push rtmp://de.pscp.tv:80/x/live/MYKEY;

Please advice,

Thank you
Online now: No Back to the top

Post

Posted
Rating:
#268
Avatar
NOTS Staff
Hi Lionsground.

I don't have any experience with the Vaughn network. It looks like they have a number of different websites, and some of them use streaming URLs that don't even match their website. The whole thing looks like a big mess to me. I would try appending :443 to your URL (right after ".net"), removing the "-ams" from the subdomain, and looking up other possible RTMP URLs, in that order.

As for Periscope, I also haven't used it before myself, but at least I've heard of it and they've got actual documentation on their website. It does look like their recommended bitrates are lower than average (probably to deal with mobile viewers), so make sure you're using values that are at least within their ballpark. It also appears that the stream won't start automatically; similar to YouTube, you have to start streaming first, then click "Preview Broadcast"/"Start Broadcast". Looking at Periscope's example RTMP URLs, you should remove the "/live" from your Periscope URL; the "/x" serves that purpose, that's where their RTMP server is located, not at "/live".

Let us know if any of that works.
Online now: Yes Back to the top

Post

Posted
Rating:
#269
Avatar
Standard member
Here's the current config file:

Image

(Click to enlarge)



I've lowered the bitrate but that didn't worked.

Please advice.

Thanks a lot.
Online now: No Back to the top

Post

Posted
Rating:
#270
Avatar
NOTS Staff
It looks like you didn't do any of the things I recommended for Vaughn. Did you try any of them?
Online now: Yes Back to the top

Post

Posted
Rating:
#271
Avatar
Standard member
No I was sharing my current config file because the info in my original message is not correct. I will try it out tonight your tips. Thanks!
Online now: No Back to the top

Post

Posted
Rating:
#272
Avatar
Standard member
Both are not working. Periscope is receiving connection, click go live but it stays black. Facebook and Youtube works perfectly.

I made my decision to stick only with Facebook and Youtube only but want to let you know periscope is not working.

screenshot1.jpg 2018-06-29 (9).png

2018-06-29 (8).png
Online now: No Back to the top

Post

Posted
Rating:
#273
Avatar
NOTS Staff
Can you post screenshots of your OBS settings?
Online now: Yes Back to the top

Post

Posted
Rating:
#274
Avatar
Standard member
Sorry I was afk for a while but i'm back. I think it's a FFMPEG problem.
exec ffmpeg -i rtmp://localhost/test/$name -crf 30 -preset ultrafast -acodec aac -strict experimental -ar 44100 -ac 2 -b:a 64k -vcodec libx264 -x264-params keyint=60:no-scenecut=1 -r 30 -b:v 500k -s 960x540 -f flv rtmp://va.pscp.tv:80/x/SOME_NODE/YOUR_KEY_HERE;
Any idea how to make this work? I've already installed FFMPEG.

Apparently it's a familiar problem but this is I think the solution:  https://github.com/arut/nginx-rtmp-module/issues/898#issuecomment-279118799

Last edit: by lionsground

Online now: No Back to the top

Post

Posted
Rating:
#275
Avatar
Standard member
Want to let you know I fixed the issue with Periscope. After installing FFMPEG on the server I added the following code in the application live section.

exec ffmpeg -i rtmp://localhost/live/$name -crf 30 -preset ultrafast -acodec aac -strict experimental -ar 44100 -ac 2 -b:a 64k -vcodec libx264 -x264-params keyint=60:no-scenecut=1 -r 30 -b:v 500k -s 960x540 -f flv rtmp://ie.pscp.tv:80/x/MYKEY;

I now need to find out how I can make it easier with inputting the KEY without editing the nginx.conf all the time. Any suggestions?
Online now: No Back to the top

Post

Posted
Rating:
#276
Avatar
NOTS Staff
Oh, I thought that I responded to your last post, but I guess I didn't.

So basically, like I mentioned before, Periscope's ingest requirements are lower than most other services can handle, so you can't just duplicate the signal packet-for-packet between all the services like NGINX normally does. By using the "exec" solution, you're running FFmpeg on your server transcoding the input in real-time to a format that Periscope can handle. That's likely to mean your CPU requirements are a lot higher, but since you're going down in quality, it might not be too bad.

As far as the key goes, it looks like Periscope gives you a different key every time you stream, so editing the nginx.conf file is how I would do it. The new Livestream.com also has that issue, since they give each "event" its own stream key, rather than having one persistent key per channel. It's just a limitation of platforms to watch out for.

You could always make a Bash script or something to generate you a config file based on keys that you input, but you'd still have to run the script every time. Maybe you could make a web app so you can paste the keys into a GUI and have the app generate the config file on the backend… but that's a lot of scripting, so you'll have to decide whether that's worth it to not have to edit the config file manually every stream.
Online now: Yes Back to the top

Post

Posted
Rating:
#277
Avatar
Standard member

jacobgkau said

Oh, I thought that I responded to your last post, but I guess I didn't.

So basically, like I mentioned before, Periscope's ingest requirements are lower than most other services can handle, so you can't just duplicate the signal packet-for-packet between all the services like NGINX normally does. By using the "exec" solution, you're running FFmpeg on your server transcoding the input in real-time to a format that Periscope can handle. That's likely to mean your CPU requirements are a lot higher, but since you're going down in quality, it might not be too bad.

As far as the key goes, it looks like Periscope gives you a different key every time you stream, so editing the nginx.conf file is how I would do it. The new Livestream.com also has that issue, since they give each "event" its own stream key, rather than having one persistent key per channel. It's just a limitation of platforms to watch out for.

You could always make a Bash script or something to generate you a config file based on keys that you input, but you'd still have to run the script every time. Maybe you could make a web app so you can paste the keys into a GUI and have the app generate the config file on the backend… but that's a lot of scripting, so you'll have to decide whether that's worth it to not have to edit the config file manually every stream.

Hi, no Periscope use the same key (under producer). This also solved the problem with Vaughn.

But I am unable to stream to Vk.

I tried both way the normal push and the exec ffmpeg. It's not receiving data. I'm trying to figure out how to solve this maybe you are familiar with this ?
I also seek a solution for a combined chat.
Online now: No Back to the top

Post

Posted
Rating:
#278
Avatar
NOTS Staff
I've heard of VK, but I've never streamed there. It looks like they give a streaming URL and stream key just like every other service. VK's support page even says you can combine the URL and stream key into a single line for server-side software.

Combined chat is an entirely different issue, and entirely depends on whether each individual service you're using provides an API for you to access the chat messages with.
Online now: Yes Back to the top

Post

Posted
Rating:
#279
Avatar
Standard member

jacobgkau said

It looks like they give a streaming URL and stream key just like every other service. VK's support page even says you can combine the URL and stream key into a single line for server-side software.

yup

Online now: No Back to the top
1 guest and 0 members have just viewed this.