jump to navigation

“Ultrafast” video compression with x264 July 19, 2011

Posted by Robert Harder in Utility.
Tags: , , , ,

The fastest video compression I have seen so far is using the x264 command line tool with its “ultrafast” preset. The resulting file has no audio, so it requires an extra step with QuickTime to finish the process. I recently review the compression software Elgato Turbo.264 HD Software Edition, and it was indeed faster than iTunes and QuickTime Player when converting to iPhone-compatible videos, but I noticed that x264 was faster still. Here are the steps you can take for “ultrafast” video compression.

Command Line

You will need to install x264, which I won’t go through here.

We will compress a copy of Big Buck Bunny for our example.

We use x264 to compress the video to an MKV file. It is possible to compile x264 with MP4 support, but my copy of x264 doesn’t have that compiled in. In this case I will compress to an iPhone-compatible size.

x264 --preset ultrafast --video-filter resize:480,270 
  -o x264-bbb.mkv big_buck_bunny_1080p_h264.mov

QuickTime Player 7

Now we move to QuickTime Player 7 (formerly QuickTime Player Pro). You’ll probably need to install Perian in order to read the MKV file with QuickTime. Open the source file and the MKV file in QuickTime Player 7. You may need to drag the MKV file onto the QuickTime icon to open it.

With the source video window in the front, select Show Movie Properties (Cmd-J) from the Window menu. Select the sound or audio track and click Extract.

With the new “Untitled” window in the front, choose Select All (Cmd-A) and Copy (Cmd-C) from the Edit menu.

With the MKV window in the front, click the left arrow |&lt to be sure you are at the beginning of the video, and select Add to Movie (Cmd-Opt-V) from the Edit menu.

You now have video and audio, but you probably do not want it in an MKV file. Next we will export to MPEG4 but without having to do any more encoding.

Select Export (Cmd-E) from the File menu. Select Movie to MPEG-4 from the Export popup list. Click the Options button. In both the Video and Audio tabs make sure you have Passthrough selected in the Video Format and Audio Format popup lists. Click OK and then Save.


It is a bit of a hassle, but you can get some screaming fast video conversions done this way. Using the ultrafast preset, I compressed a feature length movie in 6 minutes as opposed to the 32 minutes that iTunes took and the 26 minutes that QuickTime Player took.


1. SvenOnTech Reviews » Blog Archive » Elgato Turbo.264 HD Software Edition - July 20, 2011

[…] A note about the command line tool x264. This tool was blazingly fast with the ultrafast preset, but it does not process audio. That can be completed with QuickTime Player 7 (previously QuickTime Pro), but is not for the faint of heart. Instructions here. […]

2. bartending kit - October 17, 2014

bartending kit

Think Harder » “Ultrafast” video compression with x264

3. bestautumnn - November 29, 2015

Avdshare will introduce a step by step guide on how to compress MKV, MPEG, AVI, MP4, WMV, MOV, VOB, FLV, MPEG2 and more video with the help of the powerful Video Compressor

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: