Skip to main content

YouTubers can soon replace ugly video backgrounds — no green screen required

Google Research
Google Research

Replacing the background on a video typically requires advanced desktop software and plenty of free time, or a full-fledged studio with a green screen — but Google is developing an artificial intelligence alternative that works in real time, from a smartphone camera. On Thursday, March 1, Google shared the tech behind a new feature that’s now being beta tested on the YouTube Stories app.

Recommended Videos

Google’s video segmentation technique started out like most A.I.-based imaging programs — with people manually marking the background by hand on more than 10,000 images. With that data set, the group trained the program to separate the background from the foreground. (Adobe has a similar background removal tool now inside Photoshop for still images.)

That data set, however, was trained on single images — so how did Google go from a single image to replacing the background on every frame of video? Once the software masks out the background on the first image, the program uses that same mask to predict the background in the next frame. When that next frame has only minor adjustments from the first, such as slight movement from the person talking on camera, the program will make small adjustments to the mask. When the next frame is much different from the last — like if another person joins the video — then the software will discard that mask prediction entirely and create a new mask.

While the ability to separate the background is impressive by itself, Google wanted to go one step further and make that program run on the more limited hardware on a smartphone rather than a desktop computer. The programmers behind the video segmentation then made several adjustments to the program in order to improve the speed, including segmentation, downsampling, and reducing the number of channels. The team then worked to enhance quality by adding layers to create smoother edges between the foreground and background.

Google says those changes allow the app to replace the background in real time — applying changes at over 100 fps on an iPhone 7 and over 40 fps on the Google Pixel 2. The training set, Google says, had a 94.8 percent accuracy rating. All of the examples Google shared are videos of a person — the company didn’t say if the feature works on objects.

Inside the beta test of the feature, YouTubers can change the background in the video by selecting from the different effects, from a night scene to a blank background in black and white. Some of the effects in the sample even added lighting effects, like a lens flare at one corner.

The video segmentation tool is already rolling out — but only as a beta test, so the feature isn’t yet widely available. After taking in results of that test though, Google says it plans to expand the segmentation effects along with adding the feature to other programs, including augmented reality options.

Hillary K. Grigonis
Hillary never planned on becoming a photographer—and then she was handed a camera at her first writing job and she's been…

YouTube launched 17 years ago today with this video
Jawed Karim in YouTube's first video in 2005.

It was 17 years ago on Sunday that a 25-year-old guy called Jawed Karim uploaded the first video to YouTube, kickstarting a service that went on to become the go-to hub for video streaming and giving anyone with a camera and a good idea the chance to make a living out of their own content.

The first video was, it has to be said, nothing to write home about. The low-res, 19-second clip (below), called Me at the Zoo, features YouTube co-founder Karim at San Diego Zoo, helpfully pointing out that elephants have remarkably long trunks.

Read more
The Weather Channel is coming to YouTube TV
YouTube TV on Apple TV.

The Weather Channel -- which previously had seen relatively small reach on streaming platforms in the United States -- is starting to branch out. YouTube TV will gain the 24-7 weather service this year, according to a press release from Allen Media Group and Google.

The addition is a big deal because The Weather Channel had been limited to two of the smallest streaming platforms -- FuboTV and DirecTV Stream. It also fills a pretty big void in the YouTube TV lineup, which doesn't currently have an all-day weather channel. YouTube TV is believed to be the second-largest streaming service in the United States. It last announced a ballpark figure of "more than 3 million subscribers" in October 2020. It hasn't given any sort of update since then. For context, Hulu with Live TV has a publicly announced 4 million paid subscribers.

Read more
Google and Roku strike a deal to keep YouTube and YouTube TV on the platform
YouTube on Roku.

Google and Roku today announced that the two companies have reached a deal that will keep YouTube and YouTube TV on the No. 1 streaming platform in the United States and return the YouTube TV channel to the Roku Channel Store. Terms of the deal weren't disclosed, but it's good for multiple years.

Roku's Dallas Lawrence, head of comms for platform business, told Digital Trends via email: "Roku and Google have agreed to a multiyear extension for both YouTube and YouTube TV.  This agreement represents a positive development for our shared customers, making both YouTube and YouTube TV available for all streamers on the Roku platform."

Read more