Page 1 of 1
variable bitrate using external tool for conversion
Posted: 04 Apr 2012 11:49
by neutrox
I found a script which does audio conversion but for constant bit rate conversion.
Anyone have a good solution to convert some .mp3 files to variable bit rate, 32-320 bit rate?
Re: variable bitrate using external tool for conversion
Posted: 04 Apr 2012 13:17
by highend
Conversion done by lame (an mp3 encoder)?
Just replace the parameters to encode in vbr instead of cbr...
Re: variable bitrate using external tool for conversion
Posted: 04 Apr 2012 18:03
by neutrox
$fopts = "-v";
instead of
$fopts = "-C 160.2"; ?
Re: variable bitrate using external tool for conversion
Posted: 04 Apr 2012 18:41
by highend
No.
http://sox.sourceforge.net/soxformat.html
so it's e.g. -C -4.2
but read the parameter list to get what you want.
Re: variable bitrate using external tool for conversion
Posted: 05 Apr 2012 17:09
by neutrox
mistake on quoting?
But I get a flash black DOS window popping after running
Code: Select all
run """C:\Programs\sox 14\sox.exe"" 'C:\mp3\Main Theme.mp3' -C -4.2 'C:\mp3\converted\Main Theme.mp3' rate -v 44100";

Re: variable bitrate using external tool for conversion
Posted: 05 Apr 2012 17:32
by highend
because you left out the $gopts parameter "-S"?
run """C:\Programs\sox 14\sox.exe"" -S ""C:\mp3\Main Theme.mp3"" -C -4.2 ""C:\mp3\converted\Main Theme.mp3"" rate -v 44100";
Re: variable bitrate using external tool for conversion
Posted: 05 Apr 2012 18:06
by neutrox
no...
I have put a lame_enc.dll into sox folder just in case. No effect.
Any other ideas?
Or tool?
Re: variable bitrate using external tool for conversion
Posted: 05 Apr 2012 18:51
by highend
My sox is a "with mp3" support compiled one. Don't know about yours.
Just use lame.exe if sox isn't working for you.