I have a lot of lossless 24-bit sessions on my windows machine, that I will be copying off to an external drive, but I wondered if anyone has scripted a way to go through a number of Audacity sessions, and convert them to the compressed OGG sessions instead?
That way I could hook the external drive up to my Linux box, have it make compressed versions of the sessions, and copy the compressed sessions back to the Winbox for reference. Rather than open each one, resave it, somewhere else, with a different name, etc. etc.
If you want to work on them again later it would be better to keep them in a lossless format, so perhaps you could just 7-Zip them.
If you are not intending to work on them again, it would be much better to just export each project in your preferred format.
I’m keeping the lossless files on an external drive. This does not stay attached to either machine.
I want to make OGG copies to put back on the Windows machine for reference, I suppose I could just make MP3’s, but I find the multitracks more useful, if I need the lossless files, I pull them back off the external drive.
I’d thought maybe I could just run some script on my linux machine, but I don’t know enough about the Audacity session files and data file formats to code it myself, something with perl, sox and oggenc I’d guess
It’s not that simple. Audacity projects are complex data structures. To convert a project to compressed project format you would need the script to correctly parse the AUP file (XML format) so as to reconstruct the audio tracks so that the tracks can be encoded. Try opening an AUP file in a text editor to see what the structure of an Audacity project looks like.