Connect with us

Technology

Inside Netflix’s bet on advanced video encoding

Published

on

Inside Netflix’s bet on advanced video encoding

Anne Aaron just can’t help herself.

Aaron, Netflix’s senior encoding technology director, was watching the company’s livestream of the Screen Actors Guild Awards earlier this year. And while the rest of the world marveled at all those celebrities and their glitzy outfits sparkling in a sea of flashing cameras, Aaron’s mind immediately started to analyze all the associated visual challenges Netflix’s encoding tech would have to tackle. “Oh my gosh, this content is going to be so hard to encode,” she recalled thinking when I recently interviewed her in Netflix’s office in Los Gatos, California.

Aaron has spent the past 13 years optimizing the way Netflix encodes its movies and TV shows. The work she and her team have done allows the company to deliver better-looking streams over slower connections and has resulted in 50 percent bandwidth savings for 4K streams alone, according to Aaron. Netflix’s encoding team has also contributed to industrywide efforts to improve streaming, including the development of the AV1 video codec and its eventual successor.

Now, Aaron is getting ready to tackle what’s next for Netflix: Not content with just being a service for binge-watching, the company ventured into cloud gaming and livestreaming last year. So far, Netflix has primarily dabbled in one-off live events like the SAG Awards. But starting next year, the company will stream WWE RAW live every Monday. The streamer nabbed the wrestling franchise from Comcast’s USA Network, where it has long been the No. 1 rated show, regularly drawing audiences of around 1.7 million viewers. Satisfying that audience week after week poses some very novel challenges.

“It’s a completely different encoding pipeline than what we’ve had for VOD,” Aaron said, using industry shorthand for on-demand video streaming. “My challenge to (my) team is to get to the same bandwidth requirements as VOD but do it in a faster, real-time way.”

Advertisement

To achieve that, Aaron and her team have to basically start all over and disregard almost everything they’ve learned during more than a decade of optimizing Netflix’s streams — a decade during which Netflix’s video engineers re-encoded the company’s entire catalog multiple times, began using machine learning to make sure Netflix’s streams look good, and were forced to tweak their approach when a show like Barbie Dreamhouse Adventures tripped up the company’s encoders.

When Aaron joined Netflix in 2011, the company was approaching streaming much like everyone else in the online video industry. “We have to support a huge variety of devices,” said Aaron. “Really old TVs, new TVs, mobile devices, set top boxes: each of those devices can have different bandwidth requirements.”

To address those needs, Netflix encoded each video with a bunch of different bitrates and resolutions according to a predefined list of encoding parameters, or recipes, as Aaron and her colleagues like to call them. Back in those days, a viewer on a very slow connection would automatically get a 240p stream with a bitrate of 235 kbps. Faster connections would receive a 1750 kbps 720p video; Netflix’s streaming quality topped out at 1080p with a 5800 kbps bitrate. 

The company’s content delivery servers would automatically choose the best version for each viewer based on their device and broadband speeds and adjust the streaming quality on the fly to account for network slow-downs.

To Aaron and her eagle-eyed awareness of encoding challenges, that approach seemed inadequate. Why spend the same bandwidth to stream something as visually complex as an action movie with car chases (lots of motion) and explosions (flashing lights and all that noisy smoke) as much simpler visual fare? “You need less bits for animation,” explained Aaron. 

Advertisement

My Little Pony, which was a hit on the service at the time, simply didn’t have the same visual complexity as live-action titles. It didn’t make sense to use the same encoding recipes for both. That’s why, in 2015, Netflix began re-encoding its entire catalog with settings fine-tuned per title. With this new, title-specific approach, animated fare could be streamed in 1080p with as little as 1.5 Mbps.

She-Ra and the Princess of Power is another good example of an animated show with fairly simple visual complexity versus live action-fare.
Image: Netflix

Switching to per-title encoding resulted in bandwidth savings of around 20 percent on average — enough to make a notable difference for consumers in North America and Europe, but even more important as Netflix was eyeing its next chapter: in January of 2016, then-CEO Reed Hastings announced that the company was expanding into almost every country around the world — including markets with subpar broadband infrastructure and consumers who primarily accessed the internet from their mobile phone.

Per-title encoding has since been adopted by most commercial video technology vendors, including Amazon’s AWS, which used the approach to optimize PBS’s video library last year. But while the company’s encoding strategy has been wholeheartedly endorsed by streaming tech experts, it has been largely met with silence by Hollywood’s creative class.

Directors and actors like Judd Apatow and Aaron Paul were up in arms when Netflix began to let people change the playback speed of its videos in 2019. Changes to the way it encodes videos, on the other hand, never made the same kinds of headlines. That may be because encoding algorithms are a bit too geeky for that crowd, but there’s also a simpler explanation: the new encoding scheme was so successful at saving bandwidth without compromising on visual fidelity that no one noticed the difference. 

Advertisement

Make that almost no one: Aaron quickly realized that the company’s per-title-based encoding approach wasn’t without faults. One problem became apparent to her while watching Barbie Dreamhouse Adventures. It’s one of those animated Netflix shows that was supposed to benefit the most from a per-title approach. 

However, Netflix’s new encoding struggled with one particular scene. “There’s this guy with a very sparkly suit and a sparkly water fountain behind him,” said Aaron. The scene looked pretty terrible with the new encoding rules, which made her realize that they needed to be more flexible. “At (other) parts of the title, you need less bits,” Aaron said. “But for this, you need to increase it.”

That’s a lot of glitter to properly encode.
Screenshot: Netflix

The solution to this problem was to get a lot more granular during the encoding process. Netflix began to break down videos by shots and apply different encoding settings to each individual segment in 2018. Two people talking in front of a plain white wall were encoded with lower bit rates than the same two people taking part in a car chase; Barbie hanging out with her friends at home required less data than the scene in which Mr. Sparklesuit shows up.

As Netflix adopted 4K and HDR, those differences became even more stark. “(In) The Crown, there’s an episode where it’s very smokey,” said Aaron. “There’s a lot of pollution. Those scenes are really hard to encode.” In other words: they require more data to look good, especially when shown on a big 4K TV in HDR, than less visually complex fare.

Advertisement

Aaron’s mind never stops looking for those kinds of visual challenges, no matter whether she watches Netflix after work or goes outside to take a walk. This has even caught on with her kids, with Aaron telling me that they occasionally point at things in the real world and shout: “Look, it’s a blur!”

It’s a habit that comes with the job and a bit of a curse, too — one of those things you just can’t turn off. During our conversation, she picked up her phone, only to pause and point at the rhinestone-bedazzled phone case. It reminded her of that hard-to-encode scene from Barbie Dreamhouse Adventures. Another visual challenge!

Still, even an obsessive mind can only get you so far. For one thing, Aaron can’t possibly watch thousands of Netflix videos and decide which encoding settings to apply to every single shot. Instead, her team compiled a few dozen short clips sourced from a variety of shows and movies on Netflix and encoded each clip with a range of different settings. They then let test subjects watch those clips and grade the visual imperfections from not noticeable to very annoying. “You have to do subjective testing,” Aaron said. “It’s all based on ground truth, subjective testing.”

London’s smoggy fog of the early 50s in The Crown made for another encoding challenge.
Screenshot: Netflix

The insights gained this way have been used by Netflix to train a machine learning model that can analyze the video quality of different encoding settings across the company’s entire catalog, which helps to figure out the optimal settings for each and every little slice of a show or movie. The company collaborated with the University of Southern California on developing these video quality assessment algorithms and open-sourced them in 2016. Since then, it has been adopted by much of the industry as a way to analyze streaming video quality and even gained Netflix an Emmy Award. All the while, Aaron and her team have worked to catch up with Netflix’s evolving needs — like HDR. 

Advertisement

“We had to develop yet another metric to measure the video quality for HDR,” Aaron said. “We had to run subjective tests and redo that work specifically for HDR.” This eventually allowed Netflix to encode HDR titles with per-shot-specific settings as well, which the company finally did last year. Now, her team is working on open-sourcing HDR-based video quality assessment.

Slicing up a movie by shot and then encoding every slice individually to make sure it looks great while also saving as much bandwidth as possible: all of this work happens independently of the video codecs Netflix uses to encode and compress these files. It’s kind of like how you might change the resolution or colors of a picture in Photoshop before deciding whether to save it as a JPEG or a PNG. However, Netflix’s video engineers have also actively been working on advancing video codecs to further optimize the company’s streams.

Netflix is a founding member of the Alliance for Open Media, whose other members include companies like Google, Intel, and Microsoft. Aaron sits on the board of the nonprofit, which has spearheaded the development of the open, royalty-free AV1 video codec. Netflix began streaming some videos in AV1 to Android phones in early 2020 and has since expanded to select smart TVs and streaming devices as well as iPhones. “We’ve encoded about two-thirds of our catalog in AV1,” Aaron said. The percentage of streaming hours transmitted in AV1 is “in the double digits,” she added.

And while the roll-out of AV1 continues, work is already underway on its successor. It might take a few more years before devices actually support that next-gen codec, but early results suggest that it will make a difference. “At this point, we see close to 30 percent bit rate reduction with the same quality compared to AV1,” Aaron explained. “I think that’s very, very promising.”

Meridian was a short film made by Netflix specifically to test and train codecs and algorithms for streaming.
Screenshot: Netflix
Advertisement

While contributing to the development of new video codecs, Aaron and her team stumbled across another pitfall: video engineers across the industry have been relying on a relatively small corpus of freely available video clips to train and test their codecs and algorithms, and most of those clips didn’t look at all like your typical Netflix show. “The content that they were using that was open was not really tailored to the type of content we were streaming,” recalled Aaron. “So, we created content specifically for testing in the industry.”

In 2016, Netflix released a 12-minute 4K HDR short film called Meridian that was supposed to remedy this. Meridian looks like a film noir crime story, complete with shots in a dusty office with a fan in the background, a cloudy beach scene with glistening water, and a dark dream sequence that’s full of contrasts. Each of these shots has been crafted for video encoding challenges, and the entire film has been released under a Creative Commons license. The film has since been used by the Fraunhofer Institute and others to evaluate codecs, and its release has been hailed by the Creative Commons foundation as a prime example of “a spirit of cooperation that creates better technical standards.”

Cutting-edge encoding strategies, novel quality metrics, custom-produced video assets, and advanced codecs: in many ways, Netflix has been leading the industry when it comes to delivering the best-looking streams in the most efficient ways to consumers. That’s why the past 14 months have been especially humbling.

Netflix launched its very first livestream in March of 2023, successfully broadcasting a Chris Rock comedy special to its subscribers. A month later, it tried again with a live reunion event for its reality show Love Is Blind — and failed miserably, with viewers waiting for over an hour for the show to start.

The failed livestream was especially embarrassing because it tarnished the image of Netflix as a technology powerhouse that is lightyears ahead of its competition. Netflix co-CEO Greg Peters issued a rare mea culpa later that month. “We’re really sorry to have disappointed so many people,” Peters told investors. “We didn’t meet the standard that we expect of ourselves to serve our members.”

Advertisement

Netflix wants to avoid further such failures, which is why the company is playing it safe and moving slowly to optimize encoding for live content. “We’re quite early into livestreaming,” Aaron said. “For now, the main goals are stability, resilience of the system, and being able to handle the scale of Netflix.” In practice, this means that Aaron’s team isn’t really tweaking encoding settings for those livestreams at all for the time being, even if it forces her to sit through the livestream of the SAG Awards show without being able to improve anything. “We’re starting with a bit more industry-standard ways to do it,” she told me. “And then from there, we’ll optimize.”

The same is true in many ways for cloud gaming. Netflix began to test games on TVs and desktop computers last summer and has since slowly expanded those efforts to include additional markets and titles. With games being rendered in the cloud as opposed to on-device, cloud gaming is essentially a specialized form of livestreaming, apart from one crucial distinction. “They’re quite different,” said Aaron. “[With] cloud gaming, your latency is even more stringent than live.” 

Monday Night RAW is coming to Netflix next year and will bring with it even more opportunities to challenge the streamer’s video encoding technology.
Photo: WWE/Getty Images

Aaron’s team is currently puzzling over different approaches to both problems, which requires them to ignore much of what they’ve learned over the past decade. “The lesson is not to think about it like VOD,” Aaron said. One example: slicing and dicing a video by shot and then applying the optimal encoding setting for every shot is a lot more difficult when you don’t know what happens next. “With live, it’s even harder to anticipate complex scenes,” she said.

Live is unpredictable: that’s not just true for encoding but also for Netflix’s business. The company just inked a deal to show two NFL games on Christmas Day and will begin streaming weekly WWE matches in January. This happens as sports as a whole, which has long been the last bastion of cable TV, is transitioning to streaming. Apple is showing MLS games, Amazon is throwing tons of money at sports, and ESPN, Fox, and Warner Bros. are banding together to launch their own sports streaming service. Keeping up with these competitors doesn’t just require Netflix to spend heavily on sports rights but also actually get good at livestreaming. 

Advertisement

All of this means that Aaron and her team won’t be out of work any time soon — especially since the next challenge is always just around the corner. “There’s going to be more live events. There’s going to be, maybe, 8K, at some point,” she said. “There’s all these other experiences that would need more bandwidth.”

In light of all of those challenges, does Aaron ever fear running out of ways to optimize videos? In other words: how many times can Netflix re-encode its entire catalog with yet another novel encoding strategy, or new codec, before those efforts are poised to hit a wall and won’t make much of a difference anymore?

“In the codec space, people were saying that 20 years ago,” Aaron said. “In spite of that, we still find areas for improvement. So, I’m hopeful.”

And always eagle-eyed to spot the next visual challenge, whether it’s a sea of camera flashes or a surprise appearance by Mr. Sparklesuit.

Advertisement
Continue Reading
Advertisement
Click to comment

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Technology

Sunday Ticket jury orders NFL to pay fans $4.7 billion in damages

Published

on

Sunday Ticket jury orders NFL to pay fans $4.7 billion in damages

The NFL has been hit with a $4.7 billion verdict in a class action antitrust lawsuit filed on behalf of residential and commercial customers who paid for its Sunday Ticket package on DirecTV from 2011 through 2022.

Originally filed in 2015 by the Mucky Duck sports bar, the lawsuit claimed that the league and its teams had conspired to give DirecTV an illegal monopoly on out-of-market games until YouTube took it over, starting with the 2023 season. The plaintiffs noted that other leagues distributed live, out-of-market games through multiple providers instead of just one exclusive partner like the NFL and argued during the case that the setup not only inflated the price of Sunday Ticket but also forced viewers to pay for games during weeks when their preferred team wasn’t playing.

Courthouse News reports that during the trial, evidence showed that the NFL turned down bids for the package that would’ve made the offer cheaper, more flexible, and available to millions of additional customers. Before YouTube snagged the exclusive package that it now sells for $349 per year, the report says that an email from the NFL’s chief media and business officer showed ESPN proposed offering Sunday Ticket for $70 per year and allowing fans to buy a package for just one team.

After a three-week trial, ESPN reports the jury deliberated for almost five hours before reaching the decision. They awarded $96 million in damages to the bars and restaurants and $4.7 billion to customers, according to USA Today, which, if it stands, could be tripled under federal law.

A statement from the NFL given to multiple media outlets said the league would appeal the decision. Front Office Sports reports that US District Court Judge Philip S. Gutierrez, who dismissed the case in 2019 but later ruled it could proceed as a class action, could still throw out the verdict, and post-trial motions are set for a hearing on July 31st.

Advertisement
Continue Reading

Technology

2 bulletproof steps to hack-proof your Mac

Published

on

2 bulletproof steps to hack-proof your Mac

In today’s digital landscape, where cyberthreats lurk around every corner, safeguarding your personal data and maintaining privacy have become paramount. 

Your Mac houses a wealth of sensitive information, making it a prime target for malicious actors. 

Securing your device with a robust password and leveraging the convenience of biometric authentication like Touch ID is no longer an option but a necessity. Here are steps to fortify your Mac’s defenses, ensuring your computer remains impregnable against prying eyes and unauthorized access.

GET SECURITY ALERTS, EXPERT TIPS – SIGN UP FOR KURT’S NEWSLETTER – THE CYBERGUY REPORT HERE

A woman typing on her Mac (Kurt “CyberGuy” Knutsson)

Advertisement

How to add a password to your Mac

  • In the top left corner of your Mac, click on the Apple logo
locking a mac 2

Steps to add a password to your Mac (Kurt “CyberGuy” Knutsson)

  • Then, go to System Settings
locking a mac 3

Steps to add a password to your Mac (Kurt “CyberGuy” Knutsson)

  • Click on Users & Groups in the sidebar

WHAT IS ARTIFICIAL INTELLIGENCE (AI)?

locking a mac 4

Steps to add a password to your Mac (Kurt “CyberGuy” Knutsson)

  • Then click the Info button next to your username on the right
  • Click Change
locking a mac 5

Steps to add a password to your Mac (Kurt “CyberGuy” Knutsson)

  • Next, enter your current password in the “Old Password” field
locking a mac 6

Steps to add a password to your Mac (Kurt “CyberGuy” Knutsson)

  • Enter your New Password in the “New Password” field
locking a mac 7

Steps to add a password to your Mac (Kurt “CyberGuy” Knutsson)

  • If you need help choosing a secure password, click the key button next to “New Password”
locking a mac 8

Steps to add a password to your Mac (Kurt “CyberGuy” Knutsson)

  • Enter a hint to help you remember it
locking a mac 9

Steps to add a password to your Mac (Kurt “CyberGuy” Knutsson)

  • Enter the new password again in the “Verify” field
locking a mac 10

Steps to add a password to your Mac (Kurt “CyberGuy” Knutsson)

  • Then click Change Password
locking a mac 11

Steps to add a password to your Mac (Kurt “CyberGuy” Knutsson)

HOW TO REMOVE MALWARE ON A MAC 2024 

How to set up your Touch ID (if available)

On some Macs, you can also use biometric data to unlock your device with Touch ID. Here’s how to set it up:

  • In the top left corner, click on the Apple logo
locking a mac 12

Steps to set up your Touch ID (Kurt “CyberGuy” Knutsson)

  • Then click System Settings
locking a mac 13

Steps to set up your Touch ID (Kurt “CyberGuy” Knutsson)

  • Scroll down and click on Touch ID & Password from the sidebar
locking a mac 14

Steps to set up your Touch ID (Kurt “CyberGuy” Knutsson)

locking a mac 15

Steps to set up your Touch ID (Kurt “CyberGuy” Knutsson)

  • Then input your password when prompted
locking a mac 16

Steps to set up your Touch ID (Kurt “CyberGuy” Knutsson)

locking a mac 17

Steps to set up your Touch ID (Kurt “CyberGuy” Knutsson)

  • Follow the on-screen directions, repeatedly resting and lifting your finger on the Touch ID sensor. The location of the Touch ID sensor may vary depending on your Mac model; it’s typically found in the top right corner of the keyboard or near the keyboard on newer models.
locking a mac 18

Steps to set up your Touch ID (Kurt “CyberGuy” Knutsson)

locking a mac 19

Steps to set up your Touch ID (Kurt “CyberGuy” Knutsson)

HOW TO REMOVE YOUR PRIVATE DATA FROM THE INTERNET 

Use strong and unique passwords 

Create strong passwords for your accounts and devices, and avoid using the same password for multiple online accounts. Consider using a password manager to securely store and generate complex passwords. It will help you to create unique and difficult-to-crack passwords that a hacker could never guess.

Second, it also keeps track of all your passwords in one place and fills passwords in for you when you’re logging into an account so that you never have to remember them yourself. The fewer passwords you remember, the less likely you will be to reuse them for your accounts.

Advertisement

What qualities should I look for in a password manager?

When it comes to choosing the best password manager for you, here are some of my top tips.

  • Deploys secure
  • Works seamlessly across all of your devices
  • Creates unique complicated passwords that are different for every account
  • Automatically populates login and password fields for apps and sites you revisit
  • Has a browser extension for all browsers you use to automatically insert passwords for you
  • Allows a fail-safe in case the primary password is ever lost or forgotten
  • Checks that your existing passwords remain safe and alerts you if ever compromised
  • Uses two-factor authentication security

Get more details about my best expert-reviewed password managers of 2024 here.

Kurt’s key takeaways 

Keeping your operating system and software up to date is also crucial for protecting against the latest security threats. By implementing a strong password and enabling Touch ID (if available), you’ll significantly enhance the security of your Mac and safeguard your personal data from unauthorized access.

Advertisement

What are your biggest concerns when it comes to protecting your digital footprint and personal data online? Have you encountered any particularly egregious violations of privacy or fallen victim to cyberthreats? Let us know by writing us at Cyberguy.com/Contact.

For more of my tech tips and security alerts, subscribe to my free CyberGuy Report Newsletter by heading to Cyberguy.com/Newsletter.

Ask Kurt a question or let us know what stories you’d like us to cover,

Follow Kurt on his social channels

Answers to the most asked CyberGuy questions:

Advertisement

Copyright 2024 CyberGuy.com. All rights reserved.

Continue Reading

Technology

These smart binoculars can identify thousands of stars and over a million landmarks

Published

on

These smart binoculars can identify thousands of stars and over a million landmarks

Unistellar’s new Envision binoculars bring smart functionality similar to Swarovski’s Optik AX Visio binoculars announced earlier this year. But instead of recognizing birds and animals, the Envision will use AR to identify and label over a million unique landmarks including mountains and trails and more than 200,000 objects in the night sky.

The French company launched a decade ago with smart telescopes that automate the process of finding and photographing objects like stars and planets. It’s now squeezing that technology into a pair of binoculars featuring 50mm lenses from Nikon upgraded with an augmented reality projection system that overlays contextual information about what’s being viewed in real time.

It’s innovative, but Unistellar will be relying on a crowdfunding campaign to help create its first prototypes next year, and delivery to backers isn’t expected until late 2025.

The Envision binoculars connect to a smartphone over Bluetooth and use that device’s GPS and other sensors to determine where a user is located. With the help of an app, the smartphone also feeds the binoculars info from an online database featuring “millions of cartographic items, including mountains, hills, trails, landmarks, water sources, stars, galaxies, and other celestial objects.” For those headed to remote locations with limited connectivity, they’ll need to download offline maps and data ahead of time.

Battery life is rated at five hours of use or “1,000 binocular engagements per charge.” But when the battery dies, the Envision will continue to function as regular binoculars.

Advertisement

Users can lock onto a target and then pass the Envision binoculars to someone else who will be guided toward the target.
Image: Unistellar

In addition to serving as a handheld tour guide, Unistellar is promising another handy feature: one person can lock onto something they’re looking at and then pass the binoculars to someone else, who will see directional indicators guiding them to that same target.

Unistellar is bringing the Envision binoculars to consumers through a crowdfunded Kickstarter campaign that’s still over $1 million shy of its funding goal. Early bird backers can preorder a pair for $699, which is a significant discount over the expected $1,199 retail pricing (and much cheaper than the $4,799 Swarovski smart binoculars), but delivery for the earliest backers isn’t expected until November 2025.

There’s always a risk when backing a crowdfunded product, even one from a company like Unistellar that’s already delivered several successful devices. But the company isn’t expecting to have its first industrial prototypes of the Envision binoculars until January 2025. Despite a solid track record so far, it might be a good idea to wait until next year to see how these pan out.

Advertisement
Continue Reading

Trending