Feature request; page-size as a tuneable
It seems from observation, and from looking at the PacketWriter source that it will only flush pages when absolutely necessary, as per the constraints of the Ogg spec. There is also no (simple) means to inspect the state, controlling page-flushes from the outside.
For I.E. Vorbis, this can lead to multiple seconds of data per-page, which is a tad big for efficient seeking by a demuxer. (May have to decode-and-skip many packets to find the first packet with desired timestamp).
I'd like to see this tuneable somehow, either through making page-fill visible to the outside, letting the outside opportunistically control flushing, or through defining "target page-size" parameters (I.E. sum size of segments, or a limiting the delta absgp from previous page).
Nice idea, the ability to finish a page early. Btw, you don't need to most of the decoding work of a specific vorbis packet to see the number of samples it has, but yes, still a lot of copying involved.