Welcome! Log In Create A New Profile

Advanced

Re: Nginx + proxy_store + flv/mp4

Maxim Dounin
October 05, 2009 06:22PM
Hello!

On Mon, Oct 05, 2009 at 02:56:05PM -0400, benjinx wrote:

> Well. I'll tell you the reason :-).
>
> I'm working on the infrastructure for streaming more than 20 radio channels. Content
> from the last 30 days should be available in several bitrates for a variety of players,
> not only Flash. This content totals about 4 TB or more at any one time. The reason for
> choosing AAC/Mp4 is because of compatibility and ease of compression. We simply don't
> want to add yet another format to store (flv). Since flash can play AAC/Mp4 now we want to
> use that with the Flash player.
>
> I've tested the h264 module and it seems to be pretty fast and working well. My only problem
> is the mirroring on demand through nginx by using proxy_store. I guess there are other ways
> to do this but this solution was SO simple and elegant if not for this little problem which may very
> well force me to find another solution.
>
> Any ideas?

If you stick with mp4, you may do something like:

1. If there is no file in store on frontend in question, fallback
to script.

2. From script request full file via frontend in question (and
proxy_store it there).

3. Return X-Accel-Redirect to the file in store.

Maxim Dounin
Subject Author Posted

Nginx + proxy_store + flv/mp4

benjinx October 05, 2009 12:04PM

Re: Nginx + proxy_store + flv/mp4

Maxim Dounin October 05, 2009 12:44PM

Re: Nginx + proxy_store + flv/mp4

benjinx October 05, 2009 01:19PM

Re: Nginx + proxy_store + flv/mp4

Maxim Dounin October 05, 2009 02:42PM

Re: Nginx + proxy_store + flv/mp4

benjinx October 05, 2009 02:56PM

Re: Nginx + proxy_store + flv/mp4

Maxim Dounin October 05, 2009 06:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 115
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready