Help - Search - Members - Calendar
Full Version: looking for a script compressing archived music from dvd to harddrive
Hydrogenaudio Forums > Hydrogenaudio Forum > General Audio
mapashito78
Hello all,

I have a bunch of dvds (+100) full of archived lossless music that I would like to compress into a lossy format. The music is archived in ape and flac formats, sometimes as separate tracks, but also with a cue sheet and a big lossless file. Instead of doing this manually using foobar2k, I would like to write a script that would create a mirror of the dvd on my harddrive containing the same folders as the dvd, but with AAC files instead of ape, flac, or whatever file type is in the original folder on the dvd.

The input would be something like:

DVD1\folder1\track1.flac, track.2flac, track3.flac and so on
DVD1\folder2\cuesheet.cue image.ape

and the output should be:

c:\DVD1\folder1\track1.aac, track2.aac, track3.aac and so on
c:\DVD1\folder2\track1.aac, track2.aac, track3.aac and as many tracks as there were in the cue sheet.

In other words, I would like to put the dvd in the drive, run the script and end up with a mirror folder of the dvd on my harddive containing the folders in the dvd and separate aac tracks, regardless of the original lossless formats on the dvd and whether the encoder finds a cue sheet and an image or separate tracks.

To be honest I have no idea what tools I need to use and what strategy I should follow. I think foobar2000 cannot do this, but maybe I am wrong. I would appreciate any help.

Thanks in advance!!
smok3
if you are talking about windows batch, there are some utilities that are scipatble:
1. maybe imgburn to get an iso to the drive.
2. something scriptable that could mount an iso as a drive (dunno)
3. foobar should be scriptable as well, so you process this new mounted drive..
N. maybe something that would wait in the background for drive to be alive to start working automagically, you can check my folenc.bat for some ideas, maybe; http://blog.somestuff.org/index.php?entry=entry070827-092557

anyway, most likely this is to complicated to be processed by a stupid batch script (you will end up rewriting the script instead of doing some work.)
mapashito78
I didn't know that foobar was scriptable. Then it shouldn't be a problem at all. Thanks!!!
mapashito78
Well, I am already having problems with the foobar command line. When I type something like:

foobar2000.exe /command:"Playlist/Create new playlist"

nothing happens.

foobar2000.exe /play

works correctly. Does anyone know where I can find a guide to the available commands? I am using version 9.4.2
mapashito78
I have found the solution. Version .9 uses the runcmd component. Now it works!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.