L'octidi 18 pluviôse, an CCXXV, Miscellaneous a écrit :> I've built some simple code on the excellent libvorbis API overview on > the xiph.org site, but the example relies on the ogg_packet struct for > final output and input to decoder, and shows now examples on how to do > without it.Why do you not want it? It is just a simple C struct to carry the packet's metadata.> oggpack_buffer comes from ogg/ogg.h, so I guess it may add some things > not native to "pure" vorbis.That looks like speculation.> Am I to understand that I am dependent on the ogg library to get data > in and out? And if not, where can I get the data along with the minimal > metadata I need? (bytes, granulepos?)libvorbis depends on libogg for some tasks, but that is its internal workings. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: Digital signature URL: <http://lists.xiph.org/pipermail/vorbis-dev/attachments/20170206/e5d9abde/attachment.sig>
On Mon, 2017-02-06 at 10:06 +0100, Miscellaneous wrote:> On Mon, 2017-02-06 at 09:58 +0100, Nicolas George wrote: > > > > L'octidi 18 pluviôse, an CCXXV, Miscellaneous a écrit : > > > > > > > > > I've built some simple code on the excellent libvorbis API > > > overview > > > on > > > the xiph.org site, but the example relies on the ogg_packet > > > struct > > > for > > > final output and input to decoder, and shows now examples on how > > > to > > > do > > > without it. > > Why do you not want it? It is just a simple C struct to carry the > > packet's metadata. > Ok. > > The RLP draft mentioned on the libvorbis docs page, are there sample > implementations (in C) of this yet anywhere? >Sorry that should say RTP, not RLP> And would such an implementation then also use this ogg struct as an > intermediary? > > > > > > > > > > > > > > oggpack_buffer comes from ogg/ogg.h, so I guess it may add some > > > things > > > not native to "pure" vorbis. > > That looks like speculation. > > > I didn't say it does, I said it "may" ;) > > Cheers > > > > > > > > > > > > Am I to understand that I am dependent on the ogg library to get > > > data > > > in and out? And if not, where can I get the data along with the > > > minimal > > > metadata I need? (bytes, granulepos?) > > libvorbis depends on libogg for some tasks, but that is its > > internal > > workings. > > > > Regards, > > > _______________________________________________ > Vorbis-dev mailing list > Vorbis-dev at xiph.org > http://lists.xiph.org/mailman/listinfo/vorbis-dev
L'octidi 18 pluviôse, an CCXXV, Miscellaneous a écrit :> > The RLP draft mentioned on the libvorbis docs page, are there sample > > implementations (in C) of this yet anywhere? > Sorry that should say RTP, not RLPI am not sure I understand exactly what you are asking, but libavformat has a RTP packetizer that works for both Vorbis and Theora, implemented in rtpenc_xiph.c. But this packetizer is meant for use in the RTP muxer of libavformat itself, and the RTP muxer relies on the packet's metadata, that, when it comes from libvorbis, is derived from the fields of the ogg_packet structure. Thus, you still need that ogg_packet structure anyway. Regards, -- Nicolas George