> I have a very hacky tool called speexcat, designed to cut and stitch > speex files together, and modify things like author/title tags > without the need for decoding/re-encoding. If I were to polish it up > a little (a lot), and maybe implement the ultra-wideband -> wideband > stripping, would anybody honestly use it? If so, I'd be happy to do > so.I think it's something useful and that's currently missing. I'm not sure which of these functionalities fit into ogginfo (changing comments?), but ultra-wideband->wideband->narrowband would sure be interesting. About concatenation, I think eventually "cat" should work, but speexdec doesn't handle chained streams. Jean-Marc -- Jean-Marc Valin, M.Sc.A. LABORIUS (http://www.gel.usherb.ca/laborius) Université de Sherbrooke, Québec, Canada <p> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 242 bytes Desc: signature.asc Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20030218/d81c3c53/signature-0001.pgp
On Tue, Feb 18, 2003 at 09:06:16PM -0500, Jean-Marc Valin wrote:> BTW, when you have something working and stable, I could include it in > the main Speex distribution.Hmmm, define working and stable :) <braindump topic="speexcat"> It began as a merge between speexdec and speexenc from 1.0beta3, with the encoding/decoding removed, and simply piped in and out from ogg streams. I never expected it would work joining different bitrate/encoding streams, but just then I tested joining an 8000Hz narrowband stream with a 16000 Hz wideband, and the output sounds pretty sane. The interface is: peexcat --title "new title" --author "new author" \ file1.spx start_frame end_frame file2.spx start_frame end_frame ... Ideally, you should be able to specify the time as hours:mins:seconds.splitseconds rather than frame numbers (by bash you can just do $(((min*60+sec)*50)) but it's tacky). I discovered the magic number 50 somewhere as being the number of speex frames per second... is this a universal constant that can be guaranteed? It also does some black magic and contortion with granule_pos, so the XMMS player knows how long the file is and can seek without too much effort. I'll probably clean up speexcat first, and then get speexdec doing consecutive streams. The other reason for the creation of speexcat is that the XMMS plugin does not like seeking within anything except the first logical stream. I may pick up this as well as I haven't heard anything back from Jens and his site has disappeared. </braindump> Thanks for listening :) Comments welcome! Regards, Bernard. -- Bernard Blackham bernard at blackham dot com dot au -------------- next part -------------- A non-text attachment was scrubbed... Name: part Type: application/pgp-signature Size: 190 bytes Desc: not available Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20030219/a61bb392/part-0001.pgp
On Tue, Feb 18, 2003 at 06:09:43PM -0500, Jean-Marc Valin wrote:> Le mar 18/02/2003 ? 17:38, John Hayes a ?crit : > > If I encode something in ultra-wideband, can I decode it in wideband by > > chopping off bytes in every frame? > > All you have to do is use the --force-wb switch with speexdec. It will > decode as if the file were wideband, ignoring the ultra-wideband info. > It would also be possible to write a tool that strips off those bytes > from the file itself (making it a bit smaller) but such a tool hasn't > been written yet.I have a very hacky tool called speexcat, designed to cut and stitch speex files together, and modify things like author/title tags without the need for decoding/re-encoding. If I were to polish it up a little (a lot), and maybe implement the ultra-wideband -> wideband stripping, would anybody honestly use it? If so, I'd be happy to do so. Regards, Bernard. -- Bernard Blackham bernard at blackham dot com dot au -------------- next part -------------- A non-text attachment was scrubbed... Name: part Type: application/pgp-signature Size: 190 bytes Desc: not available Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20030219/c8f5a706/part-0001.pgp
BTW, when you have something working and stable, I could include it in the main Speex distribution. Jean-Marc Le mar 18/02/2003 à 20:57, Bernard Blackham a écrit :> On Tue, Feb 18, 2003 at 06:09:43PM -0500, Jean-Marc Valin wrote: > > Le mar 18/02/2003 ? 17:38, John Hayes a ?crit : > > > If I encode something in ultra-wideband, can I decode it in wideband by > > > chopping off bytes in every frame? > > > > All you have to do is use the --force-wb switch with speexdec. It will > > decode as if the file were wideband, ignoring the ultra-wideband info. > > It would also be possible to write a tool that strips off those bytes > > from the file itself (making it a bit smaller) but such a tool hasn't > > been written yet. > > I have a very hacky tool called speexcat, designed to cut and stitch > speex files together, and modify things like author/title tags > without the need for decoding/re-encoding. If I were to polish it up > a little (a lot), and maybe implement the ultra-wideband -> wideband > stripping, would anybody honestly use it? If so, I'd be happy to do > so. > > Regards, > > Bernard.-- Jean-Marc Valin, M.Sc.A. LABORIUS (http://www.gel.usherb.ca/laborius) Université de Sherbrooke, Québec, Canada <p> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 242 bytes Desc: signature.asc Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20030218/153d8510/signature-0001.pgp