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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,612 Views
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

Labels (3)
0 Kudos
1 Solution
1,217 Views
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

View solution in original post

0 Kudos
3 Replies
1,216 Views
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 Kudos
1,216 Views
mghasan
Contributor I

Thanks Saurabh.

Could you please suggest on how to use HW CSC?

0 Kudos
1,218 Views
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 Kudos