|
From: <vo...@as...> - 2001-05-08 15:20:07
|
I've been working on adding support for the Ogg Vorbis format (see http://www.vorbis.com/ for more info) to the CVS version of sox. So far, I can use a vorbis file as input without any problems. I'm currently trying to decide how best to implement the output half of the vorbis driver, though. I need to be able to pass to the vorbis driver--in addition to the normal channels, bits, sample rate stuff--a value representing the desired target bit rate for the output. Vorbis files can encode with a variety of bit rates, with the usual tradeoff that high bit rates == higher quality, but bigger output files. Anyway, I can't see any way to pass this information to the vorbis driver using the current API sox uses to talk to the drivers. Does anyone (preferrably sox developers) have any advice? Is it even worth it to support encoding of vorbis files in the driver? It is very computationally expensive, and there are other encoders that are more suited to vorbis encoding. --- Stan Seibert |