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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
2,158件の閲覧回数
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,763件の閲覧回数
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,762件の閲覧回数
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,762件の閲覧回数
mghasan
Contributor I

Thanks Saurabh.

Could you please suggest on how to use HW CSC?

0 件の賞賛
返信
1,764件の閲覧回数
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 件の賞賛
返信