Document 208709

How to Produce Great-Looking Video for YouTube on Onlinevideo.net – Online Video Strategies, Platforms, News, and Tips
HOME
SEARCH
SUBSCRIBE TO
STREAMING MEDIA
MAGAZINE FOR FREE
Submit
NEWS
VIDEO ESSENTIALS
BUYER'S GUIDES
| STREAMING MEDIA | STREAMING MEDIA PRODUCER
HOW-TOS
REVIEWS
ULTIMATE GUIDES
VIDEOS
EVENTS
ABOUT
CONTACT
NEWSLETTER
HOW-TOS
How to Produce Great-Looking Video for YouTube
BY JAN OZER ⋅ JULY 19, 2012 ⋅ PRINT THIS POST ⋅ POST A COMMENT
LATEST
POPULAR
COMMENTS
FILED UNDER ENCODE, ENCODING, TRANSCODE, TRANSCODING, YOUTUBE
TED Gives Thumbs Up to Ads Worth
12
Recommend
Recommend
3
Tweet
When YouTube started, poor video quality and a young audience caused many organizations to ask,
Spreading
“Why bother?” Today, many Fortune 100 companies have their own corporate YouTube channels, as
By Troy Dreier, October 26, 2012
does the AARP. Many companies, including Deloitte and IBM, use YouTube to host the videos posted
Online Vet Puts Pets on Display
with Live Video Program
on their own corporate websites. At this point, if you’re not posting your videos on YouTube, it’s more
appropriate to ask, “Why not?”
By Troy Dreier, October 17, 2012
If we didn’t live with YouTube’s
24
10
Share
somehow seemingly take it for
Brightcove Presents an 8-Point
Framework for Online Video
Success
granted, it would almost be too big
By Troy Dreier, October 16, 2012
scale on a daily basis, and
to imagine. According to one
Tablets Are Taking Over: Here’s
What You Need to Know
source, in February, 2012, YouTube accounted for
75.9% of all visits to video-related websites, with AOL
By Troy Dreier, October 16, 2012
Video and Hulu tied for second with 2.8%. According to
9 Video SEO Myths — Busted!
YouTube’s FAQ, over 800 million unique viewers visit
YouTube each month watching over 3 billion hours of
video. In 2011, YouTube had more than 1 trilllion views,
By Grant Crowell, October 12, 2012
VIDEOS
or around 140 views for every person on Earth. These
are U.S. federal deficit types of numbers.
How to Get Your Vide
If confusion about the best way to post videos on YouTube was part of the reason, you’re reading the right article. Seasoned
YouTube posters might also find value in this article, where I synthesize YouTube’s encoding recommendations, advice from
several compression experts, a look at presets from common encoders, and the results of my own tests, to provide specific
advice about how to configure your video for optimal quality and the most efficient upload time.
Let’s start by chatting with our experts.
What the Experts Say
Telestream Episode product manager Kevin Louden started by noting that YouTube re-encodes all video uploaded to the
site, which has several implications. First, don’t try to match YouTube’s output so it won’t re-encode your video; it always reencodes. Second, your job is to provide the highest possible quality file to YouTube, since, as we all know, video is a
garbage-in/garbage out medium. The higher the input quality, the higher the output quality.
embed this player
Louden also noted that because it’s all about quality, you don’t have to worry about playability, which frees you to create a
file that might not play smoothly on many computers. This relates both to data rate and encoding parameters like IDR frames
and adaptive B-frames. For example, the rule of thumb when encoding for playback is that each key frame should be an IDR
How to Get Your Video Shared
frame. However, IDR key frames are larger than normal key frames, which is less efficient compression-wise. When encoding
for upload to YouTube, playability isn’t an issue, so Louden recommends an IDR frame every third keyframe.
Quick and Easy Video
Ditto for adaptive B-frames, which improve quality, but some producers avoid because they can cause playback issues on
some devices. Since YouTube’s encoding engines can handle adaptive B-frames, Louden recommends using them when
encoding for upload.
I also spoke with Randon Morford and Coby Rich from Sorenson Media. Randon is general manager of the Squeeze
Desktop product, while Coby is an encoding-savvy director of marketing who created some of Squeeze’s YouTube presets.
Morford and Rich pointed out that while quality is important, there’s almost always a tension between quality and upload
http://www.onlinevideo.net/2012/07/how-to-produce-great-looking-video-for-youtube/[10/30/2012 3:53:36 PM]
How to Produce Great-Looking Video for YouTube on Onlinevideo.net – Online Video Strategies, Platforms, News, and Tips
time. This is particularly true among many small business video producers who might be uploading at under 1 mbps.
When creating their YouTube presets, Sorenson tested at multiple data rates and ran-quality measuring PSNR and SSIM
tests to find the data rate that provided the optimal blend of quality and upload time. For 720p files, for example, their tests
showed minimal quality improvements beyond 5 mbps. Doubling the data rate would obviously double upload time, and
increase the risk of some type of upload failure, but would not appreciably improve quality. The magic number for 1080p was
embed this player
6 mbps, though Rich recommending bumping that to 8 mbps if the video content contained high motion or was otherwise
challenging from a compression perspective.
With these recommendations as perspective, let’s have a look at YouTube’s own encoding recommendations.
The Rules According to YouTube
Quick and Easy Video Tips from Vimeo
SPONSORS
Several years ago, when YouTube first came to prominence, the company seemed to enjoy working as an opaque black box,
providing little direction regarding the best way to prepare your file for upload. When I started researching this article, I was
pleasantly surprised to learn that YouTube now provides specific encoding parameters.
Note that these are true recommendations in the sense that YouTube won’t reject the files if you don’t follow them. Rather,
YouTube will attempt to encode pretty much any file you throw at it; you’ll just get the most predictable results by following
the recommendations.
At a high level, YouTube provides recommendations for two classes of users; standard quality and those with “professional
quality content” and “enterprise quality internet connections.” After covering the basics, I’ll share these specific resolution and
data rate recommendations with you.
Support file formats: although YouTube accepts multiple formats including .MOV, .AVI, .WMV, and .FLV, the advanced
specifications page recommends H.264/AAC in an MP4 container format. YouTube recommends putting the moov atom at
the start of the file, which for many encoders means activating the Fast Start option.
Audio recommendations: YouTube recommends uploading stereo or 5.1 audio in either 48/96khz. As you’ll see, many of
the presets I reviewed use 44.1khz, which I recommend changing to 48.
H.264 parameters: YouTube recommends using the High profile with CABAC entropy coding, with variable bitrate encoding.
Other recommendations include a B-frame interval of 2, which is curious given that YouTube produces their H.264 video with
no B-frames. Recommendations also include a closed GOP with a GOP size of half the frame rate, which means two key
frames a second, an interval that none of the encoders matched.
Frame rate: Don’t change the frame rate for uploading; if you shoot at 24p you should upload at 24p.
Frame composition: If you’re working with interlaced source content, YouTube recommends deinterlacing before uploading.
While you can upload at resolutions up to 4K, you shouldn’t burn letterboxing or pillarboxing into your video; produce native
16:9 video at a 16:9 resolution, native 4:3 video at a native 4:3 resolution. YouTube also recommends against uploading files
OnlineVideo.net on Facebook
with a pixel aspect ratio other than 1.0, otherwise known as square pixel output.
Like
Again, YouTube identifies two classes of users, standard and high quality. Here are the suggested data rates for varying
video resolutions:
Confirm
Recent Activity
You like this. · Admin
Page · Insights · Error
Y lik thi 525 Ad i
Login
Improve Your Content
Marketing with Online Video
5 people recommended this.
Target Premieres ‘Falling for You,’ a
Shoppable Online Movie
One person recommended this.
USA Today Host Helps People Improve
Their Video Skills
Table 1: Standard quality recommendations.
5 people recommended this.
High Quality Uploads
Facebook social plugin
http://www.onlinevideo.net/2012/07/how-to-produce-great-looking-video-for-youtube/[10/30/2012 3:53:36 PM]
How to Produce Great-Looking Video for YouTube on Onlinevideo.net – Online Video Strategies, Platforms, News, and Tips
Table 2: High quality recommendations.
What YouTube Delivers
We’ve focused on the input side so far. Let’s shift to the output side to help focus our later discussions. Briefly, we’ve all
seen the different quality files produced by YouTube, which are selectable via a control on the bottom right of the player. As
you would suspect, the number and size of files relates to the size of the file that you upload. This is shown in Table 3, where
the columns are the resolutions of the files that I uploaded during my tests, and the rows are the files produced by YouTube
from these files.
Table 3. Files produced by YouTube.
On the extreme left, a 1080p upload triggers the creation of six files, which drops to three if you upload a 640×360 file. Table
4 shows the details of the files produced by YouTube, which actually varied very little depending upon the input. That is, the
240p file produced from the 1080p input was configured identically to the file created from the 640×360 input. All files except
for the mobile file had a pixel aspect ratio of 1.0; the mobile had a pixel aspect ratio of 1.2.
Table 4. File details.
I derived these configuration details from file analysis tool MediaInfo, and from Inlet (now Cisco) Semaphore, which
unfortunately, could only load a portion of the files. As mentioned, none of the H.264 files that I could test used B-frames,
while all files that I could test had a key frame interval of 60 frames. All my test files were 29.97 fps, so that meant a key
frame interval of every 2 seconds.
With this as background, let’s review the presets available from several popular encoding programs to see how they
conformed to YouTube’s recommendations and whether they make sense given the outputs YouTube is producing from the
uploaded files. In the interest of time, relevance and my editor’s lack of patience with tables, I’m going to focus primarily on
1080p and 720p file creation, with a smattering of attention at DV resolutions.
1080p
I do most of my personal and corporate shooting at 720p when possible, and until very recently, advised most clients to
ignore 1080p uploads. However, between the increase of connected television sets in the living room and the very high
resolution iPad 3 (I know, I know), 1080p is starting to make much more sense, particularly when it’s free. In our
conversations, Telestream’s Louden shared that Episode users were increasingly focused on the higher resolution as well.
Speaking of this, Episode was the only encoder that actually addressed both the professional and standard video quality
groups with two sets of presets that matched most of YouTube’s recommendations. For relevance, I’ll focus solely on the
Standard Quality Recommendations.
http://www.onlinevideo.net/2012/07/how-to-produce-great-looking-video-for-youtube/[10/30/2012 3:53:36 PM]
How to Produce Great-Looking Video for YouTube on Onlinevideo.net – Online Video Strategies, Platforms, News, and Tips
Table 5 contains the most prominent configuration parameters from the 1080p preset from the listed programs. As you can
see, there’s a great deal of non-conformance with the YouTube recommendations, including key frame interval and audio
frequency. At the target data rate, I tend to think that key frame interval is not particularly relevant, but I would recommend
changing all presets to 48 Khz as YouTube recommends.
Table 5. Summary of encoding parameters from 1080p YouTube preset.
The biggest head scratcher relates to data rate, with Apple Compressor at 20 mbps and the other three much, much lower.
As we can see in Table 4, YouTube produces the 1080p files at 5.8 mbps; surely you would see some quality difference
between the 20 mbps file produced by Compressor and files produced by the other encoders at less than half that data rate.
To test this, I rendered my 3 minute HD test file from Compressor, Adobe Media Encoder, and Squeeze and uploaded the
files to YouTube. For comparison purposes, the file produced by Compressor was 458 MB, while the file produced by Adobe
Media Encoder was 197 MB, and the Squeeze file 152 MB. I didn’t track upload times, but with my pathetic 800 kbps DSL
upload speed, I’m sure the difference was very significant. Then I downloaded the files created by YouTube using the FireFox
plug-in Download Helper, imported them into Adobe Premiere Pro and compared their quality.
By way of background, the file is comprised of PBS footage provided by SimmonsArt, Inc and stock footage provided by
Artbeats. In short, it’s broadcast quality, and is comprised of a range of scenes, from talking head to fast motion.
Remarkably, with the exception of one clip with extreme high motion and lots of fine detail, the YouTube output was virtually
identical. You can see frame comparisons in Figure 1, and the differences are exceptionally minor.
Figure 1. I saw some minor quality difference in the text in this clip, but that was it.
Again, video compression is a garbage in/garbage out medium, and more is always better when it comes to data rate.
However, if upload time is a concern, as it is with me, I wouldn’t go higher than 8 mbps unless the footage was extremely
difficult to encode.
Not that it’s significant, but only the Adobe Media Encoder produced the file using the two recommended B-frames.
Compressor used 1 B-frame, which you can’t change, while the x.264 preset used by both Sorenson and Telestream also
produced an interval of 1, though you can change this in these programs. I tend to think that B-frames are more overrated
than Johnny Depp, which is saying something, and the fact that YouTube produces their H.264 files with no B-frames tends
to confirm this view. Long story short, while I would use two B-frames to honor YouTube’s recommendations, I wouldn’t
change encoders if my tool didn’t give me this level of control.
Going forward, when producing a 1080p file to upload to YouTube, I will boost the audio data rate to at least 256 kbps. While
I’m guessing that you couldn’t hear the difference between 128 kbps or 256 kbps input, producing 192 kbps audio from 128
kbps audio just doesn’t feel right.
http://www.onlinevideo.net/2012/07/how-to-produce-great-looking-video-for-youtube/[10/30/2012 3:53:36 PM]
How to Produce Great-Looking Video for YouTube on Onlinevideo.net – Online Video Strategies, Platforms, News, and Tips
720p
Table 6 summarizes the 720p presets from the listed encoding tools, with most of the same concerns. Again, I would conform
audio to 48 khz with more alacrity than I would drop by key frame setting to 2 per second, and would boost audio to at least
256 kbps.
Table 6. Summary of encoding parameters from 720p YouTube presets.
I ran the same quality related tests with video uploaded from Compressor, Adobe Media Encoder, and Squeeze with the
same results; the 5 mbps files looked identical to Apple’s 10 mbps files. The bottom line is while you’re free to encode at any
data rate, you’re unlikely to see any benefit from rates beyond 5 mbps unless you’re working with exceptionally hard to
encode video.
SD Resolutions and Thereabouts
If you’re working with HD video, it’s hard to imagine a usage case where you’d want to upload a file smaller than 720p; see
above for recommendations there. If you’re uploading DV or similar footage, I would heed YouTube’s recommendations and
convert to a square pixel resolution before uploading. I tested by uploading both 4:3 and 16:9 DV files, and the aspect ratios
were slightly off in both. Nothing tragic, but definitely discernible to the trained eye.
Specifically, YouTube encoded the 4:3 DV file to a resolution of 654×480, rather than 640×480, and produced the 16:9 DV
file to 854×470 rather than 854×480. Rather than uploading at DV resolutions and aspect ratios, I would convert 4:3 DV
footage to a progressive 640×480 file, and the 16:9 DV file to 854×480. Three of the vendors, Adobe, Sorenson and
Telestream, provided 640×480 presets, and the data rate ranged from 2 – 2.5 mbps, which sounds about right. The 854×480
file has more pixels, so I would boost this to no more than 3 mbps, with 128 kbps audio good for both resolutions.
So, that’s it. Hopefully, you know a lot more about encoding for YouTube upload than you did at the start, with links to get
more information should you need it.
Related Posts
Kaltura Offers 5 Ways to Benefit from a Corporate YouTube
Nalts Offers Video Newbies Tips on Earning a Living on YouTube
How to Get Your Videos on Every Screen, Every Platform
YouTube's Original Channels Offer Lessons in Success and Failure
9 Tips on Marketing Your Company with YouTube
How to Sell Products on YouTube: Lessons Learned at VidCon
YouTube Reaches out to Businesses with AdWords, Ambassadors
YouTube: The Care and Feeding of a Brand Channel
YouTube Offers Advice on Succeeding with YouTube
5 Tips You Need to Know to Market Your Videos on YouTube
You might like:
Make Your Videos
Playable
Everywhere: Flash
and HTML5
Buy the Best
Video Gear: A
$2,000 and $4,000
Buying Guide
Kaltura Offers 5
Ways to Benefit
from a Corporate
You​Tube
9 Video SEO
Myths — Busted!
MPEG DASH Is
the Future, Here’s
What You Need to
Know
http://www.onlinevideo.net/2012/07/how-to-produce-great-looking-video-for-youtube/[10/30/2012 3:53:36 PM]
How to Produce Great-Looking Video for YouTube on Onlinevideo.net – Online Video Strategies, Platforms, News, and Tips
Explained
[?]
DISCUSSION
COMMENTS FOR “HOW TO PRODUCE GREAT-LOOKING VIDEO FOR YOUTUBE”
Really useful information. Thank you very much. I’ll definitely be changing the way I upload to YouTube.
POSTED BY BOB HIRSCHFELD | JULY 24, 2012, 12:47 PM
REPLY TO THIS COMMENT
Thanks, Bob, good to hear, thanks for sharing.
Jan
POSTED BY JAN OZER | JULY 24, 2012, 5:48 PM
REPLY TO THIS COMMENT
A long needed article.Thanks.
POSTED BY GRAHAM | AUGUST 22, 2012, 5:47 PM
REPLY TO THIS COMMENT
POST A COMMENT
Name *
E-mail *
Web site
Comment
Submit Comment
Add Video Comment
© 2009 - 2012 Onlinevideo.net – Online Video Strategies, Platforms, News, and Tips.
http://www.onlinevideo.net/2012/07/how-to-produce-great-looking-video-for-youtube/[10/30/2012 3:53:36 PM]