NOTE: I’ve done a lot of webinars on video compression, but recently discovered I haven’t written a basic tutorial article covering video compression for the web. Click here for my most recent video compression webinar.
We compress video for the web because uncompressed video is far too big to download. Whenever we compress something, we need to remove image and audio data in order to make the resulting file smaller. Whenever data is removed, image quality suffers.
So, the goal in video compression is to make the file as small as possible, while keeping image (and audio) quality as high as possible. This is a constant balancing act and no one compression setting works perfectly for all files.
THE BASICS
File size is totally and completely dependent upon compression bit rate. The lower the bit rate, the smaller the file. A bit rate of 1 creates a phenomenally small file. However, such a low bit rate totally destroys the image.
The choice of codec also influences bit rate settings. For example, MPEG-2 requires higher bit rates than MPEG-4 in order to achieve the same level of quality.
DEFINITION: Codec (COmpressor/DECompressor) is the mathematics that the computer uses to convert analog light and sound into a form that the computer can record, store, and playback. By far, the most popular codec today is H.264, which is often called MPEG-4.
Image quality is based upon balancing the bit rate against the final compressed frame size, frame rate, and the amount of movement from one frame to the next. The larger the frame size, the faster the frame rate, or the more movement between frames, the higher the bit rate necessary to preserve overall quality.
For example, a 320 x 240 still image can be compressed to virtually nothing, while a 1920 x 1080, 60 frames per second handheld dance video is gonna be huge, no matter what you do.
WHAT DOESN’T MATTER
Several factors that you think might affect final image quality or file size really don’t matter. For example, the file size, in bytes, of the source file really doesn’t matter. Whether your source files is 20 GB or 200 GB doesn’t matter when you are compressing the file. Strange, but true.
Also, within reason, the frame size, frame rate, or codec of the source image doesn’t matter as much as the final, compressed frame size, frame rate or codec
COMPRESSING VIDEO
Whether you are running Compressor 4, Compressor 3, Telestream Episode, Sorenson Squeeze, or any other compression software these settings, and their rationale, remain the same. I’m going to illustrate this process using Compressor 4.
The Compressor interface consists of five windows, starting in the top left and rotating clockwise:
To add a file for compression, click Add File in the top left corner. (You can add as many files at a time as you want.)
Once the file is added, select the task tile (the rounded rectangle containing the small image of the video) to display the movie in the Preview window.
The Preview window allows us to view the video, set an In or out to compress only a range of the video, review or add markers, and, in general, make sure that the file we are compressing is the file that we actually WANT to compress.
The easiest way to compress a video is to work with one of Apple’s settings. For example, enter “iphone” in the search box at the top of the Settings window and the three Apple presets for the iphone appear. There is nothing wrong with using a preset and its a great way to get started.
To apply a preset to the clip, drag the preset from the Settings window and drop it on top of the video in the task bar.
At this point, you can skip down in this article to “Geometry Tab.”
CREATE YOUR OWN PRESET
In this article, I’ll explain how to create a basic compression preset. I’ve already written about how to change frame rates, add watermarks and other effects, and how to change image sizes. (I list where to find these articles at the end of this article.)
To create your own compression setting, click the Plus button in the top right corner of the Settings window.
For web video today, the best option for compression is MPEG-4, so select that.
This opens a new compression setting into the Inspector, where we can customize it.
Before you do anything else, give your new compression setting a name and description. Don’t be fancy, the best settings are those that are clearly defined and described.
ENCODER TAB – VIDEO
While there are a lot of potential choices, when it comes to simple video and audio compression you only need to adjust two tabs: Encoder and Geometry.
NOTE: If you are compressing video solely for YouTube, ignore this step and search for “YouTube,” in the Settings window. How to use the YouTube setting is described here.
The Encoder tab is where we adjust the compression settings themselves. If the word “Encoder” does not appear near the top of the Inspector, click the second tab in from the left to display it.
Here’s a quick explanation of the top settings:
Video Compression. In the past, lots of time was spent debating whether to use H.264 Baseline or Main Profile. However, recently, the industry has standardized on H.264 Baseline. Leave this setting alone.
Frame rate. If you shot 60 fps, set this to 30 fps. If you shot 59.94 fps, set this to 29.97. If you shot any other frame rate, leave this setting alone.
Keyframe interval. If you have lots of movement in your video, set this to two times your frame rate. If you have limited movement in your video, set this to five times your frame rate. The lower the keyframe interval, the larger your file size, but the better your image quality will be for pieces with lots of movement. I generally set this to 120 for my movies.
Multi-pass. I tend to think multi-pass yields better quality with smaller file sizes. But it also takes longer to compress. Do a test for yourself. Compress a short video with this on and a second version with it off. Compare how long it takes to compress, image quality, and file size. Pick the option that works best for you. I tend to leave it checked.
Bit rate. This is the crux of compression and every movie is different. However, in the interest of giving you someplace to start, here are four settings you can use as starting points for your own compression.
IMAGE SIZE BIT RATE
480 x 270 500 Kbps
640 x 360 750 Kbps
960 x 540 1250 Kbps
1280 x 720 1500 Kbps
Currently, I don’t recommend putting 1920 x 1080 images on the web because both the image and file size are too big. This restriction will change in the future, but for now, huge file sizes like this tend to cause very choppy web playback.
ENCODER TAB – AUDIO
If you are only compressing video, uncheck Audio Enabled.
These default settings create a very high-quality stereo clip. My recommendation is to leave these alone, unless you don’t need stereo. For example, one person narrating a video can easily be compressed as Mono and your audio file sizes are reduced by 50%, with no loss in quality.
However, for my audio podcast, I use the settings illustrated above, because the human voice can be compressed smaller than music. These settings reduce my audio files significantly, without damaging aural quality.
ENCODER TAB – STREAMING
The settings in the Streaming tab are fine as is, don’t touch them.
GEOMETRY TAB
The Geometry tab controls the size of your final, compressed image. Again, don’t worry about the size of the original image, you only need to specify what you want it to become.
The default setting for this window creates an image which is 640 x 480, which is wrong for just about everything.
My recommendation is to create all your videos at 1280 x 720 or smaller. In this case, you select the image size you want from the Dimensions popup menu. To create a different image size, select it from the Dimension popup menu.
The Pixel Aspect should be changed to Square.
NOTE: Adjusting Cropping, at the top, allows you to remove elements from your image, exactly as we would do in our video editing software. Padding, at the bottom, allows you to add black to the top/bottom of an image to convert 4:3 to 16:9 (called “letter-boxing”), or add black borders to the sides of an image to convert 16:9 to 4:3 (called “pillar-boxing”).
When you are happy with your settings, click Save at the bottom. (You can modify these settings at any time, by selecting the preset in the Settings window, which reloads it into the Inspector.)
Your newly-created setting now appears in the Custom folder inside the Settings window.
To apply it to a clip, drag the setting from the Setting window and drop it on top of the video you want to compress in the Task window at the top.
Then verify you have the correct destination (middle column) and file name (right-hand column).
CREATE A TEST MOVIE
Before you spend time compressing your complete video, make a point to create a short test movie.
The hardest part of any video to compress is where the action is moving. Movement is far harder to compress than stillness. So, in your movie, find a 2-4 second section where things are moving AND you care about image quality. Set an In (“I”) and an Out (“O”) to mark a test section. Then, apply your compression setting and compress the short segment. (You can also move the In and Out by dragging their icons.)
Because this test clip is short, it will compress quickly, allowing you to check image and audio quality without wasting a lot of time. This also allows you to see that your settings are correct and the final compressed version looks great.
If the test movie doesn’t look great, either increase the bit rate or modify the image size. I should also probably mention that you should check your other settings to be sure you don’t have an accidental typo.
Once you are happy with the look of the short test movie, drag the In to the far left and the Out to the far right to select the entire movie.
STARTING COMPRESSION
To start compression, click Submit in the lower right corner of the Task Window, then click Submit again when the smaller window appears.
A NOTE ON COMPRESSOR
Compressor, the application, is only a front-end to a background process. This means that once you click “Submit,” you can quit Compressor, as all the compression actually happens in the background. Compressor does not need to be running for you to compress a file.
OTHER READING
I’ve written about Compressor a lot. Here are some relevant articles:
SUMMARY
Video compression is central to all the videos we create. Pick a video compression program that meets your needs and spend time learning it. Creating great-looking video is an essential skill today. COMPRESSING great-looking video will guarantee you work a long into the future.
Visit our website to see Final Cut Pro Training & more!
44 Responses to Compressor 4: Compress Video for Web
Newer Comments →Hi Larry – what settings would you recommend for compressing videos for universal download from the web, ie. best size and format for playback on tvs, portable devices etc?
Thanks
Grant
Grant:
There is no “BEST” – in fact, web browsers don’t even support the same codec. Firefox, for instance, won’t play MPEG-4 movies.
For IOS devices, you’ll need to use HLS encoding, which requires your webmaster to sense whether a iOS device is connected to your server. Here’s an article with more info: http://www.larryjordan.biz/basics-of-http-live-streaming/
Bit rate is also dependent upon image size. The bigger the image, the higher the bit rate.
Basically, you need to create multiple versions if you are streaming. If you are simply downloading, create MPEG-4.
Larry
A blog article about software without a link to the software?…. Wow.
@James: for the uninitiated… https://www.apple.com/finalcutpro/compressor/
@Larry: Thanks so much, this is exactly what I needed to get started!
I am trying to compress a 45 min. HD video. When I use quick time movie it takes about 29 minutes to get a pretty good looking copy to burn to dvd but when I use compressor it takes about 17 hours. What’s the deal? Compressor looks a little better but not that much. Am I doing something wrong. I am using the setting 60 min. h264 at 10.3Mbps.
Rick:
That is a SERIOUSLY fast data rate? What are you compressing this for? Are you resizing the video? Have you applied any filters? Single, or multi-pass?
I generally budget 2x real time for H.264 compression on a current issue computer. So, yes, I would agree with you that setting is out of whack.
Larry
I am just about to buy Toast Titanium 11 Pro for burning Blu rays disks for my clients. I have searched and searched for info on this product and the reviews all seem bad. Is there any other way to burn 1080p files using final cut studio 2 or Adobe with a price tag of $2300.00. Can I burn them using a compressor file? And if so would I use QT apple codec pro res 422 or MPEG 2 = MPEG 4-QT AIC HD 1080i – QT DVCPRO HD 1080i60 – QT HDV 1080i60. I mean really, I guess my program is 2008 but it seems like it should be a lot simpler than this to burn a 1080i 16×9 hi quality blu ray.I guess final cut studio 3 has the ability to burn blu rays but it is no longer available. I just want it to look like the original footage and be 16 bit if possible. not 720p at 8 bit. what would you suggest? Oh yea, thank you for responding with a understandable answer. I did not mean to take so long to respond.
Rick:
The short answer is that you can’t do what you want to do without spending some money.
Macs have never supported Blu-ray natively, You’ve always needed to buy additional software or hardware for both burning and playback. (Yes, we can create AVCHD discs, which are a lower bit rate version of Blu-ray, but they can only run 20 minutes.)
Video is 8 bit, 10-bit and 12 bit. 16-bit only applied to audio. ALL compressed formats are 8-bit, including the H.264 codec that Blu-ray uses. So, 8-bit is the best you can achieve.
If all you need to do is burn a single movie to a Blu-ray Disc, you can use Apple Compressor 3.5 or later. You will need Blu-ray burner hardware and the drivers that come with it. (I’ve heard good things about Blu-stor drives.) If you need to author multiple movies to a single disc, then you’ll need a authoring program such as Adobe Encore, which is part of the Premiere suite. The current version of Encore is CS6.
ALL Blu-ray Discs use the H.264 codec for compression, any other codec creates files which are too bit. So, master your movie using ProRes, then compress the movie into Blu-ray using H.264. Virtually all compression programs – Compressor, Episode, Squeeze, Adobe Media Encoder – should support creating the Blu-ray file.
Larry
Larry, I’d like to get around to creating blu-rays with a few years’ worth of HD (1080i) video from various cameras I’ve owned. Some of the files are in MPEG-2 and a lot are in H.264@10Mbps. I’m not averse to shelling out the money for FCP and Compressor (I assume I would need both?), but can these two programs handle these types of files and make decent looking blu-rays? I’m not sure if the content type makes any difference…a lot of the footage is family vacations, but some is high school sports (basketball and hockey)
Mike:
If the movies already exist, you don’t need Final Cut, but you do need Compressor.
H.264 is a standard for Blu-ray, but the MPEG-2 videos need to be converted (transcoded) to H.264 in order to play on a Blu-ray Disc. Keep in mind that Compressor will only burn one movie per Blu-ray Disc. If you need to author a disc, you’ll need to use an application like Adobe Encore.
And, you are correct, the content is not relevant to the technical side of burning the Blu-ray Discs.
Larry
Larry, thanks so much. What I’d like to do is be able to do is place a number of clips onto a single blu-ray disc (although I’d need to do this several times, given the volume of content.) I’m not interested in any sort of sophisticated menus. In fact, I don’t need any menus at all. I’d be content if it was set to auto-play. I’d just like some chapter marks, so we can advance quickly through the clips. I assumed I could accomplish such a task through FCP X, but maybe I’m mistaken?
The files I already have in H.264@10Mbps…is that an adequate speed for blu-ray content? I think those files were transcoded by my son from the original MPEG-2 files. I’m not sure what he used, but it was NOT Compressor. I can probably track those files down if need be. Am I better off dumping all of the MPEG-2 files into Compressor or is it okay using a mix of H.264 and MPEG-2?
Mike
Mike:
Compressor won’t burn the type of disc you are thinking about. It only burns one movie per disc. You’ll need to look at a different alternative – for example, Roxio Toast.
As for MPEG-2, Blu-ray does not support that format, you’ll need to convert it to H.264.
As for bit rates, 10 mbps is low for Blu-ray. For HD material it starts at 25 mbps.
However, as with all things, test and see what works for you.
Larry
Thanks, Larry.
Eh…that news is a bit disconcerting. The reports I have seen about Toast have been mediocre at best. I was a longtime user of DVD Studio Pro and was hoping for something similar in the Apple ecosystem for HD projects.
So your advice would be to get Compressor and use that to transcode the MPEG-2 files and then drag the resulting H.264 clips into Toast?
Mike
Mike:
Well, kinda. You are right DVD Studio Pro only creates SD DVDs, not HD DVDs. So that’s out. Adobe Encore creates by SD and HD DVDs, but is a fairly high-end package. Roxio Toast is in the middle. Less expensive than Encore, but still supported, unlike DVD SP.
Toast also does lots of different stuff. I’ve only used it to burn DVDs, but it will burn multiple movies to a Blu-Ray Disc. Keep in mind, by the way, that you need to purchase an external Blu-ray Disc burner. You can’t burn true Blu-ray Discs using the internal SuperDrive on many Macs.
You can use any software you want to do the transcode – even Toast. Once they are compressed, Toast SHOULD handle everything else.
Larry
Thanks…you have been a wealth of information. It’s not that I am unfamiliar with Toast. I owned it years ago, but only used it to make CD’s of bootleg concert recordings I made in college. 🙂 However, I have never used it for DVD’s, much less Blu-ray. The upside is that it’s a relatively inexpensive piece of software, so if it doesn’t work out, it’s not a huge loss.
I was already aware of the need to buy an external Bly-ray burner, so that is not a problem. Are you partial to any type of burner or, more importantly, blank Blu-ray media?
Mike:
I’m partial to Verbatim media and Bruce Nazarian once recommended BluStor burners. I respect Bruce’s opinion.
Larry
I’ve had all sorts of trouble getting my 29.97 Kickstarter Pitch out of FCP7 and uploaded to Kickstarter (has to be a direct upload, not a YouTube embed). Someone suggested keeping sequence settings as is, making a self-contained QT movie and then putting through compressor – it’s my first time with compressor and your articles are so helpful!
Kickstarter prefers H264 and bitrate at least 1500. I have it set at 2000 (pitch is under 4 mins), deinterlace at “better” setting, with audio as stereo and 320 as target bits.
Wondering which H264 option I choose (preset choices are Apple Device – does a PC work too?, BlueRay and DVD). Or choose MPEG $ as you suggested > Web streaming > not sure what rate it should be at?
I’m the director and while I know some tech stuff I’m a little baffled here. Have tried five times and each one fails on upload.
Delaying me from submitting my project for four days. Help!!!
Claire:
Hmm… I’m sorry for the problems you are having.
Exporting as a self-contained QuickTime movie from FCP 7 is the best. Continue to do that.
Follow the article instructions above and create a custom MPEG-4 preset, using the H.264 codec. A bit rate of 2,000 is fine. You can set the audio bit rate at 128 for a stereo clip. (An Apple iPhone preset also works on PCs, but the bit rate will be a bit low for 720p video.)
Let us know if you continue to have problems.
Larry
thank you – it worked!
Love your newsletter – thank you again.
PHEW!
Larry, thanks much for your previous advice. I picked up Toast 11 and a Blu-ray burner and was pleasantly surprised at the quality…even with 4+ hours of video on a single layer Blu-ray disc.
In terms of transcoding my MPEG-2 files, I tried MPEG Streamclip, which apparently hasn’t been updated in two years and is still a 32-bit app. It took over two days. Then I tried the latest version of Handbrake and that accomplished the same task in about 6 hours. Would Compressor give me faster transcodes or better quality than what I am using now?
One other question I have. A family member, having seen my Bllu-ray discs, has asked me to do something similar with their home videos. They are in a format I have never seen before (.m2ts) It looks like I can import these into iMovie. The question is, what do I need to do from there? Just export it as a QuickTime file? Would I benefit from using Compressor with these file types? Also, is there additional benefit to using FCP X for this project instead of iMovie if I am just trimming clips and splicing them together?
Thanks in advance for any advice.
Mike:
Regarding Handbrake vs Compressor, if you like how your Handbrake footage looks, go with it. If not, try Compressor. I don’t think there would be a HUGE difference, but there probably would be some difference. I can’t say which would be better.
.M2TS is called an “MPEG-2 Transport Stream” and iMovie is a great way to handle them. Do your trims and export from iMovie as a ProRes QuickTime movie. Compress the QuickTime for your Blu-ray Discs. I don’t think – but I’m not sure – that Compressor can use .M2TS files as input sources.
Larry
Larry, thanks once again. I don’t have the ProRes codec installed. I presume in order to get it, I need Compressor and/or FCP X, correct? The other thing is that the export settings (or as Apple calls them, “Share” settings) seem dumbed down in iMovie 10.0.3. Right now there are only a few resolution export options (including 720p and 1080p) with no apparent way to set up a custom setting as in earlier versions. Do you know if it’s still possible to export as ProRes from iMovie 10? I still have iMovie 9 and I looked at that, but it appears the earlier versions of the software don’t support import of the MPEG-2 transport streams that are my source files.
Mike:
I don’t know, as I haven’t used iMovie in years. Perhaps another reader can help.
Larry
Hey! I just downloaded The App compressor 4. I want To compress a video from FCP that is best quality on VCL or Windows-player. what Settings should I use best?
thanks,
Miguel
Miguel:
MPEG-4 with the H.264 compression codec.
You can’t create Windows-only player files directly in Compressor. Also, check into Telestream’s Flip4Mac.
Larry
ok! Great, thank you!!!!;)