Opentok SDK 使 Android 和 iOS 设备过热
Opentok SDK making Android and iOS devices too hot
我正在使用 Opentok SDK 在 IOS 和 Android 设备上使用 Nodejs 服务器进行视频通话。
最大4人的群呼场景,直播超过10分钟,两台设备都会发热。
有人对此有解决方案吗?
我们不能降低视频质量。
这可能是因为您使用的是默认视频代码 VP8,它不是硬件加速的。您可以将每个发布者的编解码器更改为 H.264 或 VP8,但这种方法有一些 trade-offs。
他们缺乏 H.264 SVC 支持令人失望,但根据您的用例可能没问题。如果您阅读了整篇文章 post 并且仍然需要更多指导,我建议您联系他们的开发人员支持团队,and/or post 在此处详细了解您的用例。
这里有一些 more context from the OpenTok Documentation,但我建议您阅读整个页面以了解您需要做出妥协的地方:
The VP8 real-time video codec is a software codec. It can work well at lower bitrates and is a mature video codec in the context of WebRTC. As a software codec it can be instantiated as many times as is needed by the application within the limits of memory and CPU. The VP8 codec supports the OpenTok Scalable Video feature, which means it works well in large sessions with supported browsers and devices.
The H.264 real-time video codec is available in both hardware and software forms depending on the device. It is a relatively new codec in the context of WebRTC although it has a long history for streaming movies and video clips over the internet. Hardware codec support means that the core CPU of the device doesn’t have to work as hard to process the video, resulting in reduced CPU load. The number of hardware instances is device-dependent with iOS having the best support. Given that H.264 is a new codec for WebRTC and each device may have a different implementation, the quality can vary. As such, H.264 may not perform as well at lower bit-rates when compared to VP8. H.264 is not well suited to large sessions since it does not support the OpenTok Scalable Video feature.
我正在使用 Opentok SDK 在 IOS 和 Android 设备上使用 Nodejs 服务器进行视频通话。
最大4人的群呼场景,直播超过10分钟,两台设备都会发热。
有人对此有解决方案吗? 我们不能降低视频质量。
这可能是因为您使用的是默认视频代码 VP8,它不是硬件加速的。您可以将每个发布者的编解码器更改为 H.264 或 VP8,但这种方法有一些 trade-offs。
他们缺乏 H.264 SVC 支持令人失望,但根据您的用例可能没问题。如果您阅读了整篇文章 post 并且仍然需要更多指导,我建议您联系他们的开发人员支持团队,and/or post 在此处详细了解您的用例。
这里有一些 more context from the OpenTok Documentation,但我建议您阅读整个页面以了解您需要做出妥协的地方:
The VP8 real-time video codec is a software codec. It can work well at lower bitrates and is a mature video codec in the context of WebRTC. As a software codec it can be instantiated as many times as is needed by the application within the limits of memory and CPU. The VP8 codec supports the OpenTok Scalable Video feature, which means it works well in large sessions with supported browsers and devices.
The H.264 real-time video codec is available in both hardware and software forms depending on the device. It is a relatively new codec in the context of WebRTC although it has a long history for streaming movies and video clips over the internet. Hardware codec support means that the core CPU of the device doesn’t have to work as hard to process the video, resulting in reduced CPU load. The number of hardware instances is device-dependent with iOS having the best support. Given that H.264 is a new codec for WebRTC and each device may have a different implementation, the quality can vary. As such, H.264 may not perform as well at lower bit-rates when compared to VP8. H.264 is not well suited to large sessions since it does not support the OpenTok Scalable Video feature.