CoffeeBuzz Apprentice
Joined: 15 Jun 2005 Posts: 269 Location: Canada Eh.
|
Posted: Fri Jan 06, 2006 3:38 am Post subject: Audacity 1.2.x crash recovery utility |
|
|
Not sure how useful this will be to the masses but after my band recorded over 2 hours of 'material' only to have my roomate unplug my laptop without saving the project while I was at class leading to one dead battery on one non-hibernating laptop (have to get that working again).
There happens to be a python implementation at:
http://www.mesw.de/audacity/recovery/
but manually its not too tricky (his script may or may not work). Heres a hacked script i used, and when I say hack I mean it...
The files were under, /tmp/audactiy1.2-me/project0/e00, this script was put in /tmp/audacity1.2-me simply because at the time i thought the au's wouldve spanned more "project" dir's (there were like 200 or so).
Make sure you have at least thrice the space available as a du -skh /tmp/audacity1.2-you/project or just remove the au's and wav's after you process them (not recommended).
Code: |
#!/bin/bash
cd project0/e00
for j in d*; do
cd ./${j}
#ls -tr lists in chronological order, VERY important
for k in `ls -tr *.au`; do
echo "Converting ${k}"
sox ${k} ${k%%au}raw
echo "Catting ${k%%au}raw"
cat ${k%%au}raw >> ../../../master.raw
done
cd ..
done
cd ../..
sox -V -f -l -c 1 -r 44100 -x master.raw master.wav
rm master.raw
|
Sox wonderfully saved me here. -V is verbose, -f means the samples are encoded as 'float' (i.e. not u-law or a-law etc), -l means each data sample is 32-bit long words, -c 1 means one channel (mono) and -r is the sampling rate. -x flips litte to big endian but shouldnt actually be needed. You might have to change these based on your recording settings.
To find these I simply converted one of the .au files to a .wav, played it in mplayer and simply mimiced what mplayer thought the format is (I'm terribly ignorant when it comes to audio encoding sorry, probably a better way!).
At least now instead of 2.5 hours of audio stored in 1700 files, I have one 1.5gig wav!! Sweet.
Anyway, hope this information is useful to some. _________________ HP Pavilion zd7260us
Xgl Overlay: http://svn.xgl-coffee.org/xgl-coffee/trunk
Xgl Forums: http://forums.xgl-coffee.org |
|