[Ffmpeg-devel] qt-faststart.c

Mike Melanson mike
Wed Apr 18 18:02:23 CEST 2007

Emanuele Fumagalli wrote:
>> define "x264 encoded" ? that's supposedly only the codec, not the file
>> format (or is it raw ?).
>> AFAIK it should work on any qt file regardless of the a/v encoding.
> I just use x264 2 pass encoding, generate a .264 thaw wil be muxed with
> Mp4box with an extracted aac track.
> Is maybe the muxing where I can set the header position?
> When I read different files encoded this way (the source file before
> encoding can be any format) with libavcodec and try to open with
> av_open_input_file and av_find_stream_info some of them require reading
> a position in the file which is not at the beginning, found the header
> open and then playing regularly.
> But in my case I need to stream a file like that and that could be a
> problem, so I just need the header at the beginning.

Do what you need to do to generate a .mp4 file. Then try streaming the
.mp4 file over HTTP. If the streaming does not work then you probably
need to use qt-faststart to move the mp4's header to the front. That's all.

	-Mike Melanson

More information about the ffmpeg-devel mailing list