top | item 22754776

(no title)

lucastech | 6 years ago

OBS is great! Huge thanks to everyone who's maintained it over the years.

As a side note, I'm trying to figure out how to do live streaming with less intense CPU requirements. My use case is effectively trying to use a Macbook Air to stream high quality video (720p, 30fps). Is there any way I could stream the video raw and encode it on a VPS somewhere? Or is there just a very real hurdle of needing a beefy CPU for any live streaming?

I've looked at WebRTC a bit, but can't seem to find much in terms of how to broadcast it in a 1 to many (like Twitch, Vimeo, etc) when using WebRTC. Mux.com at least allows you to do that if you have an RTMP source stream, but I can only find web based libraries that require Flash to stream.

Is there some HTML5 camera broadcasting solution that I'm missing? Some kind of VPS software for turning WebRTC into RTMP? I'd appreciate any direction I can get on this!

Thanks

discuss

order

mmcclure|6 years ago

I'm actually working on a blog post on the state of streaming live from a browser! WebRTC is...a bit of a monster, especially if you want to broadcast one-to-many.

I've been hacking around with using the MediaRecorder API and piping that through WebSockets to a server that publishes via RTMP. It's definitely rough, and browsers de-prioritizing requestAnimationFrame callbacks when the tab isn't in focus kills things, but it's promising. It runs shockingly well on a Glitch instance for what that's worth.

You need a Mux (https://mux.com) stream key for the demo, but you could quickly edit it to use any RTMP URL: https://mmcc-next-streamr.glitch.me/