

Since I always intend to rip aac audio data out of an mp4 container/video, I wrote a quick little script to do it. I can't believe something like this was so difficult and hidden for so long. Coupled with disabling video via -vn leaves you with a lone audio track inside an mp4 container. ffmpeg will write the audio data out as various supported codecs, but specifying copy leads a bit-for-bit exact copy of the stream. acodec copy: Copy the audio source as-is, here's where all the magic is. vn: Do not record (do not consider) video data. So, after installing ffmpeg, and having the ffmpeg accessible at the command line, I ran a command like this: ffmpeg -i videofile.mp4 -vn -acodec copy audiotrack.m4a Between Rudix, Homebrew, MacPorts, and Fink (does anyone even use fink anymore?), third party software is a snap to install. I absolutely wanted an as-is version of the audio extracted from the video.įirst off, it's pretty easy to install things like ffmpeg, mplayer, things built off them, and similar open source packages nowadays. I will expand on the question a bit and spell out the fact that I was already working with mp4 contained video/audio, so MP4 Video (.m4v) and AAC Audio (.m4a). I finally found the exact combination I needed, and I found it in ffmpeg. This is a little tedious, but it's really a much better subtitle experience. This will work in many apps, like VLC I think, but not Apple's apps or the ATV.Īnyway, you can then use another app called "Subler" to re-encode the subtitles as a "real" subtitle track (Tx3g format). Most apps (and the ATV) can do a better job at rendering them, so I recommend NOT choosing Burned In and leaving the subtitles in a "soft" format. This is "easy" and the subtitles will always be there, in every app (because it's part of the video itself).īut, I've found HB's subtitle rendering to be a bit ugly. This puts the subtitles as an image on top of the original video. For foreign-language DVD's, select your language (English) as the source, and you can set the subtitles to "Burned In". I'm going to use English as an example here, but adjust if you're trying to do this for another language. But, maybe sure the stereo track is FIRST, or the iPad won't play it (in Apple's app). If you also want to play them on an Apple TV, etc, in surround-sound, include a second audio track (AC-3 passthru is usually the best here).

If you also want to play your movies on your iPhone/iPad, you MUST include a stereo track. I think the iTunes preset includes this, but I wanted to highlight this important part. The hardest thing I found was getting surround-sound correct. You should be able to easily make files compatible with iTunes, VLC, etc. HB includes some Apple and iTunes presets.
