Broadcast News

Bookmark and Share
07/11/2019

Machine Learning Fueled Video Super Resolution

News Image
Worldwide, millions of hours of video are being watched daily from a variety of sources such as live streaming, cable TV, Blu-Ray and DVD.

With the widespread presence of HD, UHD 4K, and recently 8K, televisions, the demand for high-quality versions of low-resolution video has never been greater. However, many of these videos are either limited by the resolution they were originally acquired in, or degraded to accommodate the requirements for specific display devices and to reduce network bandwidth.
When rendering lower resolution video practically all display devices are currently able to perform interpolation (bilinear, bicubic, Lanczos, etc.). This makes edges, textures and abstract shapes look blurry and aesthetically unpleasing. Interpolation is a basic, computationally cheap technique, which has the inherent drawback that no enhancement is done.

It is not cool when your brand new BMW is stuck in first gear. Sure, the car runs, but it is unsatisfying to say the least. As video consumers we should demand video to look as awesome as possible on our devices, but unfortunately the present state of affairs is that we have come to lower expectations for e.g. older content that wasn't produced for our modern, high pixel count displays. The reason being that not many solutions exist to the problem of increasing resolution after the final cut and digital mastering.
Re-digitization and restoration of film stock is a good option in terms of achieving optimal visual results (e.g. Peter Jackson's "They Shall Not Grow Old"). Normally this requires manual handling which comes with a hefty price tag. ML/AI powered tools provide ways of reducing cost in the future, but today these projects very much rely on manual labor.

Generally footage is not recorded on film because the storage medium and handling is too expensive for most use cases. The past 20 years most footage is mostly shot and mastered digitally, and analog tape video recording for TV production has a history dating back to the late 1950s. Unfortunately recreating the original signal at any resolution is a mathematical impossibility (unlike what you would believe by watching CSI and Hollywood movies), but certainly there must be ways to improve upon basic interpolation without breaking the bank. If there is an untapped potential which improves the viewer experience why not go for it?

Super Resolution to the rescue
Super-resolution technology, either on individual images or video, has progressed a lot in recent years and yields significantly better results compared to interpolation. It’s a very attractive research topic and more than 600 papers has been published over the last two decades. These techniques to a certain extent require information to be hallucinated. Most methods are computationally very expensive, and while feasible in a research setting for image processing they are either too slow or not designed for video. Commercial video super-resolution products using fast methods do exist today as plugins for video editing tools and in high-end UHD TV sets, but they are still not common.

Deep Learning techniques such as end-to-end trained Generative Adversarial Networks (GANs) are slowly starting to become state-of-the-art for video, but it is still very much a topic of active research in terms of dealing with issues like temporal consistency. As an example, exciting work has been published very recently by researchers at fast.ai on combining "decrappification" and "deoldification" with Super Resolution. Their results are exciting and shows high quality, high resolution video can now be produced from seriously degraded footage.

However, the major disadvantage of Deep Learning based approaches today is the fact they are not straight-forward to deploy in a production setting. These techniques require a lot of (GPU) memory which becomes an issue when generating UHD 4K and 8K output.

A practical approach
With "PABSR1" ("PAtch-Based Super Resolution 1"), PIXOP has created a patch-based image processing technique that incorporates machine learning in order to produce high-quality versions of low-resolution videos. Our method is largely inspired by "RAISR" ("Rapid and Accurate Image Super Resolution"), the revolutionizing super-resolution technique developed by Google back in 2016. RAISR was motivated by a desire to save transmission bandwidth on Google+ for mobile devices. Its speed/image quality/versatility design trade-off makes RAISR a really interesting candidate for video super-resolution, as well.

It's been quite a journey, though. As as first attempt, I worked for several months back in 2017 to get a full implementation of RAISR running in plain Julia code. Although the RAISR paper is awesome and describes most aspects in great detail, it turned out to be challenging to get all bells and whistles working right.

Early prototype work from 2017 showing a working implementation of RAISR in Julia for video enhancement. Processing all the frames for this short video took more than 36 hours.

PABSR1, which has distinct algorithmic differences and improvements compared to RAISR (e.g. by computing gradients more robustly), when implemented in optimized C++ including various AVX2 intrinsics running on AWS infrastructure, is capable of producing visually convincing results on video. By processing individual frames separately it can produce around 35 frames per second of HD video using CPUs only. This makes video super-resolution practical as a 50 minutes episode of a TV series can be processed in about half an hour.

Trained filters
PABSR1 filters are trained on patches from corresponding low-res and high-res image pairs, according to three edge features:
• Angle, the direction of an edge
• Strength, the edge sharpness
• Coherence, a measure of edge directionality

A lookup hash table is then generated based on these features, the modulo of the pixel position and a combination of least-squares solvers.
A subset of learned filters for 3x super-resolution. The intensity and colour of each kernel value in this visualization designates the weight and sign (red for positive feedback, blue for negative feedback).

Notice how, from left to right, that filters have a selective response to the underlying edge being reconstructed, i.e. as the angle of the edge changes, the gradient angle of the filter rotate accordingly. Similarly, as the strength increases, the sharpness of the filters increases, and the directionality of the filter increases with rising coherence.

At run-time PABSR1 selects and applies the most relevant learned filter. When these filters are applied, they recreate details which are comparable to the original (while also avoiding aliasing issues like Moire patterns and jaggies), i.e. a significant improvement to interpolation.

Sharpness boosting
A powerful advantage of the filter learning approach is the possibility to bake sharpness boosting into the learned filters. This allows e.g. clarity to be enhanced during run-time upscaling; a highly useful property in the context of video in order to compensate for degradations such as blur and compression.

PABSR1 2x upscaling: plain vs sharpness boosted. The learned filters used to produce the right image include sharpness boosting in the training phase. Fine details like e.g. body hair and wood textures stand out significantly clearer as a result.

You might be wondering whether it is possible to get similar results by simply sharpening an interpolated image. However, it does not look nearly as good from my testing. The ML approach used in PABSR1 for learning "optimal sharpening" is superior as it respects image gradients.

Fractional upscaling
Fractional upscaling factors are currently achieved via trilinear interpolation between super-resolved versions of the low resolution image (nearest integer factors, in this case 2x and 3x).
2.25x upscaling achieved by combining intermediate 2x and 3x super-resolved results.

Try it yourself
Additional interactive examples can be found on our website, and PABSR1 can be tested at no cost as part of PIXOP Platform's beta tester program.

www.pixop.com

Image Credit: Denise Jans
VMI.TV Ltd

Top Related Stories
Click here for the latest broadcast news stories.

17/04/2023
Globecast Launches First Video Public Cloud Video Headend
Globecast has developed and launched the first video public cloud video headend, powered by AWS, for a major European Telco. Globecast joined the AWS
15/03/2023
Caton Technology Partners With Osprey Video
Caton Technology has teamed up with Osprey Video to provide an integrated encoder and decoder which connects direct to IP circuits using Caton Transpo
15/02/2024
Fuse Technical Group Selects Matrox Video
Matrox® Video today announced that multimedia system designer and integrator Fuse Technical Group chose Matrox Video's technology to drive SMPTE ST 21
15/02/2024
LiveU Delivers The Power Of IP-Video
This year promises to be a monumental one for live news and sports with major events including the US Presidential Election and the Summer Games in Pa
14/02/2013
Beamr Unveils Breakthrough Video Delivery Technology
Beamr,media compression and delivery experts behind the widely-acclaimed JPEGmini photo compression technology, has unveiled Beamr Video. This enables
01/09/2023
Ross Video - 'From Idea To Audience, Let's Make It Real'
Ross Video has announced its theme for this year's IBC show, 'From idea to audience, let's make it real', highlighting the creative possibilities unlo
01/09/2023
Blustream To Display Full Range Of Video Distribution Solutions
Blustream is to present its full range of video distribution solutions in booth 3612 at CEDIA Expo 2023 in Denver. Integrators will see the new Dante-
31/08/2023
Matrox Video And STAGETEC Announce Joint Demonstration At IBC 2023
Matrox® Video and signal management solution provider STAGETEC have announced a joint demonstration at IBC2023 to launch STAGETEC's Stagenet 1.0 IP si
21/04/2023
FOR-A To Showcase NDI®-Compatible Live Video Production Ecosystem
FOR-A is showcasing a fully NDI®-compatible live video production ecosystem at CABSAT 2023 (stand S1-M10, Dubai World Trade Centre, 16 – 18 May). The
20/04/2023
DTEN's D7x Video & Collaboration Solution Now Certified For Microsoft Teams
DTEN has announced that its DTEN D7X video conferencing & collaboration solution is now certified for Microsoft Teams. DTEN, in collaboration with Mic
19/04/2023
Zero Density Displays Virtual Video Bundle At NAB 2023
Zero Density has announced ZD | Virtual Studio, a new software bundle that lowers the barrier of entry into virtual production. ZD | Virtual Studio is
18/04/2023
Ross Video Teams Up With DreamWall
Ross Video has announced a new partnership with DreamWall, a leading provider of augmented reality and virtual studio services based in Charleroi, Bel
19/05/2017
Take One's Guide To Encoding YouTube Videos At The Best Quality: Pt I
Article credit: Take One. YouTube boasts over one billion viewers every month so it shouldn't be dismissed as an important distribution channel and po
17/07/2015
Avid To Host 4K & Resolution Independence Pro Video Event in New York
Avid will host a 4K & Resolution Independence Pro Video Event in New York on July 29, where attendees will discover how Avid Resolution Independence a
24/06/2005
VGA resolution on the way for Mpeg-4 video enabled mobile devices
Hantro, a leading provider of mobile video technology, has announced that Freescale Semiconductor has integrated their MPEG-4 encoder System on Chip (