Re: Container for existing raw aac files?
Reply #3 – 2021-10-18 12:21:30
As mentioned, ffmpeg will work, but I prefer to use
MP4Box ( downloads). I created a (windows) script a number of years ago to do this: :: Name: aac2m4a.cmd :: Purpose: Configures mp4box to package raw aac audio into m4a file :: Author: jaybeee :: Revision: June 2021 - v2 @ECHO OFF SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION :: variables begin with v :: set name of this script without file extension SET vMe=%~n0 :: set name of the parent directory where this script resides SET vParent=%~dp0 :: set location of mp4box ** CHANGE ME ** SET vmp4box="C:\Program Files\GPAC\mp4box.exe" :: call mp4box to place all raw aac files in current directory in m4a container and save to m4a directory MKDIR m4a FOR %%f IN (%*) DO %vmp4box% -add %%f "m4a\%%~nf.m4a" -new :: if you prefer to process the entire directory, then uncomment below command (remove ::), making sure to comment the above FOR command ::FOR %%f IN ("*.aac") DO %vmp4box% -add "%%f" "m4a\%%~nf.m4a" -new :: Finish ECHO Finished m4a creation :: pause can be used to view the extraction details PAUSE :END ENDLOCAL ECHO ON @EXIT /B 0 Copy and paste the above into a text file and rename it aac2m4a.cmd. Then drag and drop the aac file(s) onto the aac2m4a.cmd file and they'll be individually (losslessly) remuxed into a m4a container and placed into a m4a directory. Or, as you can see from the script, you can process an entire directory by double-clicking the aac2m4a.cmd after having made the changes to the script (uncomment one command and comment the other). Simple but effective.