Question / Help Stream locally

Evan Sullivan

New Member
We are looking to use this software for our announcements (school). I have been playing getting everything to run locally. VLC can stream is there a way to use VLC with this? Thanks!
 

dping

Active Member
We are looking to use this software for our announcements (school). I have been playing getting everything to run locally. VLC can stream is there a way to use VLC with this? Thanks!
you can use rtmp to a multicast address (I believe) but VLC will need to be running prior to the broadcast to get the full broadcast. I've done this with unicast but that is handled differently than multicast and
Will it be just audio?

multicast will depend on your LAN setup. do you use multiple vlans for the entire school or just one? the reason this Q is important is that cisco switches have a command to allow multicast traffic through vlans and that traffic for the multicast will need to be for LAN only as not to be multicasted past your router. Either way, it can be important to pick a multicast address that is build to your application.

LAN range of multicast addresses are:

239.0.0.0-239.255.255.255

I will experiment a little at home and see what I come up with, but OBS should be fully capable on its own. nginx ofcourse, is another option
 

Evan Sullivan

New Member
Each school will run it's own broadcast, so VLANs should not be an issue.

When I go into the settings of OBS and select stream I only have the option of going to an FMS URL. If you are able to point me in the right direction I would really appreciate it! Thank you so much.
 

dping

Active Member
Each school will run it's own broadcast, so VLANs should not be an issue.

When I go into the settings of OBS and select stream I only have the option of going to an FMS URL. If you are able to point me in the right direction I would really appreciate it! Thank you so much.
Meh, you're right, that is mainly for http rtmp. so there is a chance that we might have to have you setup an NGINX linuxbox which will allow you to to use that as a server. from what I hear, as long as no transcoding is done, it is really low impact and can be run from a raspberrypi. this setup would not involve any multicast per say but might be doable since its running a http rtmp server. I think that is what I might point you to since there are many of guides out there.

https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/

So first youll setup OBS how you like it in the above guide then setup the raspberrypi like this:
http://pkula.blogspot.com/2013/06/live-video-stream-from-raspberry-pi.html

but when you get to the configuration side, you'll setup the /usr/local/nginx/conf/nginx.conf with the first guide.

this should keep you busy for a while. It will work and should be able to host several clients (vlc clients)


EDIT: are you only doing audio or both audio and video?
 
Last edited:

Jack0r

The Helping Squad
If you setup an nginx rtmp server in each school it will be mainly limited by the network bandwidth and the server hardware. 50 connections is not a big problem for nginx.
VLC could then be used to watch the stream off the nginx server. Or you create a webpage with a flash/html5 based player. And to create the video/audio stream you could use OBS.
 

dping

Active Member
I don't see a section in OBS to point to RTMP server.
What @Jack0r said, feel free to post questions, I've been through the installation a couple of times and some of the setup can be a pain, but it works and works well. If you will be using raspi's as the server for each school, then I would recommend getting one working, then making a copy of the SD card, duplicating then just change the hostname and IP of each server. Can you think of anything else Jack0r?
 

Evan Sullivan

New Member
So I got this working in Linux with nginx.

I was trying to get the Windows version running from: http://www.nginxtips.com/how-to-install-nginx-in-windows/

Downloaded and ran start nginx from command line. I then went to http://<host> and I get the welcome to nginx page, which means it's working. However, when I try and stream from OBS I get "could not connect to server....is offline 10061"

The only thing I did in Linux different is add the rtmp line to the end of the config file When I try and do that in Windows conf file, I get errors when trying to work in command line "nginx: [emerg] unknown directive "rtmp" in C:\Program Files (x86)\nginx-1.6.2/conf/nginx.conf:119" Which is the line I added.

Anyone know about the Windows version of this?
 

Jack0r

The Helping Squad
Is your windows nginx definitely build with the rtmp module? The rtmp directive is unknown if you downloaded nginx from nginx.org because that wont include the module. Under Linux it could mean that your rtmp port is not open, you might want to check for your specific linux system how to open port 1935.
I assume under linux you did not get any unkown directive message and added the rtmp configuration to your nginx.conf.
 

Jack0r

The Helping Squad
Oh you just need to extract their zip file, setup your nginx.conf and run nginx.exe :)
The video is actually by me, but a bit older by now, I wasnt able to build the latest versions of nginx with the module, thats why I recommended the ecsds package.
 

Evan Sullivan

New Member
Seriously? That's funny!

I just got to the nmake part, but I get an error. Make sense now.

When you say setup nginx.conf, what special do I need in there? I didn't do anything with the Linux other than add the rtmp stuff, is that what you mean?
 

Jack0r

The Helping Squad
Yea exactly, by default it probably just has a http section for the webserver in the config.
 

x52_BETA

New Member
So I got this working in Linux with nginx.

I was trying to get the Windows version running from: http://www.nginxtips.com/how-to-install-nginx-in-windows/

Downloaded and ran start nginx from command line. I then went to http://<host> and I get the welcome to nginx page, which means it's working. However, when I try and stream from OBS I get "could not connect to server....is offline 10061"

The only thing I did in Linux different is add the rtmp line to the end of the config file When I try and do that in Windows conf file, I get errors when trying to work in command line "nginx: [emerg] unknown directive "rtmp" in C:\Program Files (x86)\nginx-1.6.2/conf/nginx.conf:119" Which is the line I added.

Anyone know about the Windows version of this?
I am having exact same problem, what did you do to fix this? I have the rtmp module already unzipped. Please help. Thanks in advance.
 
Top