Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 8 down vote accepted

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
share|improve this answer
Thank you, this is what I'm looking for. Unfortunately I ran into an error; when I use this command, I get the message "encoder 'aac' is experimental and might produce bad results. Add '-strict experimental' if you want to use it.". Adding "-strict experimental" to the command does nothing. Any suggestions? – ArmlessJohn Sep 4 '11 at 17:49
Works for me when I add -strict experimental immediately after aac. – Mr Alpha Sep 4 '11 at 20:03
Yes, this was it. I was adding it at the end of the command line. Thank you very much, your suggested solution is working perfectly for me! – ArmlessJohn Sep 4 '11 at 22:41
Newer versions tell to add -strict -2 and it works. – erik Feb 17 '14 at 15:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .