Question / Help Web player

ex0r

New Member
Hey everyone, I am building an online fitness community, and I would like to make live workout sessions available to my members. I already have open broadcaster that I am planning to use, but I was wondering if it was possible via a plugin or some other means, to make the stream viewable from a web player, like vimeo, twitch or youtube? My idea is to make the stream available via my website, by pointing to the url like www.example.com/live-stream/ and if there is currently a live stream, it's displayed on the page via an embedded video tag, like how youtube or vimeo work.

Is there something like this made, or is it possible with open broadcaster?
 

dping

Active Member
Hey everyone, I am building an online fitness community, and I would like to make live workout sessions available to my members. I already have open broadcaster that I am planning to use, but I was wondering if it was possible via a plugin or some other means, to make the stream viewable from a web player, like vimeo, twitch or youtube? My idea is to make the stream available via my website, by pointing to the url like www.example.com/live-stream/ and if there is currently a live stream, it's displayed on the page via an embedded video tag, like how youtube or vimeo work.

Is there something like this made, or is it possible with open broadcaster?
So if you plan on using youtube that would be the code you use to link the live broadcast. I'm sure there are how tos out there on that.

If you want to keep it separate from youtube or other boradcast sites you can make a webserver called nginX which is a linux based web server that you can point OBS to then use that as an rtmp server to relay the broadcast to your site.

In the end integrating youtube would be best but its all about how you what to do it.
Check our resouces area for how-tos.
https://obsproject.com/forum/resources/categories/guides.2/
 

ex0r

New Member
Thank you for the quick reply I guess I should've been a little more thorough with the backstory. I am actually a web developer I am making the website for a fitness coach of friend of mine and I tried looking on the website to see if there was a plug-in that allowed you to stream to a webpage but I couldn't seem to find one so I asked on here . He wants them to be exclusively available only on his website so you tube will not work I was merely using it as an example of embedded video. I guess what I was essentially asking was is there a plug-in that allows you to stream over the web that you can link to in an HTML 5 embed tag.
 

ex0r

New Member
I'm sorry if this difficult to understand I am using speech to text on my phone. I can elaborate more thoroughly and if needed when I get home
 

dping

Active Member
Thank you for the quick reply I guess I should've been a little more thorough with the backstory. I am actually a web developer I am making the website for a fitness coach of friend of mine and I tried looking on the website to see if there was a plug-in that allowed you to stream to a webpage but I couldn't seem to find one so I asked on here . He wants them to be exclusively available only on his website so you tube will not work I was merely using it as an example of embedded video. I guess what I was essentially asking was is there a plug-in that allows you to stream over the web that you can link to in an HTML 5 embed tag.
do some research on NginX with the rtmp plugin. it can record, receive, transcode or just host simulations streams. the overhead is pretty small when you dont transcode This will then be just on his site.
https://obsproject.com/forum/search/2975230/?q=nginx&t=resource_update&o=date&c[rescat]=2

EDIT: there are guides on doing this with just a raspberrypi for multiple sources.


@Jack0r woul dbe a good resource in general on this if hes willing to help.
 

ex0r

New Member
I'm familiar with Nginx the problem is the Web server is Apache in the distribution does not support nginx.
 

dping

Active Member
I'm familiar with Nginx the problem is the Web server is Apache in the distribution does not support nginx.
it doesn't have to be part of the web server. it can be a separate instance. Anyway, it would be ideal better if it was separate that way if it gets hit hard the whole site doesn't suffer. Just my thoughts though.
 

ex0r

New Member
Yeah it would make sense to do that and I would do that with the distribution is the distributed solution in ngin X is not supported for it so I have to do it from Apache. Ideally I would like open broadcaster software to be the one that does the serving in the website just pulls a stream in from there
 

ex0r

New Member
Wow that made no sense. That is the best solution in the solution I would be doing except I cannot install nginx on the system. Ideally I am looking for something that will allow open broadcast software to be the server and I just point to it from a web address. If all else fails he may have to make a private YouTube channel and just stream to that, then I can just embed that.
 

dping

Active Member
Wow that made no sense. That is the best solution in the solution I would be doing except I cannot install nginx on the system. Ideally I am looking for something that will allow open broadcast software to be the server and I just point to it from a web address. If all else fails he may have to make a private YouTube channel and just stream to that, then I can just embed that.
This is not really what OBS was made for as OBS will put high load to encode for a stream (depending on the quality resolution and fps) Ideally. you stream using OBS to nginX or similar rtmp server for recording and relay then link it to your site which you can also do something with building a past broadcast area if that is something you can do..

I am not a web dev but I do know how things work with OBS as well as nginX and obs is not made to direct broadcast in this way. nginx is made for what you want to do though and can stay online even when not broadcasting for archive and keeping up a static configuration for your site to point to. mona server is another alternative as well.
 

ex0r

New Member
I had figured, reading the description as 'live streaming and recording', and being as websites are a pretty common commodity that obs would have support for it. Having a third party to relay to (nginx or whatever) would seem to me like it would take more strain, as the nginx server has to connect to the stream, encode it, and the rebroadcast it or relay it through it's own server, where as you would think openbroadcaster would have already handled all that when it was streaming itself.

So if OBS doesn't support live web streams natively, how do people view the streams? Do they have to download the openbroadcaster software and connect to the stream that way? Last time I used it, I thought I remembered setting up a twitch.tv channel and telling OBS to stream to that, which could work if I could make the channel private.

In essence he's going to be recording every stream, and then uploading the videos onto the website as a 'archive', which twitch and youtube both have support for, so I may just look at seeing about making the channels private unless you have the direct link to the stream.

Thanks for the valuable information.
 

ex0r

New Member
Well, after setting up nginx tonight on a test machine, it appears that this option still will not work, as RTMP is a flash based protocol, and flash and web are pretty much a no-no anymore. It looks like I am going to have to find another solution to integrate live streaming into the website.
 

dping

Active Member
Well, after setting up nginx tonight on a test machine, it appears that this option still will not work, as RTMP is a flash based protocol, and flash and web are pretty much a no-no anymore. It looks like I am going to have to find another solution to integrate live streaming into the website.
I am sorry to hear that. Yes, since I use NGINX all those flash exploits have developed so I dont blame you there.

Twitch is primary a game site so it is not in twitch (Amazon's) ToS to have non-game related streams, minus the "creative" and "talk show" topics added recently. They are somewhat in the same theme.

I would do youtube and make streams not public as they will not be shown for in the list yet you can link to them directly from your site. this sounds like your best option.


nginX is low overhead because all it does is capture the rtmp (optionally saving) then reboadcasting which even an rasbpi can do. Its sad that this isn't a solution for you. There might be other solutions in the future so keep your ears open.


Best of luck and sorry for the delayed reply.
 
Top