Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Audacity 1.2.x crash recovery utility
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
CoffeeBuzz
Apprentice
Apprentice


Joined: 15 Jun 2005
Posts: 269
Location: Canada Eh.

PostPosted: Fri Jan 06, 2006 3:38 am    Post subject: Audacity 1.2.x crash recovery utility Reply with quote

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
Back to top
View user's profile Send private message
secret_draft
n00b
n00b


Joined: 18 Apr 2006
Posts: 9

PostPosted: Tue Feb 06, 2007 10:35 pm    Post subject: Reply with quote

thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum