i.MX6Q Android Camera frame rate issue

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

i.MX6Q Android Camera frame rate issue

888 Views
powerprince
Contributor I

When I useing the camera data transfer function to Android Camera App,
Camera frame rate is very low frame rate approximately from 18 to 19 frames.

But , When I test default Android Camera app I can see 30fps.

For Our camera App I used function Camera.setPreviewCallbackWithBuffer() of Android API

For this issue, I attached analysis log file.
In brief, I guess data delay when I send the camera data using RequestManager::handleRequest() function to camea applicatoin.
(Hardware/imx/mx6/libcamera2/ RequestManager.cpp)

Pls, comment helpful for resolve this problem.

at Camera Preview (30fps)

(1) & (2) Is constant in 33ms intervals."acquireCameraFrame():systemTime"

(3) & (4) log print time is also constant intervals of 30 or 40ms.

(5) start to completed request time is 30ms constant intervals.

pastedImage_4.png

When using Callback function.(under 19fps)

Camera.setPreviewCallbackWithBuffer()

(1) is not constant time value(acquireCameraFrame():systemTime)

(2) is not constant log print time

(3) start to completed request time is not constant intervals(30ms~60ms).

pastedImage_6.png

Labels (2)
0 Kudos
4 Replies

537 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello ryan,

      According to your description, the issue should be loacated at Camera App you designed, because default Camera App in android can get normal frame rate, so please check the source code of your application carefully !

Regards,

Weidong

0 Kudos

537 Views
wenmin
Contributor I

Hello Weidong,

    I got the same problem, I.MX6Q Android Camera Can't Get 30Fps preview data.   if we set Camera.setPreviewCallbackWithBuffer or Camera.setPreviewCallback to the camera, and  do nothing with the preview back  onPreviewFrame(byte[] data, Camera camera),

we can only got under 19fps preview data.  if the video resolution is 1080P,we just got under 8fps preview data.

Pls, comment helpful for resolve this problem

0 Kudos

537 Views
saurabh206
Senior Contributor III

Hi,

Wen

Which camera are you using ? USB camera?

0 Kudos

537 Views
wenmin
Contributor I

hi, saurabh

    I'm use the mipi to camera

0 Kudos