oggenc: add a page_duration option and deprecate the pagesize option
authorJustin Ruggles <justin.ruggles@gmail.com>
Sun, 30 Dec 2012 22:00:00 +0000 (17:00 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Tue, 8 Jan 2013 20:42:36 +0000 (15:42 -0500)
commit59220d559b5077c15fa6434e42df95f3b92f0199
treee4ea61c2df78db4a4bd9a59c8362c50f27c2f3dd
parenta6a3164b1399372dcf779643d7d605d7438c91b7
oggenc: add a page_duration option and deprecate the pagesize option

This uses page duration instead of byte size to determine when to buffer
the page. Also, it tries to avoid continued pages by buffering the current
page if there are already packets in the page and adding the next packet
would require it to be continued on a new page. This can improve seeking
performance.

The default page duration is 1 second, which is much saner than filling
all page segments by default.
doc/muxers.texi
libavformat/oggenc.c