How to convert a set of files with audacity?

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
sido-auda-city
Posts: 4
Joined: Fri May 22, 2015 4:28 pm
Operating System: Please select

How to convert a set of files with audacity?

Post by sido-auda-city » Fri May 22, 2015 4:35 pm

Hello guys
Let us just say that I have a folder that contains 30 music files. They are all in MP3 format. I would like to convert them to Advanced Audio Codec aka AAC. Converting each file alone will take a lot of time, so here is my question:
Is there a way to convert those 30 files in a quicker way like converting them all at once?
Thank you.

kozikowski
Forum Staff
Posts: 69374
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: How to convert a set of files with audacity?

Post by kozikowski » Fri May 22, 2015 5:19 pm

Audacity has a tool called "Chains" which is just the Batch tools everywhere else.

http://manual.audacityteam.org/o/man/ch ... ation.html

However, don't fall in love with the idea of doing them all at once. The first thing Audacity does is decompress the MP3 and convert each one into Super High Quality internal format. So four or five songs is going to go through all your memory—maybe sooner. If you do any effects, it's even worse because Audacity has to make UNDO copies.

You will have to install the FFMpeg add-on software to manage AAC. I'm pretty sure Audacity won't do that by itself.

Oh, and the result will be a lower quality than the originals. You can't convert between compressed formats without collecting the sound damage from each format.

Koz

kozikowski
Forum Staff
Posts: 69374
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: How to convert a set of files with audacity?

Post by kozikowski » Fri May 22, 2015 5:23 pm

I can't find the FFMpeg for linux, so you're on your own, or you may not need it. I can't tell.

Koz

sido-auda-city
Posts: 4
Joined: Fri May 22, 2015 4:28 pm
Operating System: Please select

Re: How to convert a set of files with audacity?

Post by sido-auda-city » Fri May 22, 2015 5:42 pm

So, you do not advice me to use the feature?

cyrano
Posts: 2629
Joined: Fri Apr 17, 2015 11:54 pm
Operating System: macOS 10.13 High Sierra

Re: How to convert a set of files with audacity?

Post by cyrano » Fri May 22, 2015 7:10 pm

Code: Select all

apt-get install ffmpeg
should do it on Debian. Change package manager part for other distro's.

kozikowski
Forum Staff
Posts: 69374
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: How to convert a set of files with audacity?

Post by kozikowski » Fri May 22, 2015 7:59 pm

should do it on Debian.
What he said.
Koz

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: How to convert a set of files with audacity?

Post by Gale Andrews » Sat May 23, 2015 1:43 pm

@sido-auda-city, please always provide the information from the pink panel at the top of the page. We have no idea what version of Linux or Audacity you are using unless you tell us.
sido-auda-city wrote:So, you do not advice me to use the feature?
Koz misinformed you. Chains in Audacity do not yet support AAC export.
cyrano wrote:

Code: Select all

apt-get install ffmpeg
Installing ffmpeg if it is not already installed on the system does not magically ensure Audacity can use it unless Audacity has been compiled with FFmpeg support and unless the version of FFmpeg or libav you install is compatible with Audacity.

See http://manual.audacityteam.org/o/man/fa ... html#linff.

However you can batch-convert with FFmpeg on its own. If you write a bash script something like this it should work (I think), assuming you want to use the FFmpeg native AAC encoder:

Code: Select all

#!/bin/bash
for %%a in ("*.mp3") do ffmpeg -i "%%a" -strict experimental  -acodec aac "newfiles\%%~na.m4a"
done
You can also use handbrake which has a GUI:

Code: Select all

apt-get install handbrake-gtk
(or use whatever package installer your distro provides).


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Post Reply