Hi all, [For the uninitiated: a "peeler" is a program that transforms a Vorbis stream into a smaller, (somewhat) lower quality Vorbis stream, and does so quickly, by just throwing out some data.] After having prototyped several peelers that aim to peel to a certain filesize, or to a certain quality, with mixed success, I've now taken a different route: a peeler that aims for the best speed/quality tradeoff. It proved to be easier to realize. Without further ado, find attached the source tarball for "Rhubarber", as I named it. Placed into the Public Domain, including the sogg (Simple Ogg) framework (easier to use than libogg, which it builds on). Have fun, <p>Segher <p>README for Advanced Peeler 1.0 (Rhubarber) ========================================= To build, just run make. Usage: cat in.ogg | apr > out.ogg <p>This program peels an Ogg Vorbis file down to a smaller size (because it can't peel it to a bigger size ;-) ). The algorithm it uses results in a file with an optimal file size vs. sound quality tradeoff, disregarding the size of the Vorbis headers and the Ogg packing (these proved to hard to factor into the formula, while still retaining adequate processing speed; besides, this size is constant for any given stream. You might run rehuff on the stream first, to losslessly make smaller headers). Have fun, <p>Segher <segher@xiph.org> <p> -------------- next part -------------- A non-text attachment was scrubbed... Name: apr.tar.bz2 Type: application/octet-stream Size: 3401 bytes Desc: apr.tar.bz2 Url : http://lists.xiph.org/pipermail/vorbis-dev/attachments/20030401/2394258c/apr.tar-0001.obj
Thanks for the app. And just in time too. I am about to get a laptop with less space on the hard drive, but I want to store my Oggs on it so I can listen to them on the go. This app comes just in time to be able to peal these files before I transfer them. Thanks again, Lorenzo E Pluribus Unix Segher Boessenkool staggered into view and mumbled:> Hi all, > > [For the uninitiated: a "peeler" is a program that transforms > a Vorbis stream into a smaller, (somewhat) lower quality Vorbis > stream, and does so quickly, by just throwing out some data.] > > After having prototyped several peelers that aim to peel > to a certain filesize, or to a certain quality, with mixed > success, I've now taken a different route: a peeler that > aims for the best speed/quality tradeoff. It proved to be > easier to realize. > > Without further ado, find attached the source tarball for > "Rhubarber", as I named it. > > Placed into the Public Domain, including the sogg (Simple Ogg) > framework (easier to use than libogg, which it builds on). > > Have fun, > > > Segher > > > README for Advanced Peeler 1.0 (Rhubarber) > =========================================> > To build, just run make. > > Usage: > > cat in.ogg | apr > out.ogg > > > This program peels an Ogg Vorbis file down to a smaller > size (because it can't peel it to a bigger size ;-) ). > > The algorithm it uses results in a file with an optimal > file size vs. sound quality tradeoff, disregarding the > size of the Vorbis headers and the Ogg packing (these > proved to hard to factor into the formula, while still > retaining adequate processing speed; besides, this size > is constant for any given stream. You might run rehuff > on the stream first, to losslessly make smaller headers). > > Have fun, > > > Segher <segher@xiph.org> > >--- >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 'vorbis-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.
Segher Boessenkool <segher@koffie.nl> said:> Hi all, > > [For the uninitiated: a "peeler" is a program that transforms > a Vorbis stream into a smaller, (somewhat) lower quality Vorbis > stream, and does so quickly, by just throwing out some data.] > > After having prototyped several peelers that aim to peel > to a certain filesize, or to a certain quality, with mixed > success, I've now taken a different route: a peeler that > aims for the best speed/quality tradeoff. It proved to be > easier to realize. > > Without further ado, find attached the source tarball for > "Rhubarber", as I named it. > > Placed into the Public Domain, including the sogg (Simple Ogg) > framework (easier to use than libogg, which it builds on). > > Have fun, >Without having checked yet... I wonder if this is more useful than last year's Segher-April-Fools-Day release (the 'integerised vorbis decoder, for people that don't remember). Mike --- >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 'vorbis-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.
hi, On Tue, Apr 01, 2003 at 05:16:52AM +0200, Segher Boessenkool wrote:> Hi all, >[technical blah blah]just tried your tool on http://www.ejays.com/Shroombab-Exclusive_DjMix_for_DrumnBassMixcom.ogg the result looks amazing, out.ogg is only 162K small, but if i try to play it with ogg123: # ogg123 out.ogg Audio Device: Advanced Linux Sound Architecture (ALSA) output Playing: out.ogg Title: Exclusive_DjMix_for_DrumnBassMixcom Artist: Shroombab Genre: Drum & Bass Date: 2002 Comment: www.drumnbassmix.com Encoded_by: www.drumnbassmix.com Encoded_using: oggdropXPd interface. Segmentation fault xmms also refuses to play the file but does not segfault. is this a bug in ogg123/xmms or in your new peeler? furthermore i can't hear any music coming out of my speakers ;) regards, wernfried <p> -- -> Fppmpppffpppmpfpffmffmppmpm Mfpmmmmmmfmm -> fpp.mfpmmmmmmfmm@fpfppffpmmpppff.ppmfmfmpm.mmmfmp -> mfpfmpfmppfm://fpfppffpmmpppff.ppmfmfmpm.mmmfmp/~mmmppmpppmpppppmffppfppp -> http://www.namesuppressed.com/kenny/ --- >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 'vorbis-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.
Hello Lorenzo, Tuesday, April 1, 2003, 8:16:29 AM, you wrote: LP> Thanks for the app. And just in time too. I am about to get a laptop LP> with less space on the hard drive, but I want to store my Oggs on it so I LP> can listen to them on the go. This app comes just in time to be able to LP> peal these files before I transfer them. LP> Thanks again, LP> Lorenzo LP> E Pluribus Unix hehe.... don't get rid of the old laptop just yet. :) --- >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 'vorbis-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.
Fixed a typo that causes all packets to be annihilated. Works good otherwise! diff -ur apr-1.0/apr.c apr-1.0-new/apr.c --- apr-1.0/apr.c Mon Mar 31 21:48:02 2003 +++ apr-1.0-new/apr.c Wed Apr 2 19:32:21 2003 @@ -46,7 +46,7 @@ void peel(ogg_packet *op) { - op->bytes = compute_optimal_factor(op); + op->bytes *= compute_optimal_factor(op); } <p><p>--- >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 'vorbis-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.