Cracking the Code of x264 Presets

Like most compression geeks, I’m a big fan of the x264 codec, which is widely considered the highest quality H.264 codec, winning the prestigious University of Moscow codec shootout year after year. Though the codec has a comprehensive range of configuration options, I recommend that most users simply choose a preset and let it go at that-no tinkering required (as shown in Figure 1, I usually use the slower preset and no tuning). But I’ve always wondered how each preset is configured, though never enough to actually search for this information.

x264_1.PNG

Figure 1. Presets and tuning options from Sorenson Squeeze.

Well, this morning, the info fell into my lap when I was playing around with the Handbrake encoder. You can find complete descriptions of the configurations used for each preset and tuning option here. If you’ve ever had similar questions about how each preset and tuning option are configured, now you can find the answers. Enjoy!

x264_2.PNG

Figure 2. Here are the options used in the ultrafast preset (which I never use, but made for the best screenshot).

About Jan Ozer

Avatar photo
I help streaming and video technology companies solve complex technical and market-facing problems in practical business terms. Engagements range from fixed-scope audits and codec strategy reviews to product testing and technical content that helps customers, prospects, and internal teams connect technical performance to business outcomes. I am a contributing editor to Streaming Media Magazine, writing about codecs and encoding tools. I have written multiple authoritative books on video encoding, including Video Encoding by the Numbers: Eliminate the Guesswork from your Streaming Video (https://amzn.to/3kV6R1j) and Learn to Produce Video with FFmpeg: In Thirty Minutes or Less (https://amzn.to/3ZJih7e). I have multiple courses relating to streaming media production, all available at https://bit.ly/slc_courses.

Check Also

Shows the new lesson, Codec Updates 2023

New Lesson Helps Students Choose the Best Codec for Streaming

Just a quick note that I’ve updated the course, Streaming Media 101: Technical Onboarding for …

What is Cloud Gaming (and Why You Care)

What is Cloud Gaming (and Why You Care)

Video games are a huge market segment, projected to reach US$221.4 billion in 2023 and …

HEVC Passes AV1 on CanIUse

For some reason I can’t explain, Molly Brown’s comment from the movie Titanic, “there’s something …

Leave a Reply

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