Welcome! Log In Create A New Profile

Advanced

Re: Download full mp4 file with proxy_cache or proxy_store !!

June 20, 2014 03:16PM
@Lukas, we're using nginx-1.6 and byte range caching is already enabled by
default(i guess). Below is the curl request :-

curl -H Range:bytes=16- -I
http://videos.files.com/files/videos/2014/06/20/14032606291de19-360.mp4
HTTP/1.1 206 Partial Content
Server: nginx
Date: Fri, 20 Jun 2014 13:36:05 GMT
Content-Type: video/mp4
Content-Length: 25446010
Connection: keep-alive
Last-Modified: Fri, 20 Jun 2014 11:04:11 GMT
ETag: "53a4152b-184468a"
Expires: Fri, 27 Jun 2014 13:36:05 GMT
Cache-Control: max-age=604800
X-Cache-Status: HIT
Content-Range: bytes 16-25446025/25446026

Could you tell me how can i check using curl that if nginx downloading the
whole file each time the user seek the video with mp4 psuedo module i.e
http://url/files/videos/test-360.mp4?start=39.

I am newbie to proxy_cache and much confused about the behavior.

I know rsync is better solution but it cannot cache the videos on fly
instead to have a schedule to rsync file in off-peak hours. We want to
cache only videos which are accessed 10 times and nginx is doing well with
proxy_cache_min directive.


On Thu, Jun 19, 2014 at 8:36 PM, Lukas Tribus <luky-37@hotmail.com> wrote:

> > we're using two servers (one proxy and one backend). Proxy server
> > is using proxy_cache to cache mp4 files from backend server and working
> > fine. When i stream a full video from cache, the header response gives
> > me the cache-status: HIT but whenever i seek the mp4 file i.e
> > http://url/test.mp4?start=33 , the Cache-status changes to : MISS .
> > Does that mean, the proxy server is again downloading the same file
> > after the 33 seconds ?
> >
> > Can't i use nginx proxy_cache to download whole mp4 file and and than
> > seek from it instead of fetching the file again and again ? Does
> > proxy_store has this functionality if not proxy_cache ?
>
> You would not have this problem with local files (rsync'ing them to your
> server, as was previsouly suggested in the other thread).
>
>
> What nginx release are you using? You probably need at least 1.5.13 as
> per:
> http://mailman.nginx.org/pipermail/nginx/2014-June/044118.html
>
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Download full mp4 file with proxy_cache or proxy_store !!

shahzaib1232 June 19, 2014 02:14AM

RE: Download full mp4 file with proxy_cache or proxy_store !!

Lukas Tribus June 19, 2014 11:38AM

Re: Download full mp4 file with proxy_cache or proxy_store !!

shahzaib1232 June 20, 2014 03:16PM

RE: Download full mp4 file with proxy_cache or proxy_store !!

Lukas Tribus June 21, 2014 03:12AM

Re: Download full mp4 file with proxy_cache or proxy_store !!

Roman Arutyunyan June 23, 2014 08:24AM

Re: Download full mp4 file with proxy_cache or proxy_store !!

shahzaib1232 June 23, 2014 08:48AM

Re: Download full mp4 file with proxy_cache or proxy_store !!

Roman Arutyunyan June 23, 2014 10:34AM

Re: Download full mp4 file with proxy_cache or proxy_store !!

itpp2012 June 23, 2014 09:15AM

Re: Download full mp4 file with proxy_cache or proxy_store !!

shahzaib1232 June 23, 2014 09:30AM

Re: Download full mp4 file with proxy_cache or proxy_store !!

Roman Arutyunyan June 23, 2014 10:44AM

Re: Download full mp4 file with proxy_cache or proxy_store !!

shahzaib1232 June 23, 2014 02:08PM

Re: Download full mp4 file with proxy_cache or proxy_store !!

shahzaib1232 July 25, 2014 06:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 311
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