Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: RoadRanger on June 14, 2016, 07:22:25 PM

Title: AAC export
Post by: RoadRanger on June 14, 2016, 07:22:25 PM
I mostly video bands so often want to split off part or all of the AAC audio from my resultant MP4 files as a separate M4A file. Using Avidemux's "audio" "save" I'm told that it should be an AAC stream in a ADTS container but I haven't found any program (including Mediainfo and FFMPEG) that can work with this file? Obviously I can split off the the whole audio stream with FFMPEG but I often want to cut it up into individual songs so it would be ideal if I can do this somehow in Avidemux even if I have to use FFMPEG to put them in MP4 containers. Any suggestions?
Title: Re: AAC export
Post by: Jan Gruuthuse on June 15, 2016, 04:11:48 AM
Use audacity: drag and drop the edited video on to its workspace. This extracts the audio, the wave representation should make it easier to find your audio cutting point.
audacity (http://audacityteam.org/) (windows requires audacity FFmpeg import/export library, found on Optional Downloads).
This all if I understood you correctly: extracting interesting audio parts for audio player?
Title: Re: AAC export
Post by: RoadRanger on June 15, 2016, 08:46:56 PM
Mean just implied that the latest nightlies can do what I need - I'll try that tomorrow :) . I don't believe Audacity can do lossless "cutting" like Avidemux can do?
Title: Re: AAC export
Post by: RoadRanger on June 16, 2016, 04:21:08 AM
Yes! "audio" "save" does produce a playable file now of container type ADTS that is easily converted to a .m4a file using FFMPEG, here's the contents of my batch file:
ffmpeg -i %1.adts -vn -c:a copy -bsf:a aac_adtstoasc %1.m4a

:)
Title: Re: AAC export
Post by: Jan Gruuthuse on June 16, 2016, 05:42:40 AM
Quote from: RoadRanger on June 15, 2016, 08:46:56 PM
Mean just implied that the latest nightlies can do what I need - I'll try that tomorrow :) . I don't believe Audacity can do lossless "cutting" like Avidemux can do?
I believe it imports to kind of raw internal format on export it is re-encoded, then it depends on the export settings and the chosen format.
Title: Re: AAC export
Post by: AQUAR on June 16, 2016, 12:15:36 PM
@ RoadRanger

It always helps if you provide system information with any issue.
If you had included the version of ADM you were using to extract the aac audio - then we might just have said "try the latest nightly for aac/adts".
Title: Re: AAC export
Post by: alonectorch on July 20, 2016, 12:39:22 AM
I'm uh...painfully new and I'd like to know how to save only the audio from an mp4 that has the audio as aac. I saved it successfully but I guess there's no container or something cos nothing can play it.
Title: Re: AAC export
Post by: AQUAR on July 20, 2016, 12:10:40 PM
Try a nightly instead of a release version.
The container for the saved aac audio is ADTS and should be playable in various players (like VLC).
Title: Re: AAC export
Post by: Jan Gruuthuse on July 21, 2016, 04:59:01 AM
http://www.avidemux.org/nightly/