Log in

View Full Version : VBR MP3 & DTS, WAV command lines


sirt
9th April 2012, 16:07
Hi everybody,

I have several questions about compressions :

1) Let's say I own some WAVS extracted from some of my personal audio cds. Imagine I don't want to use EAC or any stuff like that. I want to encode the WAVS in MP3 VBR. Then, I got LAME.EXE (v 3.99) and I created a bat file with the code :

"C:\lame.exe" -V 0 -q O -of %1

I just drag the WAV in it and I obtain a MP3 VBR. Am I doing that correctly ? Is that comand line enough to get what I want ?

2) Let's say I own some DTS audio. I would like to encode it to WAV but I don't know how. Is there some comand-line that I could use trough a BAT file to do this ?

3) Sometimes I need to pass from WAV to FLAC so I decided to use that comand line trough a BAT file again :

"C\\flac.exe" for f in *.wav; do flac "$f" ; done

I think that's okay but how would you do to pass from a WAV to a FLAC ? I know I could simply work with EAC and use flac.exe from the beginning, but I'm just curious.

Chetwood
9th April 2012, 19:51
Use WinLAME for the WAVs.

sirt
9th April 2012, 19:54
What especially annoys me is the 1) : check this http://i39.tinypic.com/9a4bon.jpg

In spite I've setted -V O -q O I obtain -q 7, why ? I've tried -v0 -q0 , -vO -qO and -v0 only but it still the same.

sneaker_ger
9th April 2012, 20:51
No problem here:
"lame.exe -V 0 -q 0 input.wav output.mp3"

Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Mode : Joint stereo
Duration : 15s 24ms
Bit rate mode : Variable
Bit rate : 268 Kbps
Minimum bit rate : 32.0 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 492 KiB (100%)
Writing library : LAME3.99r
Encoding settings : -m j -V 0 -q 0 -lowpass 24 --vbr-new -b 32

sirt
9th April 2012, 21:12
Thanks sneaker_ger you are right, I tried your code and it works. Then the "-of %1" line I use is wrong ; the problem is that using your line "input.wav output.mp3" urges me to rename the track I want to convert but I would like the encode to start by dragging the WAV into the BAT file. That's why I tried that "-of %1" ; but it seems it is not working well like that, would you have a suggestion then ? Moreover does that -q (-q 7 or -q number ) really matter ?

Chetwood thanks for your answer but I'm interested in comand lines in fact, that's why I asked there for that.

sirt
9th April 2012, 21:40
Well I found the solution for the question 1) : lame.exe -V 0 -q 0 *.wav ; then you can simply drag the WAV audio into the bat and you well get a MP3 VBR with the same output name.

sneaker_ger
9th April 2012, 21:42
So then just don't use "-of", if you are having problems with it?

PUSHD %~dp0
if [%1]==[] goto :eof
:loop
lame.exe -V 0 -q 0 %1 "%~dpn1.mp3"
shift
if not [%1]==[] goto loop
(Allows drag&drop of multiple files)

sirt
9th April 2012, 21:53
Thanks for this which is very interesting. Anyway, mediainfo gives me those informations : -m s -V 0 -q 0 -lowpass 20 --vbr-old ; so it uses vbr old and not vobr new and ms instead of m j.

sneaker_ger
9th April 2012, 22:02
No problem here.

sirt
9th April 2012, 22:07
Yes you are right sorry, I just chanded lame.exe with the adress of my lame.exe ; in fact your code is similary to my line, but as you said you can encode multiple files. The only parameter than is not controlled is that lowpass, is it random ?

sneaker_ger
9th April 2012, 22:31
sampling rate/2

See lame's doc for more info.