Added suggested output stream duration hinting. Uses output stream duration and bitrate as a hint for better filesize guessing. If stream bitrate is unknown a worst-case value is assumed.
Sidenote: Noticed during tests that most loss-less encoders don't set bitrate and thus the options_table.h default value of 200k is used in avi_write_header. Not sure whether to fix this per encoder or just clear bitrate somewhere in avcodec_open2 based on AV_CODEC_PROP_LOSSLESS. Tobias Rapp (4): ffmpeg: pass output stream duration as a hint to the muxer avformat/avienc: write chained master index only if std_compliance is normal or below avformat/avienc: add reserve_index_space option doc/muxers: add AVI muxer documentation doc/muxers.texi | 33 ++++++++++ ffmpeg.c | 9 +++ libavformat/avformat.h | 3 + libavformat/avi.h | 1 - libavformat/avienc.c | 108 ++++++++++++++++++++++++++++---- libavformat/version.h | 2 +- tests/ref/fate/mpeg4-bsf-unpack-bframes | 2 +- tests/ref/lavf-fate/avi_cram | 2 +- 8 files changed, 143 insertions(+), 17 deletions(-) -- 1.9.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel