Optimize Media for YouTube, Download, Streaming or USB Drives

Posted on by Larry

Peter asked me recently to write an article on how to optimize files for posting to YouTube, download or streaming. As Internet speeds continue to improve, and YouTube adjusts its rules, now is a good time for an update on my recommendations.

I also added a section on USB drives, which are increasingly used for distributing large media files to small numbers of consumers.

YOUTUBE (SOCIAL MEDIA)

YouTube keeps changing its rules, here are the latest.

By default, you can upload videos up to 15 minutes in length. If you have a verified account, detailed in the link above, you can upload files up to 12 hours in length or 256 GB, whichever is less.

NOTE: A 12-hour video, as Google notes, is most likely from a live stream.

You can upload HDR movies, but they must have HDR metadata in the codec or container to be played properly on YouTube. If you’re grading your video, grade in Rec. 2020 using either PQ or HLG settings. Supported HDR apps include: DaVinci Resolve, Adobe Premiere Pro, Adobe After Effects and Apple Final Cut Pro.

NOTE: Here’s a link with more specifics on HDR and YouTube.

Accepted video formats are: .mov, .mpeg, .avi, .wmv, .mpegps, .flv, .webM, .3GPP.

NOTE: If you are new to YouTube, this link provides a variety of basic information.

Larry Recommends: Because YouTube – and all social media – ALWAYS recompress uploaded video, don’t worry about getting the smallest file size. Instead, compress your file using the default YouTube setting in Adobe Media Encoder, Apple Compressor or Handbrake (or the compression software of your choice). This compresses your file with lots of extra data that allows YouTube to recompress it without damaging image quality.

Video: I compress all YouTube/social media in MPEG-4 format using H.264. I use 20,000 kbps (20 mbps) for bit rate.

Audio: I use these compression settings for all audio, regardless of destination:

Mono files

Stereo files

A QUICK NOTE ON VIMEO

As you’ll read in the notes below, many media creators prefer posting videos to Vimeo, which provides generally higher quality than YouTube without the ads. The downside is that Vimeo does not have a fraction of YouTube’s audience.

For more details, visit Vimeo.com.

DOWNLOAD FILES

For files that viewers download directly, you have two basic options:

Both of these are “container” formats, which means they hold a variety of files. Both support audio, video, timecode and closed captions. However, iPhones don’t support QuickTime, while they do support MPEG-4. Also, I find that MPEG-4 is more robust.

Because you don’t want your viewers waiting forever to download a very large file, you need to pay more attention to bit rates. While bit rate determines compressed file size,  image quality is determined by five factors:

NOTE: It seems counter-intuitive, but the codec, frame size, frame rate, even the duration of the source file have no impact on the image quality of the compressed file. Well… if the source file looks awful, the compressed file will too. But aside from that, the source file settings are not important.

For codecs, I recommend MPEG-4 using H.264 as the codec. You can use HEVC, but it will take longer to compress and not all systems can play it. HEVC was designed more for distributors and cell networks than media creators.

NOTE: There are three exceptions where you should use HEVC instead of H.264: 1. When frame sizes are larger than 4K, 2. When you are compressing media for HDR, and 3. When you need 10-bit media in the compressed file.

Bit rates, however, depend upon the frame size and frame rate of the compressed file. In the past, when everyone had very slow Internet connections, small files and low bit rates were critically important. Now, those are less important.

Here are my SUGGESTIONS, but you should experiment to see what works best for you.

Obviously, 4K files are going to be really big. Personally, I’d stay with 1080p files, or smaller, for most direct downloads.

NOTE: I record all my webinars using a 1600 x 900 frame size simply to keep files sizes smaller. A 50-minute webinar is about 1.2 GB in size compressed using these specs.

STREAMING

Streaming files are very similar to downloads in terms of specs. However, if you stream directly from your website, as I do, you’ll also need to create HLS (HTTP Live Streaming) files. These are optimized for cell networks and divide your movie into tiny chunks so that if a viewer stops playing a video, it doesn’t clog the network. As well, HLS files automatically compensate for connection quality by varying image size during playback.

NOTE: Here are two articles that describe how to use Apple Compressor to create HLS files. And, yes, I do this every week for my webinars.

USB DRIVES

Small USB drives, often called “thumb drives” because they are the size of your thumb, are another great way to distribute media. However, they are most often formatted as FAT32. This is a very old format, with a 4 GB file limit and restricted file naming conventions.

These should be reformatted as ExFAT.  The benefit to formatting using ExFAT is that drives can hold well over 100 GB of data, depending upon how much physical storage in contained in the unit. This translates into easily holding a 3-hour, 4K movie with stereo sound compressed using H.264 at a very high data rate. (In fact, 128 GB can probably hold two of those movies.)

The important point, though, is that these drives need to be re-formatted using ExFAT, which is a format supported natively by both Mac and Windows systems. You can use Disk Utility to format a USB drive as ExFAT. Most ship formatted as FAT32, which is too limited for media distribution.

NOTE: Here’s a quick tutorial on how to create/format an ExFAT drive.

When it’s time to compress a file for a thumb drive, again, use MPEG-4, not Quicktime, for greater compatibility. Then, compress it using YouTube H.264 presets. This high data rate provides extremely high quality, with greater compatibility across TVs and computers.

For myself, if I’m going to play a video off a computer into a projector or large monitor, I’ll use a QuickTime file with ProRes 422 as the codec. If I’m sending the file to anyone else, I’ll use MPEG-4, with an H.264 codec.

SUMMARY

As Internet speeds improve, and social media takes over most video playback, we generally spend less time optimizing files than in the past. Still, these tips can help assure that your media looks as good as it can, regardless of where it plays back.


Bookmark the permalink.

9 Responses to Optimize Media for YouTube, Download, Streaming or USB Drives

  1. David Dixon says:

    Great info! This link is going directly into my “Larry Jordan Stuff” folder which is always on my Desktop!

  2. Monte Deel says:

    Thanks Larry. I didn’t understand why a 13 GB file would not load onto my jump drive that had 26 GB of open space. I’ll try formatting the drive like you suggested to see if that makes a difference.

  3. Jay says:

    In your compressor tutorial you suggested starting at 2000 kbps and start adjusting for what looks best due to the motion in your video. In this help you say you set yours at 20000 kbps. Is this for a better movie (sharper image?) that youtube will reduce? Would you please clarify. Thanks again for your help.

    • Larry says:

      Jay:

      Good questions and nice careful reading.

      When I am compressing media for YouTube, I want a relatively small file so it will upload quickly. But, more important than that, I want lots of extra data so that when YouTube recompresses the file, as it ALWAYS does, there are bits there that can be thrown away. (While YouTube will accept a ProRes 422 file – which provides the absolutely best quality – file sizes for anything lengthy are really big. So I compress so uploads don’t take forever.)

      So, I use 20000 kbps for YouTube to provide that extra data. (While Compressor and AME don’t actually compress at that high a rate, this setting tells them to go lightly on compression.)

      However, when I am compressing files for download or streaming on my own website – not using YouTube – then I need to be much more careful because the file won’t be recompressed and people don’t want to download a huge file before they can watch it. There, depending upon the compressed frame size and frame rate, I’ll use settings that range from 2000 kbps to 5000 kpbs. Since most of my webinars are screen shares, which compress very small, I can go with lower data rates.

      One other note: Compression ALWAYS reduces something. The first to go is color resolution. Instead of each pixel having unique color values, pixels are grouped into groups of 2, 4 or 8 where the entire group shares the same color value. Next, gray scale values start to get grouped which affects edge resolution and apparent focus. Finally, if you need really small files, total resolution needs to be reduced. There’s no free lunch. By starting with more of everything we retain more image quality throughout the entire process.

      Hope this helps.

      Larry

  4. Stefan flos says:

    Hi Larry,
    I always upload 4k material to youtube or vimeo, even updampled 1080 material, because yt and vimeo recode 4k material to a higher standard with a different codec.

    Maybe you can elaborate a little on this.

    Further vimeo has weekly upload limits, do using a higher compression hevc and lower bit rate might just squize your files in.

    Vimeo alows to overwrite later with an updated or higher quality file.

    Even downsampled 1080 resolution from a 4k upload looks better on yt and vimeo. Color is in more depth…

    • Larry Jordan says:

      Stefan:

      Thanks for your tips. I haven’t experimented with uploading 4K media to YouTube. Your thoughts are encouraging. I also agree that I need to add a section on Vimeo.

      Larry

Leave a Reply

Your email address will not be published. Required fields are marked *

Larry Recommends:

FCPX Complete

NEW & Updated!

Edit smarter with Larry’s latest training, all available in our store.

Access over 1,900 on-demand video editing courses. Become a member of our Video Training Library today!

JOIN NOW

Subscribe to Larry's FREE weekly newsletter and save 10%
on your first purchase.