【问题标题】:Janus-Gateway WebRTC ResolutionJanus-Gateway WebRTC 分辨率
【发布时间】:2015-08-03 15:31:57
【问题描述】:

我在 ubuntu 服务器上安装了 Janus-WebRTC 网关并开始创建多用户聊天和广播。 什么时候运行这个例子Janus example 在我自己的服务器中,无论我的上传带宽如何,我总是得到一个糟糕的分辨率 640x480。 我尝试更改 janus.js 上的默认值,但没有结果。

另一个可能有帮助的信息。 当我运行 janus 并运行示例时,我收到此警告

[WARN] 为视频获取大量 NACK(慢速上行链路),强制降低 REMB:65536

有没有办法处理这个问题以实现最佳分辨率?

【问题讨论】:

  • 如果您遇到 NACK,这通常意味着您的上游速度不够快,因此更改为更高分辨率只会使问题恶化

标签: webrtc janus-gateway


【解决方案1】:

这可以在媒体对象中指定,该媒体对象将作为参数传递给createOffer 函数,例如分辨率为 1280x720。

var media {var = video: "16-hires: 9"};

echotest.createOffer ({
    media: media,
        success: function (jsep) {
        echotest.send ({"message": body, "jsep" jsep});
    },
    error: function (error) {
        // An error has occurred ...
    }
});

更多详情请见this。

【讨论】:

    【解决方案2】:

    对于 videoroomtest.js 在 createOffer 对象中添加视频参数 video: "hires/hires-16:9/hdres/fhdres/4kres"

    sfutest.createOffer(
        {
            // Add data:true here if you want to publish datachannels as well
            media: { audioRecv: false, videoRecv: false, audioSend: useAudio, videoSend: true },    
    

    到

    sfutest.createOffer(
        {
            // Add data:true here if you want to publish datachannels as well
            media: { audioRecv: false, videoRecv: false, audioSend: useAudio, videoSend: true, video:"hires" }, 
    

    【讨论】:

      猜你喜欢
      • 2018-03-06
      • 1970-01-01
      • 2021-06-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多