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

In 搜索 of Better Encoding Quality for WebRTC

文章特色图片

Suffice it to say that Web­RTC is finally out of kindergarten and moving into the elementary grades. 到底是哪个等级? 好吧, that likely depends on which web browser you’re using and which server technology or platform 你的 Web­RTC implementation uses.

大多数 我的客户项目到目前为止使用 Web­RTC ingest (or publishing) via a web brow­ser, in which JavaScript application programming interfaces can capture audio and 从视频eo from locally connected devices like a webcam and microphone. 像这样, the 从视频eo 质量 of the live stream is relying on the browser vendor’s 编码 implementation, 这可能 利用你的GPU或CPU. (提示:在Chrome上,你 可以使用URL chrome: / / gpu 为了获得统计数据 你的 local machine’s GPU capabilities as supChrome移植.) Browser-based 编码 for Web­RTC has limitations, specifically with variable frame sizes, frame rates, and bitrates while publishing. 这些可变性会造成严重后果 havoc on server-side recordings or within 从视频eo-switching software that is able to consume Web­RTC提要.

Of these limitations, the 从视频eo bit­rate is most troubling when it comes to high-质量 从视频eo. I find that WebRTC streams published by current web browsers have an upper limit for 从视频0比特率,通常在2Mbps左右. In Chrome, you can monitor the outbound bandwidth by tapping the real-time reports generated by the URL chrome: / / webrtc-internals. 试一试 你的self anytime you’re using a local capture of 你的 webcam in a browser-based Web­RTC publish荷兰国际集团(ing)会话. 你可能会看到类似的结果gardless的 which frame rate and resolution you choose for the capture. 如果你按同样的键eo content with a non-browser encoder solution, such as Millicast’s OBS Web­RTC software (a free download, based on the same code as the original OBS software), 你可以取得更高的成就 质量. This OBS variant can push to Millicast’s platform as well as any server running Janus Web-RTC服务器,它是开源的.

举个例子, 图1 (下图) 实时显示 bitrate graph of a Chrome-captured Web­RTC publish荷兰国际集团(ing)会话 for a virtual webcam and mic driven by Telestream’s Wirecast into Millicast的平台. Here, the 从视频eo bitrate is averaging 2Mbps. 

Chrome编码会话

图1. Chrome编码会话

图2(下面) 播放同样的视频 content being streamed directly via Web­RTC into Millicast with its OBS Web­RTC software, 这是使用FFmpeg和x264 Hood对内容进行实时编码. (Note that OBS can also utilize the GPU for NVENC 编码.)设置OBS的输出设置 to 8Mbps for the 从视频eo bitrate, and the results in 图2 show an average 8Mbps bit­rate be用于Web-RTC播放.

OBS WebRTC编码会话

图2. OBS WebRTC编码会话

It’s beyond the scope of this column to discuss the implications of simulcast Web­RTC on 编码 performance within software solutions such as OBS, but bear in mind that both client- and server-side Web­RTC solutions can assume the role of pro从视频ing tiered resolutions 用于自适应流播放.

What do we do in the meantime if there isn’t an option to use a Web­RTC publisher for a Web­­RTC播放场景? 许多Web-RTC平台as-a-service (PaaS) vendors and streaming server products will accept Real-Time Messaging Protocol (RTMP) ingest sessions and transcode AAC audio to Web­RTC-compatible 作品音频. 像这样, you can achieve higher-质量 WebRTC playout streams by 编码 与任何现有的RTMP编码解决方案.

在其中之一 去年的专栏(go2sm.com/web-rtcproblem),我强调了a的缺失 consistent signaling approach among Web­RTC ser­ver vendors and made a plea for Web­RTC vendors to implement a standard connection 设置. I’ve since seen WHIP (Web­RTC HTTP Ingestion Protocol), a proposal from CoSMo Software’s Alex Gouaillard and Sergio Garcia Murillo. WHIP offers the potential to unify the next  real-time 编码 solutions by pro从视频ing an alternative and improvement to RTMP, allowing a wider range of audio and 从视频eo codecs. 希望,流行的产品在现场 从视频eo-switching software space, such as Wirecast, vMix, Vimeo Studio 6, Boinx Software’s 的主分支 OBS, will incorporate WHIP to give every web broadcast有机会使用Web-RTC. On the ingest side, I expect to see similar adop更多的WebRTC PaaS供应商和我Dia服务器产品.

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

你的媒体如何适应Web3?

不要只看炒作和猴子. 非功能性测试, 区块链, and other elements of the new decentralized web—Web3—have serious implications for 从视频eo creators and publishers.

Testing Wowza's 大规模实时流

Wowza's new ultra-low latency offering can deliver either an RTMP stream or a WebRTC stream, with WebRTC outperforming the legacy protocol

The Future Is Real Time, and It Starts Now

Where and how does "real time" fit into 你的 workflows in this "COVID and beyond" era? Similar to global wars accelerating advan­ces in medicine such as plastic surgery, COVID has pushed all of us working in streaming media to rethink, 创新, 优化, and rebuild many components of our day-to-day responsibilities. 

Judging Apple's Advanced 视频质量 Tool

作为一个度规, Apple's Advanced 视频质量 Tool (AVQT) showed some bright spots, but it's hard to see it bumping VMAF or SSIMPLUS from real-world workflows without a lot more verification.