Results 1 to 2 of 2
Hi guys
I need your help please
I need to write a Bash script that will run on Linux to do the following:
1- Parse a folder tree (full of ...
- 06-07-2011 #1Just Joined!
- Join Date
- Jan 2007
- Posts
- 1
Converting audio archive from .WAV to .FLAC using a bash script
Hi guys
I need your help please
I need to write a Bash script that will run on Linux to do the following:
1- Parse a folder tree (full of .WAV files)
2- use an open source tool such as flac and ffmpeg to convert all the .WAV files in that folder tree to .FLAC
3- Place the .FLAC files in a newly created folder tree that is identical to the original
4- when naming the new .FLAC and their respective folders it will add a unique identifier to the file names i.e folder named 2582001 contains the files 2582001-1.wav and 2582001-2.wav will be recreated and will contain two .FLAC files with the names 2582001-REC05-FIL1.FLAC and 2582001-REC05-FIL2.FLAC. This structure of the new file names is [Recording Date - Recording Unit ID - File ID].
I guess the script will have to ask for both the Recording Date and Recording Unit ID, and it will automatically generate the file IDs based on how many files there are in each folder but it will add the "FIL" prefix to it.
ThanksLast edited by lithiumion; 06-07-2011 at 07:17 PM.
- 06-09-2011 #2Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
I'd recommend you try to code it yourself and post back when you run into problems with your script...you've got the logic worked out, just take a stab at writing it.


Reply With Quote