From f8ef91ff3d6bb83d601d816ef9368f911021c64b Mon Sep 17 00:00:00 2001 From: Clément Bœsch Date: Mon, 19 Aug 2013 16:05:31 -0700 Subject: movenc: add faststart option for web streaming MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Faststart moves the moov atom to the beginning of the file and rewrites the rest of the file after muxing is complete. Signed-off-by: Martin Storsjö --- libavformat/movenc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavformat/movenc.h') diff --git a/libavformat/movenc.h b/libavformat/movenc.h index d15d69ccaa..a6282e14c7 100644 --- a/libavformat/movenc.h +++ b/libavformat/movenc.h @@ -156,6 +156,8 @@ typedef struct MOVMuxContext { int max_fragment_size; int ism_lookahead; AVIOContext *mdat_buf; + + int64_t reserved_moov_pos; } MOVMuxContext; #define FF_MOV_FLAG_RTP_HINT 1 @@ -165,6 +167,7 @@ typedef struct MOVMuxContext { #define FF_MOV_FLAG_SEPARATE_MOOF 16 #define FF_MOV_FLAG_FRAG_CUSTOM 32 #define FF_MOV_FLAG_ISML 64 +#define FF_MOV_FLAG_FASTSTART 128 int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt); -- cgit v1.2.3