[Vorbis] Changing the bitrate (down) of an ogg file

Nic Watson nic at ghs.com
Mon Jan 10 09:18:48 PST 2005


I spent a couple days this Christmas break writing a Perl script to 
reencode my -q7 oggs to -q3 to work with the iRiver.  I added in a 
vorbisgain step, and I apply the replaygain setting to the intermediate 
wav, since the iRiver player doesn't pay attention to REPLAYGAIN tags.

It works on cygwin, though it wouldn't be hard to get working on Linux.

Yell if you're interested.

A peeler sure would be nice, though.

Nic

madsdyd at challenge.dk wrote:

> On Sat, 8 Jan 2005, Daniel Schregenberger wrote:
> 
> 
>>On Sam, 2005-01-08 at 13:19 +0100, madsdyd at challenge.dk wrote:
>>[...]
>>
>>>Could you perhaps recommend a "best" strategy for changing my ogg/vorbis 
>>>256 kbps files into (say) 128 kbps files? I am capable of hacking scripts, 
>>>and such, I am more looking for recommendation of the best tool: does sox 
>>>produce good results, would you rather recommend ogg123 to wav, then 
>>>oggenc, perhaps something entirely different?
>>
>>I'd probably use something like these two lines in a loop:
>>
>>oggdec -o - old.ogg | oggenc -o new.ogg -q 0 -
>>vorbiscomment -R old.ogg | vorbiscomment -Rw new.ogg
> 
> 
> Thanks a bunch.
> 
> Mads
> 
> P.S. And for the record, I am on a Linux machine :-)
> 


More information about the Vorbis mailing list