-->
Save your seat for 纽约流媒体 this May. 现在注册!

压缩主义者的啊哈! 瞬间:《百家乐app下载》

文章特色图片

As you may have guessed from the title, this column is about how using the Lanczos filter to scale downward during encoding can increase the quality of your lower-resolution videos. But I’ll start with an anecdote about 零 Mostel, an actor and comedian famous for his portrayal of Tevye in Fiddler on the Roof.

正如我记得看到的那样 《百家乐软件》 作为一个孩子, Mostel was hit by a New York City bus, crushing his leg and costing him 4 months in the hospital to avoid amputation. Saving the massively scarred leg was considered a significant medical achievement, and Mostel’s doctor asked if he could present his case at a medical meeting. Mostel同意, and after describing the accident and treatment, the doctor asked him to raise his pant leg to show the result. Mostel did so, and after a moment of awed silence, the physicians applauded wildly. Once the cheers died down, Mostel’s doctor sighed and said, 另一条腿, 零.”

I had an “other leg” experience while testing how much using the Lanczos filter during downscaling improved the output of the compressed quality. The genesis of this testing was a blog I wrote on the 流媒体学习中心 about how the scaling method used to upscale lower-resolution videos for comparing to the source impacted Video Multimethod Assessment Fusion (VMAF), 峰值信噪比(PSNR), 和SSIM评分. 当然, this didn’t change the quality of the actual compressed file, 仅仅是度量分数, and my point was that you had to use the same technique with all tools to produce consistent results.

One respected compressionist commented, “I always apply FFmpeg with [the] Lanczos method of down-scaling” and supplied the switch “-vf scale=852x480 -sws_flags lanczos.” To confirm his premise, I decided to run some tests.

我从480便士开始, scaling using the default switch (-s 852x480) and the Lanczos method via the script above. This produced a VMAF difference of less than 1 point, 哪个可能值得追逐, 但没什么值得大书特书的. Then I revised my script to 180p and saw a huge difference between default and Lanczos scaling.

I had been working with gaming footage, so my first test clip was Euro Truck Simulator 2. 我认为, “合成画面, 的结果,” so then I tested a talking-head clip and saw the same huge difference—not just in VMAF score, but in side-by-side visual comparisons.

Every compressionist fantasizes about finding the perfect switch, the configuration option that few know about and that will make a huge difference in output quality. 我以为我找到了我的, but then went back and looked at my command line and thought, 另一条腿, 零.” I had fouled up the command line and had been comparing 480p videos scaled with Lanczos to 180p videos scaled using the default switch. 当然 there was a huge difference.

所以我修复了命令行, ran comparisons on three files (the two above plus the Harmonic football test clip), and produced the average results shown in the table. For perspective, a VMAF differential of 6 constitutes a just noticeable difference. So while I’ll probably add Lanczos-based downscaling to the lower rungs of my encoding ladders, it’s not something I’ll expect my viewers to applaud wildly about.

[This article appears in the July/August 2019 issue of 流媒体杂志 “另一条腿,兰佐斯。."]

流媒体覆盖
免费的
合资格订户
现在就订阅 最新一期 过去的问题
相关文章

Tutorial: How to Leverage HEVC Compression with the Teradek VidiU Go

Paul Schmutzler explains how you can take advantage of the cost and bandwidth savings of HEVC in your livestreams with the Teradek VidiU Go.

Demuxed '18 Highlights: The Future of Codecs and Compression

The annual conference for video engineers by video engineers produced must-watch sessions from Akamai, YouTube, Mux, 还有很多其他的. Here's a survey of useful sessions, along with a link to the video library.

Video: What's the Best Codec for 4K Compression and Delivery?

Twitch's Tarek Amara discusses the pros and cons of different codecs for video compression and delivery for live streaming and VOD.

Review: V-Nova Perseus: Does its Compression Live Up to the Hype?

London-based V-Nova has made some impressive claims about Perseus, its compression technology. 流媒体's preliminary testing shows that it lives up to some of them.

提及的公司及供应商