Scripting to compress sessions?

Help for Audacity on GNU/Linux.
Forum rules
ImageThis forum is for Audacity on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
LowBassDub
Posts: 12
Joined: Wed Feb 12, 2014 1:51 am
Operating System: Please select

Scripting to compress sessions?

Post by LowBassDub » Sat Dec 20, 2014 7:52 pm

Debian Stable - Audacity 2.0.1 & Win XP - Audacity 1.3.14-beta

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.

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Scripting to compress sessions?

Post by steve » Sat Dec 20, 2014 8:53 pm

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.

Audacity does not itself support scripting for projects, though I have found Actionaz quite easy to use with Audacity. https://wiki.actiona.tools/doku.php?id=en:start
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

LowBassDub
Posts: 12
Joined: Wed Feb 12, 2014 1:51 am
Operating System: Please select

Re: Scripting to compress sessions?

Post by LowBassDub » Sat Dec 20, 2014 10:05 pm

Didn't quite explain my self there.

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 :mrgreen:

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Scripting to compress sessions?

Post by steve » Sun Dec 21, 2014 2:32 am

LowBassDub wrote: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.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

LowBassDub
Posts: 12
Joined: Wed Feb 12, 2014 1:51 am
Operating System: Please select

Re: Scripting to compress sessions?

Post by LowBassDub » Sun Dec 21, 2014 3:11 am

I'm right in thinking that there is no Undo info in a session file, it's all the audio as-is at the time of saving?

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Scripting to compress sessions?

Post by steve » Sun Dec 21, 2014 11:18 am

Yes that's correct.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply