Any way to export:M4A/AAC in a chain?

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at 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.
scott967
Posts: 12
Joined: Tue Feb 05, 2013 9:06 am
Operating System: Please select

Any way to export:M4A/AAC in a chain?

Post by scott967 » Tue Feb 05, 2013 9:19 am

I suppose the answer is no, but thought I would ask. Maybe because it requires ffmpeg it can't be used as a command in a chain?

scott s.

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

Re: Any way to export:M4A/AAC in a chain?

Post by Gale Andrews » Wed Feb 06, 2013 2:15 am

scott967 wrote:I suppose the answer is no, but thought I would ask. Maybe because it requires ffmpeg it can't be used as a command in a chain?
Chains don't yet support FFmpeg formats (or uncompressed formats other than WAV) but we can add your vote for this.

If you want an old, experimental 1.3.14-beta build that does support M4A export in Chains (providing you have installed FFmpeg), please send me a private message (the "PM" icon to right of this post).


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

scott967
Posts: 12
Joined: Tue Feb 05, 2013 9:06 am
Operating System: Please select

Re: Any way to export:M4A/AAC in a chain?

Post by scott967 » Thu Feb 07, 2013 1:49 am

Thanks, I don't have enough posts to be trusted to PM. But since I have to use ffmpeg externally anyway (I was just muxing the audio from audacity into my final file) I experimented with exporting flac from a chain which I could encode back into AAC.

But in looking at how apply chain on files works, I see it doesn't recursively scan import folders so it isn't a useful as I thought it would be at first. I did notice what seems like a documentation bug. It seems like if I do a chain (with export) on either the current project or on files, the export is given the project/input filename and put into a "cleaned" subfolder. The documentation seems to say that's only for doing a chain on files. I also see that export file naming has a problem if the input file has a "." in the filename, and that adds additional work I would have to do to make it work.

So at this point, I think I will just individually open files and manually run the chain and then export AAC.

scott s.
.

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

Re: Any way to export:M4A/AAC in a chain?

Post by Gale Andrews » Fri Feb 08, 2013 12:03 am

scott967 wrote:Thanks, I don't have enough posts to be trusted to PM.
Sorry I did not notice. But I can e-mail instructions to you if you especially want to export M4A in a chain.
scott967 wrote:in looking at how apply chain on files works, I see it doesn't recursively scan import folders so it isn't a useful as I thought it would be at first.
.
We'll add your vote for that.
scott967 wrote:I did notice what seems like a documentation bug. It seems like if I do a chain (with export) on either the current project or on files, the export is given the project/input filename and put into a "cleaned" subfolder. The documentation seems to say that's only for doing a chain on files.
Yes, you're correct, though our assumption is that people using Chains on the project are mostly not exporting. We'll correct it as we are reworking the Chains documentation at the moment.
scott967 wrote:I also see that export file naming has a problem if the input file has a "." in the filename, and that adds additional work I would have to do to make it work.
Dots in file names are not recommended if you are giving the file to someone else or using it on the internet.

Can you be specific what the issue is, with steps to reproduce? I don't see a problem with a file with one dot in the name.

Thanks


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

scott967
Posts: 12
Joined: Tue Feb 05, 2013 9:06 am
Operating System: Please select

Re: Any way to export:M4A/AAC in a chain?

Post by scott967 » Fri Feb 08, 2013 8:14 pm

Gale Andrews wrote: Can you be specific what the issue is, with steps to reproduce? I don't see a problem with a file with one dot in the name.
The issue (and it's noted in the documentation) is that if there is a dot in a filename, export won't "auto-add" .m4a as a suffix, at least in "project mode" it prompts for a filename extension (in windows anyway). Granted I could use a regex file renamer to remove all dots, but don't really see why that should be required.

Ideally for me, I would be able to create a chain that allows export in any of the formats provided in the file export dialog, including lame and libfaac or whatever, and I could point the chain at a folder in which it would select all supported file types (without having to manually select) with option to recursively scan subfolders.

Thanks again for taking the time to explain. Given the current implementation, I think open file, apply chain, export file will be sufficient.

scott s.
.

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

Re: Any way to export:M4A/AAC in a chain?

Post by Gale Andrews » Sat Feb 09, 2013 1:50 am

scott967 wrote:
Gale Andrews wrote: Can you be specific what the issue is, with steps to reproduce? I don't see a problem with a file with one dot in the name.
The issue (and it's noted in the documentation) is that if there is a dot in a filename, export won't "auto-add" .m4a as a suffix, at least in "project mode" it prompts for a filename extension (in windows anyway).
That's not a problem with Chains, though, is it? You don't get held at a prompt if you apply a Chain to a project and export as FLAC? And the dot is still in the exported file name?
scott967 wrote: Granted I could use a regex file renamer to remove all dots, but don't really see why that should be required.
I hope that sometime we will have a checkbox that allows you to force the extension even if the file name includes dots. Until then, please add the extension at the end of the file name as suggested in the FAQ http://manual.audacityteam.org/o/man/fa ... extensions .
scott967 wrote: Ideally for me, I would be able to create a chain that allows export in any of the formats provided in the file export dialog, including lame and libfaac
Those are codecs rather than formats, but you can already export to MP3 from a chain now, and can export from a chain to M4A if you want to use the experimental build suggested.
scott967 wrote:I could point the chain at a folder in which it would select all supported file types (without having to manually select) with option to recursively scan subfolders.
OK, I already counted your votes for M4A export support in Chains and recursive search.

I'll also add a vote for a checkbox to select all files identified by the selected filter.

Thanks for your input.

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

LukasAV
Posts: 1
Joined: Sun Mar 15, 2020 3:03 pm
Operating System: Linux Mint

Re: Any way to export:M4A/AAC in a chain?

Post by LukasAV » Sun Mar 15, 2020 3:09 pm

What is the current status of this request?
I was just looking for exactly the same feature an could not find a chain option to export to M4A (only FLAC, MP3, Ogg and WAV) in version 2.1.2.
Would be great if this would be added.

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

Re: Any way to export:M4A/AAC in a chain?

Post by steve » Sun Mar 15, 2020 8:39 pm

LukasAV wrote:
Sun Mar 15, 2020 3:09 pm
What is the current status of this request?
You can export as M4A with the "Export2" command, but you have to supply the full file name and file path, so it is not suitable for batch processing with a simple Macro.

Probably the best, or at least the easiest solution for now, is to export as WAV and then use a batch file converter to convert to M4A/AAC.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Doely
Posts: 4
Joined: Thu Apr 02, 2020 5:29 pm
Operating System: Windows 10

Re: Any way to export:M4A/AAC in a chain?

Post by Doely » Thu Apr 02, 2020 5:54 pm

Just seeing if this has been fixed now? I've installed FFMPEG and have created a macro, but this won't export the file. If I select the Export2 function and rename .wav to .m4a I get an error on processing saying 'Could not export to M4A format!'

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

Re: Any way to export:M4A/AAC in a chain?

Post by steve » Thu Apr 02, 2020 9:09 pm

Doely wrote:
Thu Apr 02, 2020 5:54 pm
'Could not export to M4A format!'
Oops, yes you're right.
In that case your only option is to export in a supported format (I would recommend WAV), and then use a batch file converter to convert to M4A/AAC.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply