[Ffmpeg-devel] Temp data file inside libavformat

Måns Rullgård mru
Thu Nov 24 09:48:02 CET 2005

Patrick Roberts <proberts9999 at yahoo.com> writes:

>   Is there any existing libavformat example for using
> a temp data file when writing?  I didn't find anything
> by grep'ing the source.  (There does seem to be an
> example in libavcodec.)
>   If anyone is interested in why or offering
> suggestions:  The reason I'm asking is I'm adding
> libavformat/movenc.c support for streaming 3GP and
> MP4, and the mdat atom (actual movie data) is
> currently written before the moov data (movie info). 
> The moov data depends on values generated when the
> packet pump calls write_packet, which writes the mdat
> data.  For streaming, the mdat atom needs to come
> after the moov atom.  I could write an external tool
> to run on the ffmpeg-generated 3gp file, but I'd

Isn't that what the qt-faststart tool included with ffmpeg does?

M?ns Rullg?rd
mru at inprovide.com

More information about the ffmpeg-devel mailing list