News for hackers. Stuff that matters.
Re:Show HN: OBS Live-streaming with 120ms latency by Sean-Der on Wednesday September 04, 2024 @08:23AM (#41444817)
I created Broadcast Box originally as a reference server to test OBS against. It was way easier for people to test my WebRTC/WHIP PRs against. Seeing people use it I am seeing the benefits/excitement more.

* low latency means you have a relationship with your audience. These intimate broadcasts are a new medium.

* Simulcast means it is way cheaper to run a streaming site. No more running ffmpeg/generating transcodes server side.

* AV1/H265/Opus means users with lower bandwidth can now broadcast. Users with enough bandwidth can stream at quality levels they couldn’t before

* UDP gives us IRL/Roaming streams. No custom setup for re-connects.

* Multi-track lets you send multiple video feeds or languages at once

* E2E Encryption means that P2P distribution could be a thing

Re:Show HN: OBS Live-streaming with 120ms latency by oarsinsync on Wednesday September 04, 2024 @11:47AM (#41447152)
Is there a reason why I'd want to use Broadcast Box instead of mediamtx, which features RTMP, RTSP, WebRTC/WHIP, and (LL)HLS in a single small binary?
Re:Show HN: OBS Live-streaming with 120ms latency by Sean-Der on Wednesday September 04, 2024 @01:39PM (#41448395)
mediamtx is a great project! Use w/e works best for your use case. I just encourage people to use.

* Free Software

* Project is operated/managed by individuals

* Use Open Standards/Protocols

Re:Show HN: OBS Live-streaming with 120ms latency by thnkman on Wednesday September 04, 2024 @03:24PM (#41449618)
I think this is a highly underrated comment. It seems today, people wont create for free any more, just for the joy of creating and distributing some thing you care about. It's always please donate x to y. Or subscribe to get access to premium content.

Sorry for hijacking your comment :)

Re:Show HN: OBS Live-streaming with 120ms latency by jack_pp on Wednesday September 04, 2024 @07:45PM (#41452010)
Economy is shit, what do you expect. Very few humans have the financial luxury to release free software and not try to monetize it at all.
Re:Show HN: OBS Live-streaming with 120ms latency by tekknik on Thursday September 05, 2024 @06:49AM (#41455372)
this seems like a reasonable comment on its face, but then it reads selfishly. why should a developer donate time when a house isn’t donated to that programmer?
Re:Show HN: OBS Live-streaming with 120ms latency by oarsinsync on Thursday September 05, 2024 @03:46AM (#41454496)
> mediamtx is a great project! Use w/e works best for your use case.

I agree, I'm just struggling to differentiate what BB offers that MMTX does not, so I can identify if there's a USP. If it's a passion project to scratch a personal itch, that's also great!

Also, can you share your latency measuring methodology?

Re:Show HN: OBS Live-streaming with 120ms latency by jprjr_ on Thursday September 05, 2024 @10:55AM (#41457239)
I think Broadcast Box may have implemented WHIP/WHEP before MediaMTX so it tends to be one of the first results when looking up a WHIP-capable server. Plus it has a public instance so if you want to test WHIP real quick, it's pretty easy to just point OBS somewhere instead.

MediaMTX used to be "rtsp-simple-server" which really undersold what it was capable of (even back then it could ingest RTMP and output HLS and WebRTC).

Overall I think MediaMTX has more features and can do everything that Broadcast Box can.

Re:Show HN: OBS Live-streaming with 120ms latency by pjc50 on Thursday September 05, 2024 @08:31AM (#41455992)
I didn't know this existed, so thanks.
Re:Show HN: OBS Live-streaming with 120ms latency by dangoodmanUT on Wednesday September 04, 2024 @09:07AM (#41445265)
Just pouring through the code, one thing I think it's missing is transcoding to multiple (lower) resolutions as well so weaker connections can watch.

Is that correct? I took a brief look a the WHIP protocol and it seems like maybe it's just a matter of converting the frames before writing?

Re:Show HN: OBS Live-streaming with 120ms latency by Sean-Der on Wednesday September 04, 2024 @10:06AM (#41446014)
This is all done client side. OBS sends up multiple renditions, the server is just in charge of forwarding the specific layer. I think this is better in a few ways.

* Lower latency - The extra decode + encode adds enough latency that you start to lose the real-time latency.

* Better Quality - You get generational loss from the transcoding. You get better quality only encoding one times. Streaming services also optimize for cost. Having broadcasters control the encoding quality of everything makes for a better experience.

* Security/Trust - Servers shouldn't be able to modify video at all. I would like for broadcast services to eventually offer E2E encryption. It feels wrong to me that a streaming service is able to modify video however it pleases.

Re:Show HN: OBS Live-streaming with 120ms latency by ohthatsnotright on Wednesday September 04, 2024 @10:58AM (#41446545)
> It feels wrong to me that a streaming service is able to modify video however it pleases.

This would significantly complicate services such as Twitch and YT Live going to server-side ad insertion if the source video were E2E. I think server-side ad insertion is likely the only method available for providers that isn't able to be circumvented by ad-block or DNS blocking plugins.

Re:Show HN: OBS Live-streaming with 120ms latency by spockz on Wednesday September 04, 2024 @05:29PM (#41451057)
Why? The advertisements could still be added as separate video layers? Sure, they are also easier to be circumvented. But I’d rather supported something like this than end up with real time edited video to insert ads or even worse have “influencers” promote something without ever having really tried it.
Re:Show HN: OBS Live-streaming with 120ms latency by ohthatsnotright on Thursday September 05, 2024 @06:55AM (#41455400)
If it's a separate layer or different server you can bet that someone will figure out how to remove it from the DOM, hide it, or prevent it from even loading.
Re:Show HN: OBS Live-streaming with 120ms latency by pjc50 on Thursday September 05, 2024 @08:03AM (#41455771)
Again, I think that's a "feature" a lot of users would prefer to design out.
Re:Show HN: OBS Live-streaming with 120ms latency by mannyv on Wednesday September 04, 2024 @03:08PM (#41449408)
There is by definition a layer of trust between the broadcaster, the server, and the client.

That said, you could use TLS from the server to client, which is what many services do (since it's actually quite difficult to use http these days for streamed content due to browser polices).

Re:Show HN: OBS Live-streaming with 120ms latency by pjc50 on Thursday September 05, 2024 @08:05AM (#41455785)
> I would like for broadcast services to eventually offer E2E encryption

Is this even conceptually possible? I suppose you could sign the stream, but if you want to hide it how would you prevent the server from simply adding itself as a viewer?

(also, if you do this, start a countdown for getting raided as a CSAM distributor)

Re:Show HN: OBS Live-streaming with 120ms latency by mannyv on Wednesday September 04, 2024 @09:25AM (#41445534)
I believe that's handled on the OBS side.
Re:Show HN: OBS Live-streaming with 120ms latency by Flockster on Wednesday September 04, 2024 @10:35AM (#41446312)
How does it work with H265? My last info was, that WebRTC only supports H264 and VP8. It would be great to stream H265 via WebRTC.
Re:Show HN: OBS Live-streaming with 120ms latency by SahAssar on Wednesday September 04, 2024 @10:42AM (#41446397)
WebRTC is codec agnostic as far as I know, it's up to the peers to negotiate the codecs used. Of course browsers will have more narrow support, but can sometimes activate more codecs via flags or you can use a non-browser client.
Re:Show HN: OBS Live-streaming with 120ms latency by Sean-Der on Wednesday September 04, 2024 @10:41AM (#41446378)
H265 support is available in Chrome now! Launch with these flags

`--enable-features=WebRtcAllowH265Receive --force-fieldtrials=WebRTC-Video-H26xPacketBuffer/Enabled`

I haven't used it myself yet.

Re:Show HN: OBS Live-streaming with 120ms latency by mannyv on Wednesday September 04, 2024 @09:25AM (#41445530)
I always wondered why broadcasters don't transcode on the client side.

RTMP can't handle it, but SRT (and apparently WebRTC can). It would reduce latency for sure. Of course, it does require a good network connection on the client end, but so does streaming.

Re:Show HN: OBS Live-streaming with 120ms latency by pjc50 on Thursday September 05, 2024 @08:06AM (#41455794)
I suspect it's a desire to minimise CPU/GPU usage, especially if you're trying to stream a game from a PC through OBS.
Re:Show HN: OBS Live-streaming with 120ms latency by breck on Wednesday September 04, 2024 @01:21PM (#41448225)
> These intimate broadcasts are a new medium.

You hit the nail on the head here. I mean live streaming is already quite big but it seems like it's going to be going up 10x - 100x next few years.

It's really an amazing thing that makes the Internet more human.

Re:Show HN: OBS Live-streaming with 120ms latency by tekknik on Thursday September 05, 2024 @06:54AM (#41455396)
I feel the opposite. I’ve watched streaming as my primary form of media for over 10 years now, and it seems a majority of the small, “intimate” broadcasters that were fun to watch have had to get real jobs, or are sailing the world, or what have you. To me, it seems like it’s dying in favor of short form doomscroll videos.
Re:Show HN: OBS Live-streaming with 120ms latency by breck on Thursday September 05, 2024 @01:52PM (#41458960)
> I’ve watched streaming as my primary form of media for over 10 years now

My goodness, you are living in the future. What else are you into? Where can I follow you (blog, twitter, warpcast, etc?)? Love to follow early adopters.

Re:Show HN: OBS Live-streaming with 120ms latency by mapcars on Wednesday September 04, 2024 @06:19PM (#41451464)
Hi, this looks great but I tried to do the setup as described in the readme using OBS and streaming to your server and I saw 3-4 seconds delay, how exactly can I reach sub-second?
Re:Show HN: OBS Live-streaming with 120ms latency by Sean-Der on Wednesday September 04, 2024 @07:21PM (#41451876)
What are your encoder settings? Mind joining the discord easier to debug I don’t actively check HN sorry :/