IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Encoding/decodin the whole directory in batch mode, Wavpack or Flac frontends
crazyman
post Mar 23 2005, 09:27
Post #1





Group: Members
Posts: 92
Joined: 9-July 04
Member No.: 15216



Hi all,

I jumped from mp3 section into this, as I also keep lossless backups of my archive of CDīs on ext. HD, in case they may be damaged, lost or whatever.

For simplicity, I use frontend versions of Flac and Wavpack.

I have a simple question which has probably been raised in the past:

Can anyone advise how to do encoding/decoding of tracks, and not onlyof the last folder, but of the whole directory tree (f.i. Artists/Albums/tracks, so that the encoded files are created and placed in the same folders as the wav originals? Could be helpful to do the job overnight.

Many thanks for help.

Cheers,

Crzmn headbang.gif
Go to the top of the page
+Quote Post
mickywicky
post Mar 23 2005, 09:37
Post #2





Group: Members
Posts: 67
Joined: 10-January 05
From: London, UK
Member No.: 18958



QUOTE (crazyman @ Mar 23 2005, 09:27 AM)
Hi all,

I jumped from mp3 section into this, as I also keep lossless backups of my archive of CDīs on ext. HD, in case they may be damaged, lost or whatever.

For simplicity, I use frontend versions of Flac and Wavpack.

I have a simple question which has probably been raised in the past:

Can anyone advise how to do encoding/decoding of tracks, and not onlyof the last folder, but of the whole directory tree (f.i. Artists/Albums/tracks, so that the encoded files are created and placed in the same folders as the wav originals? Could be helpful to do the job overnight.

Many thanks for help.

Cheers,

Crzmn headbang.gif
*



Shell scripting is your best friend for this. But I assume you are on Windows? You might be able to do it with a batch file, but I do not know Windows enough to advise on that.
dbPowerAmp can recursively transcode its way through directories. Now if you are doing WAV -> lossless compressed such as FLAC, this is the app for you.
Go to the top of the page
+Quote Post
Synthetic Soul
post Mar 23 2005, 10:00
Post #3





Group: Super Moderator
Posts: 4887
Joined: 12-August 04
From: Exeter, UK
Member No.: 16217



I can think of three applications that may be of use.

Tangerine's Catwalk
"For transcoding lots of compressed files (i.e.: FLAC) to another format (i.e.: MP3)"
View history here.
Download here.

Case's Sweep
"Executes given command in all subdirectories"
Download here

Foobar
http://www.foobar2000.org/

I have used neither Catwalk or Sweep. A lot of people on the forum use Sweep for various things. Catwalk is newer, and more specific to the task. In the "history" link above Tangerine explains the other tools at your disposal for this.

I use Foobar. You could just load up all the cuesheets into Foobar and use Diskwriter to mass-transcode. Another benefit of this method is that tags will be preserved/created.

This post has been edited by Synthetic Soul: Mar 23 2005, 10:04


--------------------
I'm on a horse.
Go to the top of the page
+Quote Post
Egor
post Mar 23 2005, 12:37
Post #4





Group: Members
Posts: 826
Joined: 29-September 04
Member No.: 17374



I use my own script on Windows 2000:
CODE
@echo off
set encoder="C:\Program Files\flac-1.1.2-win\bin\flac.exe"
for /r "." %%d in (.) do (cd %%d & for %%f in (*.wav) do %encoder% "%%f")

Just copy it to a new text file and name that file with .cmd extension (e.g. "flac.cmd").
Then put the file in a directory with .wav files to encode and run (double click on) it.
All .wav files in this directory and all subdirectories will be encoded with default flac parameters.

And of course don't forget to change path to your flac.exe.

I also strongly recommend you to back up your discs by creating images of whole disc with cuesheet. There might be sound in pre-track gaps, you can hear it when your player shows "-00:05". When you extract to separate tracks, gaps are appended to tracks and therefore you will never see negative time again in case you wll need to restore your discs. So, your backup is not exact copy of the original disc despite you encode to lossless.
Go to the top of the page
+Quote Post
mickywicky
post Mar 23 2005, 13:56
Post #5





Group: Members
Posts: 67
Joined: 10-January 05
From: London, UK
Member No.: 18958



Egor, does that script work recursively? As mentioned above, I know little about scripting syntax on Win32 systems.
Go to the top of the page
+Quote Post
Egor
post Mar 23 2005, 14:39
Post #6





Group: Members
Posts: 826
Joined: 29-September 04
Member No.: 17374



QUOTE (mickywicky @ Mar 23 2005, 07:56 PM)
Egor, does that script work recursively? As mentioned above, I know little about scripting syntax on Win32 systems.
*

Yes, it goes into all subdirectories recursively. Compressed files will be in the same folder as original .wav files.

You can also use this script to encode with lame.exe, you just need to change it a little:
CODE
@echo off
set encoder="C:\Program Files\lame3.96.1\lame.exe"
for /r "." %%d in (.) do (cd %%d & for %%f in (*.wav) do %encoder% --preset extreme "%%f")


Edit: added 'recursively' for clarity. smile.gif

This post has been edited by Egor: Mar 23 2005, 14:53
Go to the top of the page
+Quote Post
mickywicky
post Mar 23 2005, 15:18
Post #7





Group: Members
Posts: 67
Joined: 10-January 05
From: London, UK
Member No.: 18958



Egor, very nice script. I'll save that one for the next time one of my colleagues asks.
Go to the top of the page
+Quote Post
tev777
post Mar 23 2005, 16:40
Post #8





Group: Members
Posts: 185
Joined: 10-October 03
From: Florida, USA
Member No.: 9235



CODE
@echo off
set encoder="C:\Program Files\lame3.96.1\lame.exe"
for /r "." %%d in (.) do (cd %%d & for %%f in (*.wav) do %encoder% --preset extreme "%%f")


As a footnote to this code, if you are using LAME you can also set the output filename to avoid having all of the files named as filename.wav.mp3.

CODE
@echo off
set encoder="C:\Program Files\lame3.96.1\lame.exe"
for /r "." %%d in (.) do (cd %%d & for %%f in (*.wav) do %encoder% --preset extreme "%%f" "%%~nf.mp3")


--------------------
--
Eric
Go to the top of the page
+Quote Post
crazyman
post Mar 24 2005, 12:47
Post #9





Group: Members
Posts: 92
Joined: 9-July 04
Member No.: 15216



QUOTE (tev777 @ Mar 23 2005, 07:40 AM)
CODE
@echo off
set encoder="C:\Program Files\lame3.96.1\lame.exe"
for /r "." %%d in (.) do (cd %%d & for %%f in (*.wav) do %encoder% --preset extreme "%%f")


As a footnote to this code, if you are using LAME you can also set the output filename to avoid having all of the files named as filename.wav.mp3.

CODE
@echo off
set encoder="C:\Program Files\lame3.96.1\lame.exe"
for /r "." %%d in (.) do (cd %%d & for %%f in (*.wav) do %encoder% --preset extreme "%%f" "%%~nf.mp3")

*


Guys,

big thanks for your valuable replies and comments. I will need to get some education in ways you proposed, and thatīs what I like on that.

Rgds,

Crzmn
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st December 2014 - 07:31