Hi! OGG specification said that: - It is possible for a stream to consist of a single page. - Page can consist of multiple packets. Could anyone tell me: - Will logical bitstream of _one page_ (b-o-s and e-o-s at the same time) with a _few packets_ be correct according to the ogg spec? - And, if such logical (multipacket singlepaged) bitstream is correct, how can I generate it by using build in liboggz functionality (i.e. which flags combination should I pass to the oggz_write_feed())? Thanks. wbr, Nikolay V. Razbegaev
Timothy B. Terriberry
2010-Dec-01 13:21 UTC
[ogg-dev] Few questions about making logical bitstreams
> - Will logical bitstream of _one page_ (b-o-s and e-o-s at the same > time) with a _few packets_ be correct according to the ogg spec?No. From http://www.xiph.org/ogg/doc/oggstream.html : "The first page of an elementary Ogg bitstream consists of a single, small 'initial header' packet that must include sufficient information to identify the exact CODEC type." So the first page must be exactly one packet.