<div dir="ltr">Hi,<div><br></div><div>We are encoding our videos with ffmpeg using the FASTSTART movflag, so i think qtfaststart is no needed. </div><div><br></div><div>We will start looking at v4 right away. Thank you all! </div>
</div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><div><p style="font-family:Arial,Verdana,sans-serif;font-size:12px"></p><p style="font-size:small"></p><div><div>Saludos,</div><div><span style="font-size:12px"><address><span style="font-size:small;font-style:normal">Hernán.</span></address></span><div style="padding:5px;margin:0px">
<address><div style="padding:5px;margin:0px"><address><address style="font-style:normal"><br><font face="Arial, Verdana, sans-serif"><span style="font-size:12px"><img src="http://www1.tfsla.com/descargas/tfs-logo-firma-blue.jpg" alt="logo tfs" align="left" vspace="5" hspace="5"></span></font></address><address style="font-style:normal;font-family:Arial,Verdana,sans-serif;font-size:12px"> </address><address style="font-family:Arial,Verdana,sans-serif;font-size:12px"><a href="http://www.cms-medios.com/" target="_blank">http://www.cms-medios.com</a><span style="font-style:normal"> | </span><a href="http://blog.tfsla.com/" target="_blank">http://blog.tfsla.com</a><span style="font-style:normal"> | </span><a href="http://facebook.com/cmsmedios" target="_blank">facebook.com/cmsmedios</a></address><address style="font-family:Arial,Verdana,sans-serif;font-size:12px">cel +54 [911] 4945 2272<span style="font-style:normal"> | </span>skype hmarsili<span style="font-style:normal"> | </span>Linkedin<span style="font-style:normal"> </span><a href="http://ar.linkedin.com/in/hmarsili" target="_blank">ar.linkedin.com/in/hmarsili</a></address><address style="font-family:Arial,Verdana,sans-serif;font-size:12px">Suscribite a nuestras novedades por e-mail o RSS feed o Twitter @tfsla  <a href="http://feedburner.google.com/fb/a/mailverify?uri=Twitter/Tfsla&loc=es_ES" target="_blank">>></a></address><address style="font-style:normal;font-family:Arial,Verdana,sans-serif;font-size:12px"><br>
</address><address style="font-style:normal;font-family:Arial,Verdana,sans-serif"><font color="#0000ff" size="1">Argentina +54 11 4711-8999 | USA +1 305 722-5130 | México +52 55 5350-1090 | España +34 93 179-0330 | El Salvador +503 21 13-9730 | Venezuela +58 212 335-1180 | Colombia +57 1 508-7840</font></address></address></div>
</address></div></div></div><p></p><p></p></div><div><span style="font-size:12px"></span></div></div><div><span style="font-size:12px"><address><span style="font-size:small;font-style:normal"><span style="font-family:Arial,Verdana,sans-serif;font-size:12px"></span></span></address></span></div>
</div></div>
<br><br><div class="gmail_quote">On Tue, Jun 10, 2014 at 6:28 AM, Guillaume Quintard <span dir="ltr"><<a href="mailto:guillaume.quintard@smartjog.com" target="_blank">guillaume.quintard@smartjog.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF"><div><div class="h5">
    <div>On 06/10/2014 03:07 AM, Hernán Marsili
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Hi,
        <div>
          <div>
            <div dir="ltr">
              <div>
                <div><span style="font-size:12px"></span></div>
              </div>
              <div><span style="font-size:12px">
                  <address><span style="font-size:small;font-style:normal"><span style="font-family:Arial,Verdana,sans-serif;font-size:12px"></span></span></address>
                </span></div>
            </div>
          </div>
        </div>
        <div>We are working on a VIDEO SITE for a sports sites.
          Currently working with Varnish 3.0.5. The average video size
          is 100mb. We have a 4gb malloc storage. </div>
        <div><br>
        </div>
        <div>Right now, we are handling mp4 as just a regular file. No
          problems so far. A couple of questions:</div>
        <div><br>
        </div>
        <div>1) STREAM. We tried this on the vcl but we don't see much
          improvement. Should we use it anyway?</div>
        <div><br>
        </div>
        <div>
          <p style="margin:0px;font-size:11px;font-family:Menlo">  if
            (req.url ~ "\.mp4") {</p>
          <p style="margin:0px;font-size:11px;font-family:Menlo">      
            set beresp.do_<b>stream</b> = true;</p>
          <p style="margin:0px;font-size:11px;font-family:Menlo">     
             set beresp.http.X-Cacheable-TTL = "stream";<br>
          </p>
          <p style="margin:0px;font-size:11px;font-family:Menlo">    }</p>
          <p style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"><br>
          </p>
          <p style="margin:0px;min-height:13px"><span style="font-family:arial;font-size:small">1) VARNISH
              STREAM BRANCH. We find a all branch of varnish for
              streaming. </span><span style="font-family:arial;font-size:small"><a href="https://github.com/mbgrydeland/varnish-cache-streaming" target="_blank">https://github.com/mbgrydeland/varnish-cache-streaming</a>.
              Does anyway knows if this is now part of Varnish 3.0.5 or
              Varnish 4?</span><font face="Menlo"><span style="font-size:11px"> </span></font></p>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
    </blockquote></div></div>
    You may have two problems: <br>
    - the fact that your file is being downloaded, meaning that only the
    client who triggered the backend request will profit from the
    streaming. This is solved in v4, and data will be send as soon as
    available, for all threads.<br>
    - the video metadata is at the end of the file, meaning that your
    clients must retrieve all the file before starting to read. You're
    probably in this case if the video takes a long time to read, even
    if cached.<br>
    <br>
    To mitigate the second problem, you may use qt-faststart
    (<a href="https://github.com/danielgtaylor/qtfaststart" target="_blank">https://github.com/danielgtaylor/qtfaststart</a>) to move the meta data
    at the beginning of the file, or switch to a chunked protocol.<br>
    <br>
    (hopefully, if per-request vmods calls come to fruition, or the vfp
    mature a bit more, we'll have a vmod to qt-faststartify files on the
    fly).<br>
    <br>
    Hope that helps.<span class="HOEnZb"><font color="#888888"><br>
    <br>
    <pre cols="72">-- 
Guillaume Quintard</pre>
  </font></span></div>

</blockquote></div><br></div>