Run 1920x1080 by gstreamer only can run at 15fps on IMX6

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

Run 1920x1080 by gstreamer only can run at 15fps on IMX6

1,116 Views
terrychen
Contributor I

Hi all,

I test it on imx6qsabresd and version is 3.14.28-1.0.1.

I change the display output to HDMI and type command "gst-launch-1.0 imxv4l2src device=/dev/video1 ! 'video/x-raw, capture-mode=5, format=(string)NV12, width=1920, height=1080, framerate=(fraction)30/1' ! imxv4l2sink".

When I exit, gstreamer tell me the frame rate only at 15fps.

Is there anyone know how to fix it?

Labels (4)
0 Kudos
5 Replies

766 Views
BiyongSUN
NXP Employee
NXP Employee

In the BSP default, /dev/video1 is the second camera.

0 Kudos

766 Views
gary_bisson
Senior Contributor III

Hi Terry,

Could you share what is coming from your /dev/video1? Are you sure this source supports a 1080p resolution? If not, it means that you are scaling the image in software which could explain the low framerate.

Could you try changing the pipeline to use a fakesink instead of the imxv4l2sink. This would tell if the problem comes form the source or the sink or the conversion in between.

Regards,

Gary

0 Kudos

766 Views
terrychen
Contributor I

Hi /dev/video1 is ov5640 mipi, capture-mode=5 is 1080p30 sensor mode.

I check the function camera_callback in Mxc_v4l2_capture.c and it runs at 30fps.

So I think the problem is not from sensor.

I use fakesink but does not come out any more information.

I'm not familiar with gstreamer, can you give me more information?

Thank you.

Regards,

Terry

0 Kudos

766 Views
BiyongSUN
NXP Employee
NXP Employee

Please try /dev/video17, /dev/video18 or /dev/video19.

You can ls /dev/video* to get all video device.

0 Kudos

766 Views
terrychen
Contributor I

Hi all,

Thanks for your reply.

I find out the solution from here.

Re: MIPI Camera preview half fps in Yocto 3.14.28_1.0.1patch

I need replace imxv4l2sink to autovideosink.

It looks like the problem comes from imxv4l2sink but i still doesn't know the root cause.

0 Kudos