CPU load is getting upto 50% when USB Camera is used

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

CPU load is getting upto 50% when USB Camera is used

跳至解决方案
1,710 次查看
mghasan
Contributor I

Hi

When external USB camera is used for preview or recording (VGA resolution) CPU load is shooting up to 50% where as with internal camera it is only using 5%.

Is it possible to reduce CPU load for USB camera?

In our use case, CPU load is going up to 97% when we use USB camera during VOIP video call, which involves

  1. Displaying own preview from USB camera
  2. Displaying remote party video
  3. VPU H264 encoding (from USB camera)
  4. VPU H264 Decoding (remote party video).

Where as for internal camera cpu usage is up to 75%.

In practical, USB camera is not usable along with above operations for long duration calls due to high CPU usage.

Please let us know if there is any optimization possible to reduce CPU load.

Board: IMX6 SabreSD quad core

Android: 4.2.2.1

标签 (3)
0 项奖励
1 解答
1,315 次查看
saurabh206
Senior Contributor III

Hi

Hasan

You need to use IPU task to do the HW CSC.

Please check IPU example which will help you to implement it.

Thanks

Saurabh

在原帖中查看解决方案

0 项奖励
3 回复数
1,314 次查看
saurabh206
Senior Contributor III

Hi,

USB camera interface is not optimized , it is doing software color conversion for preview frame and frames to be encoded. Because of these two CSC load on CPU is too high.

Thanks

Saurabh

0 项奖励
1,314 次查看
mghasan
Contributor I

Thanks Saurabh.

Could you please suggest on how to use HW CSC?

0 项奖励
1,316 次查看
saurabh206
Senior Contributor III

Hi

Hasan

You need to use IPU task to do the HW CSC.

Please check IPU example which will help you to implement it.

Thanks

Saurabh

0 项奖励