Hi, I need to know if it is possible to seek the Speex stream. I want to have an ability to seek in time, just like Vorbis does. Vorbis has function "ov_time_seek" and I want something like this from Speex. Is this possible? Thanks for any reply. Rado --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On Thu, Feb 26, 2004 at 03:20:01AM -0500, Jean-Marc Valin wrote:> > I need to know if it is possible to seek the Speex stream. I want to have an > > ability to seek in time, just like Vorbis does. Vorbis has function > > "ov_time_seek" and I want something like this from Speex. Is this possible? > > Thanks for any reply. > > It's not really a feature of Speex, but Ogg. So if you have a Speex > stream in an Ogg container, it's possible to seek. It's a bit harder > than for Vorbis, since Speex doesn't have the equivalent of libvorbis > (though eventually, libogg will do it), so you have to do it "by hand" > using libogg calls.Does Speex use samples == granules as vorbis does? And how difficult is it to ask libspeex for the samplerate? --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
> I need to know if it is possible to seek the Speex stream. I want to have an > ability to seek in time, just like Vorbis does. Vorbis has function > "ov_time_seek" and I want something like this from Speex. Is this possible? > Thanks for any reply.It's not really a feature of Speex, but Ogg. So if you have a Speex stream in an Ogg container, it's possible to seek. It's a bit harder than for Vorbis, since Speex doesn't have the equivalent of libvorbis (though eventually, libogg will do it), so you have to do it "by hand" using libogg calls. Jean-Marc -- Jean-Marc Valin, M.Sc.A., ing. jr. LABORIUS (http://www.gel.usherb.ca/laborius) Université de Sherbrooke, Québec, Canada -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 190 bytes Desc: Ceci est une partie de message numériquement signée. Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20040226/30e0e98e/signature-0001.pgp
On Thu, Feb 26, 2004 at 03:20:01AM -0500, Jean-Marc Valin wrote:> > I need to know if it is possible to seek the Speex stream. I want to have an > > ability to seek in time, just like Vorbis does. Vorbis has function > > "ov_time_seek" and I want something like this from Speex. Is this possible? > > Thanks for any reply. > > It's not really a feature of Speex, but Ogg. So if you have a Speex > stream in an Ogg container, it's possible to seek. It's a bit harder > than for Vorbis, since Speex doesn't have the equivalent of libvorbis > (though eventually, libogg will do it), so you have to do it "by hand" > using libogg calls.Hi, you can seek easily using liboggz :) http://www.annodex.net/software/liboggz/ open the file with mode OGGZ_READ|OGGZ_AUTO and it will transparently parse speex headers and allow seeking to milliseconds with oggz_seek_units (oggz, time_in_ms) Conrad. --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.