Convert 720p/ac3 mkv to 720p/aac iPad-compatible mp4/m4v on Mac OS X Snow Leopard

Jul 29, 2010 23:47


# Video is not transcoded, just demuxed/muxed ( Read more... )

Leave a comment

Comments 7

loganb August 1 2010, 00:54:41 UTC
Only four command line tools?! I am dubious it could be that easy…

Reply

tekman August 1 2010, 01:55:58 UTC
Pretty much. Turns out that the AC3 and h.264 tracks might have different identifiers, so you have to check to get the right TID first.

I threw together a shell script to automate the whole process. It's available as a public gist on github:

http://gist.github.com/502844

Reply

tekman August 1 2010, 02:02:50 UTC
It took 4m13s to process a 46m mkv. Much better than re-encoding through Handbrake.

Reply


MP4Box for OS X anonymous August 12 2010, 15:42:23 UTC
Very useful article. Have been trying to repackage some MKV files into iPad-friendly formats.

Can't seem to locate the OS X executable for MP4Box at the URL you listed above. Has it been removed? Thanks.

Reply

Re: MP4Box for OS X anonymous August 12 2010, 15:51:37 UTC
Found a copy of MP4Box 0.4.6-DEV compiled as Max OS X universal binary.

Check the download links at:
http://penguintool.blogspot.com/

Direct download URL:
http://www.exomanic.com/joomla/index.php?option=com_weblinks&task=view&catid=15&id=20

Reply


Just use homebrew tekman March 14 2011, 21:28:15 UTC
# GPAC has mp4box:
brew install faac a52dec gpac mkvtoolnix

Reply


m3f December 22 2011, 18:49:55 UTC
Damn... this script worked like a charm. Thanks for writing it!

Reply


Leave a comment

Up