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: Multiple FLAC files > single MP3 (Read 3386 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Multiple FLAC files > single MP3

I just received my Creative MuVo 512MB portable from that Dell deal a few weeks ago, and I would like to convert a number of albums to mp3 for listening enjoyment.  The vast majority are DJ mixes and so, to avoid the whole gapless issue, my plan was to use the 'convert to single file' option of foobar to take care of this.

My problem, however, is that I'd like to convert a large number of albums at a time, say 100.  Start the process and go to bed, wake up with a bunch of converted albums to select from.  How can I do such a thing with foobar?  Or is it possible?  I'm aware of shntool, but I have a version of cygwin.dll on my system that conflicts with its behaviour for some reason...I haven't figured it out yet.

Josh - is there any hope of getting flac -d working with file globbing, so that decoding multiple files creates a single wave?

Multiple FLAC files > single MP3

Reply #1
You could make flac send the output to stdout as raw and redirect the stdout to a file. You could use a for command to run in on multiple flac files, and each time append the output to the same file. In my very brief test this seemed to work on WinXP:

Code: [Select]
for %a in (*.flac) do flac --force-raw-format --endian=big --sign=signed -c -d "%a" >> flac_output.raw
lame -r flac_output.raw lame_output.mp3


Multiple flac -> single mp3.

Multiple FLAC files > single MP3

Reply #2
Hmm.  That might work, although the new mp3 wouldn't be tagged unless I did some parsing magic on the directory name where the files were located and added that to the lame commandline.  Any other ideas?

Multiple FLAC files > single MP3

Reply #3
Quote
Hmm.  That might work, although the new mp3 wouldn't be tagged unless I did some parsing magic on the directory name where the files were located and added that to the lame commandline.  Any other ideas?
[a href="index.php?act=findpost&pid=317864"][{POST_SNAPBACK}][/a]


Foobar has an option in the menu to run convertion to a single file output.
Put all tracks you want in the playlist and select all of them and right click/convert/Run Conversion, single file output, and voilà.

Multiple FLAC files > single MP3

Reply #4
Quote
Quote
Hmm.  That might work, although the new mp3 wouldn't be tagged unless I did some parsing magic on the directory name where the files were located and added that to the lame commandline.  Any other ideas?
[a href="index.php?act=findpost&pid=317864"][{POST_SNAPBACK}][/a]


Foobar has an option in the menu to run convertion to a single file output.
Put all tracks you want in the playlist and select all of them and right click/convert/Run Conversion, single file output, and voilà.
[a href="index.php?act=findpost&pid=317946"][{POST_SNAPBACK}][/a]


Oh... sorry, i was in a hurry, , you have already done that... Well in that case a script would really work better...

Multiple FLAC files > single MP3

Reply #5
Quote
Quote
Quote
Hmm.  That might work, although the new mp3 wouldn't be tagged unless I did some parsing magic on the directory name where the files were located and added that to the lame commandline.  Any other ideas?
[a href="index.php?act=findpost&pid=317864"][{POST_SNAPBACK}][/a]


Foobar has an option in the menu to run convertion to a single file output.
Put all tracks you want in the playlist and select all of them and right click/convert/Run Conversion, single file output, and voilà.
[a href="index.php?act=findpost&pid=317946"][{POST_SNAPBACK}][/a]


Oh... sorry, i was in a hurry, , you have already done that... Well in that case a script would really work better...
[a href="index.php?act=findpost&pid=317949"][{POST_SNAPBACK}][/a]


I tested this one, and it seems to work... you only have to be careful to put a space between popd and ), or else the system will not find popd)  :
Taking the post of benc completing benc's post and It is supposed that every album has its own folder and the file is not in a read only folder...

for /r /d %i in (*) do ( pushd "%i" & (for %a in (*.flac) do flac --force-raw-format --endian=big --sign=signed -c -d "%a" >> flac_output.raw) & lame -r flac_output.raw lame_output.mp3) & popd )

*Issue this command on a root folder that has your albums folders...

Do some testing before to see if it works... ...