-->

开始测试的时间:FFmpeg第4轮.0和增加AV1支持

文章特色图片

FFmpeg满4岁了.几个星期前, an event I planned to leave unheralded until I read Tim Siglin’s latest research report entitled “Real-World HEVC Insights: Adoption, Implications, and Workflows.” In addition to the much more important HEVC-related implementation details, 报告指出, 在406名合格的受访者中, 36%的人在编码工作流程中使用FFmpeg. Although FFmpeg has certainly weaved its way into my daily encoding chores, 我不知道总数会这么高, 使一个主要版本值得注意.

FFmpeg 4里有什么.0? 你可以 通读整个列表, but it’s the usual assortment of new codecs and features, 包括NVIDIA的NVDEC硬件加速编解码器, 改进的元数据编辑, 以及对海视SRT的支持. What really floated my boat, however, was the addition of AV1 support. Finally, after years of talking about the codec, I could finally run my own tests.

我发现了什么?? 结果喜忧参半. The quality was very good, but encoding times were long and decode requirements seemed very high. 编码时间有多长? 一个5秒的片段 钢铁之泪 1080p source footage took 23 hours and 46 minutes to encode (1,426 minutes) on my 48-core HP Z840 workstation using the default speed preset. This translates to 285 hours (and change) to encode one minute of 1080p video. 相比, encoding with x265 using the “veryslow” preset took about 3 minutes, VP9 using the “0 speed” setting (highest quality) took about 2 minutes, 和H.264使用“非常慢”预设花了10秒. 在这个简单的试验中, AV1的时间是x265的475倍, 比VP9长713倍, 大概是8,比H长500倍.264.

我会说在AV1编码期间, FFmpeg在Z840上只消耗一个或两个内核, and for later trials I was able to encode 10 files simultaneously while only extending encoding time by about 10 percent. But the same is true for VP9, and to a lesser extent, HEVC. Most commercial AV1 encoders will have to divide the video into chunks, 分别编码, and piece them back together to achieve any kind of throughput. 当然, 这减少了线性时间, 它不会减少机器时间, 这直接转化为成本. 不管你怎么看, AV1 streams will take an order of magnitude longer in machine time to process, 这直接转化为成本.

质量怎么样?? 这里我关注的是AV1 vs. HEVC. I targeted the AV1 encode at 3Mbps, and the file rendered at 2,854Kbps. 我以不同的数据速率运行了几个HEVC编码, 还有一个4,500Kbps HEVC file delivered almost identical video multimethod assessment fusion (VMAF) and peak signal-to-noise ratio (PSNR) quality. So, with my 5-second test clip, AV1 delivered equivalent quality at a 36.数据速率降低58%. 不管你怎么看,这都令人印象深刻.

解码证明并非如此. 在这里,我改用了我的惠普ZBook Studio G3笔记本电脑, powered by a single Xeon E3-1505M CPU and NVIDIA M1000M GPU, 哪个可能有两个H.264和HEVC解码硬件. Then I used FFmpeg to convert the encoded files to Y4M4 format on the notebook’s SSD drive. H.264转换为20.6倍实时,HEVC在12.1x, VP9在10点.2x和AV1 (1.实时. The AV1 results are close enough to real time to make you wonder if there’s some kind of speed gate in the decoder, 而我没有时间去探索.

It was right about then that I discovered that FFmpeg had just dropped a new build (4.01). 叹息. 随着最后期限的临近, 我不去, 并发誓要对新版本进行更广泛的测试, including asking MulticoreWare if I should tune for PSNR when measuring with VMAF, 我没有为上面提到的结果做什么. 即使质量结果站得住脚, nothing I saw in AV1 made me think that it would soon be relevant for producers who don’t periodically encode streams viewed by millions of people. If you’d like to see for yourself, check out the newly published 2018 edition of my book, Learn to Produce Video With FFmpeg in 30 Minutes or Less, which covers encoding AV1 and other new features in FFmpeg 4.0

[本文发表于2018年9月号。 流媒体杂志 当“FFmpeg”4岁时.0."]

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

如何使用PowerShell和BASH为FFmpeg编写脚本

FFmpeg was designed as a cross-platform solution for video and audio recording, 转换, 以及使用简单的静态命令行进行流式传输. Using variables and "for loops" in a command string simplifies the reuse of existing scripts and helps automate their operation. While you can't use these scripts in the Windows Command window, you can use Microsoft PowerShell in Windows and Bash on Linux and the Mac. In this tutorial, you'll learn how to create and run such scripts with PowerShell and Bash.

如何编码与FFmpeg 5.0

而不是专注于随机的任务, this tutorial will walk you through the fundamentals of encoding with the latest version of FFmpeg.

Discover the Six FFmpeg Commands You Can’t Live Without

任何进行性能或基准测试的人, please take a look: The six commands in this article help with essential tasks that crop up in any studio or encoding facility.

Good 新闻: AV1 Encoding Times Drop to Near-Reasonable Levels

The first tests of AV1 showed glacial encoding times that seriously detracted from the codec's usability. But since then encoding times have improved enough that AV1 is almost usable—and we've got the charts to prove it.

如何自动化FFmpeg和Bento4与Bash脚本

只有一些初学者级别的脚本, you can encode and package multiple filds to HLS and DASH output using open source tools.

HEVC, VP9, AV1, and VVC: Presenting a Codec Update in 11 Charts

AV1是人们所期望的那样吗? How much better would HEVC be doing with a fair royalty policy? Look to these charts for the answers to tomorrow's codec questions.

AV1:第一眼

FFmpeg 4.0 gives many video engineers their first chance to test the new AV1 codec against H.264、HEVC和VP9. 结果? 在我们的测试中, 质量令人印象深刻, but glacially slow encoding times make AV1 a non-starter for most publishers until hardware acceleration becomes available.

Commentary: HEVC and AV1—A Behind-the-Scenes Look at the Video Codec Race

For the streaming industry, NAB will be all about HEVC vs. AV1. Here's a look at the most important issues to consider when evaluating the two codecs.

评价加冕了H的国王.264编码器

FFmpeg might be a free download, but there's still a cost that goes with it. Robert Reinhardt explains why this encoder isn't right for every company.

提及的公司及供应商