Welcome! Log In Create A New Profile

Advanced

Re: Using nginx as a HLS reverse proxy with Envoy?

Šimon Tóth
July 13, 2021 05:22PM
On Tue, Jul 13, 2021 at 10:41 PM Reinis Rozitis <r@roze.lv> wrote:

> > How would that work?
> > From the presentation on RTMP it looks like that nginx is just serving
> cached VODs instead of the actual stream.
>
> RTMP and HLS are two different streaming technologies.
> HLS just consists of a playlist (.m3u8) file (usually the player reads it
> by continuously making http requests) which points to video chunk files
> which again are served via simple http. This is why (contrary to rtmp) hls
> is easy to scale/cache and/or use via all kinds of CDNs.
>

Indeed, converting RTMP to HLS is something that I already have.
This is the video, I was talking about:
https://www.youtube.com/watch?v=Js1OlvRNsdI

The streams read through different protocols are completely out of sync. I
suspect it is because nginx is just serving stale cached chunks.

> And even if it can actually proxy the requests (which I doubt)
>
> It can.


How? The presentation does not cover that.
And it can't be a simple HTTP, because as you said yourself, with HLS I
would just end up with a cached playlist and bunch of useless VOD chunks
that I don't want to ever serve.


> > , it can't be configured dynamically.
>
> As to "dynamically" depends on what are your needs.
>
> The commercial nginx plus version provides an API [1] for dynamic upstream
> configuration but you are not limited by it.
> For example you can use Lua code [2] to determine/set upstream in a very
> dynamic way. There are also some third party modules with such
> functionality.
>
> But again you didn't actually specify what is the issue?
>
>
> [1]
> https://docs.nginx.com/nginx/admin-guide/load-balancer/dynamic-configuration-api/
> [2]
> https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/balancer.md


Thanks for the links.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Using nginx as a HLS reverse proxy with Envoy?

Šimon Tóth July 12, 2021 04:36AM

Re: Using nginx as a HLS reverse proxy with Envoy?

Šimon Tóth July 13, 2021 01:56PM

RE: Using nginx as a HLS reverse proxy with Envoy?

Reinis Rozitis July 13, 2021 03:20PM

RE: Using nginx as a HLS reverse proxy with Envoy?

Reinis Rozitis July 13, 2021 03:22PM

Re: Using nginx as a HLS reverse proxy with Envoy?

Šimon Tóth July 13, 2021 03:46PM

RE: Using nginx as a HLS reverse proxy with Envoy?

Reinis Rozitis July 13, 2021 04:42PM

Re: Using nginx as a HLS reverse proxy with Envoy?

Šimon Tóth July 13, 2021 05:22PM

RE: Using nginx as a HLS reverse proxy with Envoy?

Reinis Rozitis July 14, 2021 02:16AM

Re: Using nginx as a HLS reverse proxy with Envoy?

Šimon Tóth July 14, 2021 02:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 316
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready