简体   繁体   English

WebRTC是否支持视频的自适应比特率流传输?

[英]Does WebRTC support Adaptive Bitrate Streaming for video?

I am using WebRTC for developing one of my applications. 我正在使用WebRTC开发我的应用程序之一。 There is no clarity on whether WebRTC natively supports adaptive bitrate streaming of video packets? WebRTC是否本身就支持视频数据包的自适应比特率流传输还不清楚? Does VP8 / VP9 have adaptive bitrate encoding support? VP8 / VP9是否支持自适应比特率编码? Is bitrate_controller WebRTC's implementation of ABR? bitrate_controller WebRTC是ABR的实现吗?

Can anyone please throw more light on this? 任何人都可以对此进行更多介绍吗? I find no conclusive evidence that WebRTC natively supports Adaptive streaming for Video. 我没有确凿的证据表明WebRTC本机支持视频自适应流。

Based on the WebRTC documentation found on this website: https://hpbn.co/webrtc/#audio-opus-and-video-vp8-bitrates I found this: 基于在此网站上找到的WebRTC文档: https : //hpbn.co/webrtc/#audio-opus-and-video-vp8-bitrates,我发现了这一点:

When requesting audio and video from the browser, pay careful attention to the size and quality of the streams. 从浏览器请求音频和视频时,请特别注意流的大小和质量。 While the hardware may be capable of capturing HD quality streams, the CPU and bandwidth must be able to keep up! 虽然硬件可能能够捕获高清质量的流,但CPU和带宽必须能够跟上! Current WebRTC implementations use Opus and VP8 codecs: 当前的WebRTC实现使用Opus和VP8编解码器:

  • The Opus codec is used for audio and supports constant and variable bitrate encoding and requires 6–510 Kbit/s of bandwidth. Opus编解码器用于音频,并支持恒定和可变比特率编码,并且需要6–510 Kbit / s的带宽。 The good 好的
    news is that the codec can switch seamlessly and adapt to variable 新闻是编解码器可以无缝切换并适应变量
    bandwidth. 带宽。
  • The VP8 codec used for video encoding also requires 100–2,000+ Kbit/s of bandwidth, and the bitrate depends on the quality of the streams: 720p at 30 FPS: 1.0~2.0 Mbps 360p at 30 FPS: 0.5~1.0 Mbps 180p at 30 FPS: 0.1~0.5 Mbps 用于视频编码的VP8编解码器还需要100–2,000 + Kbit / s的带宽,并且比特率取决于流的质量:30 FPS时为720p:30 FPS时为1.0〜2.0 Mbps 360p:0.5FPS时为0.5〜1.0 Mbps 180p 30帧/秒:0.1〜0.5 Mbps

As a result, a single-party HD call can require up to 2.5+ Mbps of network bandwidth. 因此,单方高清通话可能需要高达2.5+ Mbps的网络带宽。 Add a few more peers, and the quality must drop to account for the extra bandwidth and CPU, GPU, and memory processing requirements. 添加更多对等端,并且质量必须下降以考虑到额外的带宽以及CPU,GPU和内存处理要求。

So as far as I understand it, both codec will adapt the audio and video stream to the available bandwidth. 据我所知,两个编解码器都将使音频和视频流适应可用带宽。 Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM