6

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.

1 Answer 1

8

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
5
  • 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? Sep 4, 2011 at 17:49
  • Works for me when I add -strict experimental immediately after aac.
    – Mr Alpha
    Sep 4, 2011 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! Sep 4, 2011 at 22:41
  • Newer versions tell to add -strict -2 and it works.
    – erik
    Feb 17, 2014 at 15:47
  • Is -strict experimental still required as of 2019? Feb 17, 2019 at 19:57

You must log in to answer this question.

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