variable bitrate using external tool for conversion

Discuss and share scripts and script files...
Post Reply
neutrox
Posts: 194
Joined: 05 Mar 2012 15:23

variable bitrate using external tool for conversion

Post 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?

highend
Posts: 14940
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: variable bitrate using external tool for conversion

Post by highend »

Conversion done by lame (an mp3 encoder)?

Just replace the parameters to encode in vbr instead of cbr...
One of my scripts helped you out? Please donate via Paypal

neutrox
Posts: 194
Joined: 05 Mar 2012 15:23

Re: variable bitrate using external tool for conversion

Post by neutrox »

$fopts = "-v";
instead of
$fopts = "-C 160.2"; ?

highend
Posts: 14940
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: variable bitrate using external tool for conversion

Post 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.
One of my scripts helped you out? Please donate via Paypal

neutrox
Posts: 194
Joined: 05 Mar 2012 15:23

Re: variable bitrate using external tool for conversion

Post 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";
:eh:

highend
Posts: 14940
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: variable bitrate using external tool for conversion

Post 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";
One of my scripts helped you out? Please donate via Paypal

neutrox
Posts: 194
Joined: 05 Mar 2012 15:23

Re: variable bitrate using external tool for conversion

Post by neutrox »

no...
I have put a lame_enc.dll into sox folder just in case. No effect.
Any other ideas?
Or tool?

highend
Posts: 14940
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: variable bitrate using external tool for conversion

Post 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.
One of my scripts helped you out? Please donate via Paypal

Post Reply