How to convert the format of an audio track inside an MP4 video

.mp4aacadobe-premierevideo-encoding

I have an MP4 File with an AVC video track and an MP3 (not AAC) audio track.

Video: MPEG4 Video (H264) 1920x1080 [Video]
Audio: MPEG Audio 44100Hz stereo 192kbps [Audio]

While some video players are able to play the video with the audio as expected, Adobe Premiere Pro CS5.5 does not recognize it, since it expects MP4 files to have AAC-encoded audio tracks (as per the standard).

Right now I'm using a workaround where I use the MKV Toolnix to extract the audio track from the MP4 file (using an intermediate MKA file) then I just sync the audio file to the MP4 file in Premiere manually (as it shows the MP4 file as silent).

Is there a way to convert the MP3 track to AAC and keep it inside the MP4 file? If that is not possible, is there a command-line tool that can re-encode the MP4 with an AAC track to another file? I'm running Windows here.

Best Answer

ffmpeg should be able to do it. A command line something like this:

ffmpeg -i input.mp4 -vcodec copy -acodec aac -strict experimental -ac 2 -ar 44100 -ab 192k output.mp4
Related Question