Macro Manager & MKV (FFmpeg) - All audio tracks inside MKV - Encode to AAC - Export MKV with newly encoded aac audio and/or replace audio

I’d need help with Macro Manager to encode all audio tracks inside MKV to M4A/AAC (FFMPEG installed) and then write a new mkv with the edited audio (loudness change) and perhaps move the original file to a directory called ‘ENCODED AAC’.

At the moment, when processing a MKV with Macro manager, you get asked to choose which stream to process, as if you would import the mkv manually. It would be nice, that all audio streams of that MKV are being processed automatically with that macro setting one after another without asking the user.

This would need a ‘Export as MKV’ (with installed FFmpeg), i guess.

The newly MKV should have everything there was, tags and flags and video and unprocessed audio streams and replaced the audio streams that are being processed in Audacity.

Simply put, exchange audio tracks with newly encoded aac, write a new mkv with edited audio in it.

The edits done with Audacity cannot be done with any video converter, they simply don’t offer the possibilities of Audacity, because they don’t include audio conversion with all the features.

If it is not possible to export MKV, would it be possible to offer a Macro ‘Export as AAC’ in Macro Manager? Would be very handy if this has Custom FFmpeg export format options, like language, tag, bitrate, same samplerate as input, profile LC.

I make a similar request, but more simple: Please add a Macro command for “Export Audio” with all the options available.

Replacing the audio in a MKV file can be done by using “MKVToolNix”, queuing up all the files to replace the audio with the output of Audacity.

I wouldn’t bother the developers, if they could add this task (replacing the audio) in one export row, to not have to manually do that with many MKVs. Perhaps they’ll implement MKVtoolnix (the CLI, not the GUI version) anyway.

I was saying that you could use MKVToolNix. We should just focus on asking for a Macro command for “Export Audio” with all options, to any of the formats Audacity supports.

Thank you, i know MKVToolNix very well and use it quite often. Nevertheless, when Audacity is able to import MKV it could also export it and make the macro processing even quicker, when processing Videos/MKVs.

You are asking too much. Audacity processes audio and audio files, not video files. It will extract the audio from an audio & video file, but don’t expect it to create a video file. Try asking the makers of a video processing program to do the audio processing you want. See how far that gets you.

Well, i wouldn’t say asking too much, when Audacity devs managed to integrate ffmpeg to import audio, devs could certainly manage to export the edited audio into a new MKV by coyping the included media from original file to the new one and exclude the original audio with the newly the edited one. It’s just a matter of time and effort, and I’m just saying that this could be useful and time saving when there are a bunch of videofiles (MKV) to process with the same macro settings.