[NOTE: Starting this week, I have in-depth video training on Compressor 4 available to my Video Training Library subscribers. This title will be released in our store the middle of January. Click here to subscribe.]
One of the new features in Compressor 4.1 is hardware acceleration for some compression tasks. What hardware acceleration does is speed the entire compression process. And, what I’ve learned this week in working with the new Mac Pro, is that by changing a single setting in Compressor 4.1 you can reduce compression times by 75% and, in some cases, reduce compressed file size by half.
It’s called hardware acceleration. Let me show you how this works.
UPDATE: A NOTE ON HARDWARE ACCELERATION
One of the speed advantages of the iMac is that it uses an Intel technology called “QuickSync.” This is a special processor “engine” inside many consumer-grade Intel CPUs that accelerates H.264 compression for certain encoding settings; for example, when compressing for Apple devices, QuickTime or MPEG-4 movies using the H.264 codec. The Mac Pro Xeon CPU is considered “workstation-grade,” and doesn’t provide this hardware acceleration.
Hardware acceleration is a two-edged sword. It is MUCH faster than software encoding. However, it only yields image quality and file sizes equal to single-pass encoding. This will often be fine for movies that don’t contain a lot of movement, such as screen captures; or movies where getting it done fast is better than image quality, such as news or digital dailies. However, hardware compression is generally not the best choice for movies with lots of movement between frames or where you need the highest image quality with the smallest file size.
FIRST, SOME BACKGROUND
Hardware acceleration is enabled automatically within Compressor. If your system has the right set of chips, and you select the right compression setting, hardware encoding kicks in.
• Hardware encoding is available on all shipping Macs that use an i5 or i7, Sandy Bridge or Ivy Bridge processor; except the new Mac Pro.
• Hardware encoding is applied to QuickTime and MPEG-4 compression that uses the H.264 codec; but not to Blu-ray Disc compression.
• Hardware encoding cannot be used for multi-pass encoding. In fact, turning on multi-pass encoding turns off hardware encoding.
MPEG-4 SOFTWARE ENCODING
Here’s the clip we’ll use for our example. (Footage courtesy: Hallmark Broadcast Ltd. — www.hallmarkbroadcast.tv)
This is a two-minute clip, encoded using XDCAM EX, with an original frame size of 1920 x 1080, at 25 fps.
I created a new MPEG-4 compression setting and applied it to the clip.
Here is how I modified the settings:
When I compress the file:
MPEG-4 HARDWARE ENCODING
Back in Compressor, all the settings are the same, EXCEPT I turned off Multi-pass. This turns on hardware encoding and single pass compression.
I was fascinated by these results, so I did a couple of other tests, one with a dance clip with lots of movement and one with a screen capture clip with limited movement.
Lots of movement – A dance video
Limited movement – A screen capture movie
I would expect compression speed increases when hardware is involved. What I was not expecting was this much variation in data rates and file sizes. As the amount of movement increases, the data rate differences between the two files start to become equal. However, as the amount of movement decreases, hardware acceleration lowers the data rate which reduces file size, without doing much damage – if any – to the image quality.
NOTE: As I was researching my Compressor 4.1 training, I learned that when a clip has lots of movement, multi-pass encoding becomes the better option. As with all things, test this on your own projects.
The technique is absolutely worth testing on your own projects. The less movement you have between frames, the more you will benefit from hardware acceleration. In fact, I’m using a modification of this setting for my subscription videos. The differences in file size and bandwidth are amazing.
NOTE: As is typical with the H.164 codec in Apple Compressor, I did notice a decrease in chroma levels when using the multi-pass option. You can compensate for this by applying a color correction filter as part of the compression setting.
While this article was written and tested on a new Mac Pro, I learned after the fact that the Mac Pro does not support hardware acceleration. The speed differences illustrated here are the result of the native horsepower of the Mac Pro. However, the iMac and MacBook Pro laptops do support hardware acceleration. This article is accurate in terms of explaining hardware acceleration and when to use it..
Here’s an article I wrote that compares compression speeds between the iMac and Mac Pro, and also tests the differences between hardware acceleration and software encoding.
Final Cut Pro X 10.4
Edit smarter with Larry’s brand-new webinars, all available in our store.