Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).

iPhone CPU 使用率超过100%。

xiuming_z_
Beginner
1,933 Views

Hi,

我使用的是iPhone6Plus, mixed stream上有16个子视频,查看CPU的使用率超过100%, 并且我自己的画面(iPhone)在mixed stream上没有反应。

请问目前iOS端的SDK能支持这么多的视频吗?是否有可以优化的方法?

谢谢你的帮助。

 

0 Kudos
3 Replies
Lei_Z_Intel1
Employee
1,933 Views

HI,

你描述的场景不太正常,正常情况下720p的一进一出大概CPU利用率在50%左右。mix stream中的子画面再多也只算一路流,所以不影响。请确认iOS和MCU之间是否采用H.264编解码方式,如果是VP8那会导致CPU利用率较高。我们的SDK中ConferenceClient可以获取到Stats,其中用codec信息,具体参见SDK guide。如果你使用的是3.2以后的最新包么,如果是我们的sample最默认显示接受流的codec。

另外从你的现象看也许本地流发布失败了,请观察一下有没有错误log。

0 Kudos
xiuming_z_
Beginner
1,933 Views

Hi,

非常感谢您的反馈,我的确是用的VP8,我改成H264试试。

目前使用的SDK是3.1,应该不可以通过ConferenceClient获取Stats。

顺便请问下RTCLocalCameraStreamParameters中的该方法接受的分辨率有哪些,文档中没有看到相关的描述。

/**

  @brief Set the video resolution.

 

  If the resolution specified is not supported on current device, creation will

  failed.

  @param width The width of the video.

  @param height The height of the video.

*/

- (void)setResolutionWidth:(int)width height:(int)height;

0 Kudos
Lei_Z_Intel1
Employee
1,933 Views

目前iOS SDK版本支持的分辨率有352*288,640*480,1280*720和1920*1080。

0 Kudos
Reply