Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Properly transcode FLAC to WAVE then encode with LAME (Read 3910 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Properly transcode FLAC to WAVE then encode with LAME

Hi,

Last year I asked many questions about how to encode and transcode. But, I don't manage to do what I plan properly.

First of all, let's say I've ripped a CD of mine in FLAC via EAC. The extracted FLAC files contain tags such as the name of the artist, the year and so on. I would like to transcode a resulting FLAC to WAV then to encode the later with LAME. If I use the following comand line in a BAT file :

flac -d %1
lame -b 320 -h --add-id3v2 %1 "%~dpn1.mp3"
pause


It doesn't work because the %1 doesn't refer to the transcoded WAVE file. Consequently Lame doesn't find this WAVE.

I also tried the simple comand line applied to the WAVE :


lame -b 320 -h --add-id3v2 %1 "%~dpn1.mp3"
pause


It works but the tags (artist, year..) are lost ! To sum up, how could I properly transcode the FLAC to WAVE without loosing the tags then encode it to 320 in one single BAT file ? In fact I don't particulary want to transcode from FLAC to WAVE but Lame doesn't seem to work when a FLAC is an input.


Properly transcode FLAC to WAVE then encode with LAME

Reply #1
hi there orgil.

First of all, let's say I've ripped a CD of mine in FLAC via EAC.
yeah, let's just say that..

if you want to encode to MP3 with the high quality LAME encoder, then (assuming you're on Windows) you could use the excellent LameDropXPd. it's a drog and drop GUI for LAME and will preserve all the tag info you have in your FLAC files during transcoding from FLAC to MP3.
you can get lamedropXP over at RareWares.

you also might want to reconsider your choice in encoding options. a constant bitrate of 320 kbps might not be better than e.g. -V2 to -V0 (high quality variable bitrate). you can read up all that in the forums. if you need any further help don't hesitate to ask.
Nothing but a Heartache - Since I found my Baby ;)

 

Properly transcode FLAC to WAVE then encode with LAME

Reply #2
You can do

flac -d "%1"
lame -b 320 -h --add-id3v2 "%~dpn1.wav" "%~dpn1.mp3"

or

flac -d "%1" -o "%~dpn1.wav"
lame -b 320 -h --add-id3v2 "%~dpn1.wav" "%~dpn1.mp3"

but: FLAC doesn't write tags to wav files, and LAME doesn't copy tags from input files to output.