<div class="gmail_quote">On 30 August 2012 16:08, Camera Man <span dir="ltr"><<a href="mailto:i.like.privacy.too@gmail.com" target="_blank">i.like.privacy.too@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>

  
    
    
    
  
  <div style="direction:ltr" bgcolor="#ffffff" text="#000000"><div class="im">
    On 08/29/2012 11:53 AM, Mark Kenna wrote:<br>
    <blockquote type="cite">
      <div>Can someone tell me how a conversion for live streaming is
        possible? Also, I would be doing the file conversion dynamically
        in memory which means that I cannot just encode a file,
        re-position the MOOV atom and then stream.</div>
    </blockquote>
    <br></div>
    If you can estimate the needed size of the moov atom, you can
    reserve space with the -moov_size option (added in the last year, I
    think); this would remove the need for qt-faststart and friends, and
    you could do everything in one pass. (There will be wasted space for
    sure, but if your estimate is reasonable it will not be too bad)<br>
    <br>
    Do note, however, that ffmpeg will only write that MOOV atom after
    all the data is in the file, so it will not let you start streaming
    any earlier than you could with qt-faststart or mp4box.<br>
    <br>
    If you want immediate live streaming, perhaps HTTPLiveStreaming
    (HLS) will be better for you. If you want MP4 output, you'll have to
    finish making the file before starting to play it, regardless of
    whether it plays immediately when it starts streaming.<br>
    <br>
  </div>

<br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br>Ok - thanks for the info. I'm trying to implement HTTP live streaming for HTML5 (or at least determine whether it's possible at this point). Maybe I will try and use WEBM then?
<div><br></div><div>Thanks,</div><div>Mark.</div><div><br></div>