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

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

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

Jump to solution
1,859 Views
Danube
Contributor IV

Hi

 

We are using Freescale SabreSDP demo board to test it.

My  Uboot setting is 1920x1080M@60 HDMI outout only.

We had test half fps issue in Yocto 3.14.28_1.0.1patch when we set mipi camera is 1920x1080 30 fps preview.

It don't happen in Yocto 3.10.53

 

My command is

 

gst-launch-1.0 imxv4l2src device=/dev/video1 ! 'video/x-raw, format=(string)NV12, width=1920, height=1080, framerate=(fraction)30/1' ! queue ! imxv4l2sink -v

 

3_10_53 log

 

^Chandling interrupt.

Interrupt: Stopping pipeline ...

Execution ended after 0:00:14.391323002

Setting pipeline to PAUSED ...

Setting pipeline to READY ...

Setting pipeline to NULL ...

Total showed frames (427), playing for (0:00:14.853627335), fps (28.747).

Freeing pipeline ...

root@imx6qsabresd:~#

 

 

3.14.28 log

 

 

^Chandling interrupt.

Interrupt: Stopping pipeline ...

EOS on shutdown enabled -- Forcing EOS on the pipeline

Waiting for EOS...

Got EOS from element "pipeline0".

EOS received - stopping pipeline...

Execution ended after 0:00:08.907332001

Setting pipeline to PAUSED ...

Setting pipeline to READY ...

Setting pipeline to NULL ...

Total showed frames (108), playing for (0:00:08.908042334), fps (12.124).

Freeing pipeline ...

 

more detail log , you can see attached file.

Original Attachment has been moved to: 3_14_28_capturelog.txt.zip

Original Attachment has been moved to: 3_10_53_capturelog.txt.zip

Labels (5)
0 Kudos
Reply
1 Solution
1,369 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi Apollo,

Can you try with the next pipeline?

gst-launch-1.0 -v imxv4l2src device=/dev/video1 ! video/x-raw,width=1920,height=1080 ! autovideosink

I tried it out and it seems to be working.

/Alejandro

View solution in original post

0 Kudos
Reply
4 Replies
1,369 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

I just tried the next :

gst-launch-1.0 imxv4l2src device=/dev/video1 ! 'video/x-raw, format=(string)NV12,  framerate=(fraction)30/1' ! queue ! imxv4l2sink -v

and I got the below output uisng 3.14.28

handling interrupt.

Interrupt: Stopping pipeline ...

Execution ended after 0:00:18.172176669

Setting pipeline to PAUSED ...

Setting pipeline to READY ...

Setting pipeline to NULL ...

Total showed frames (469), playing for (0:00:18.177413336), fps (25.801).

Freeing pipeline ...

I just removed the height and width of the pipeline.

Best Regards,

Alejandro

0 Kudos
Reply
1,369 Views
Danube
Contributor IV

Hi alejandrolozano,

If removed the height and width of the pipeline ,I will see default height is 640 , width is 480.

We need to test 1920x1080 30 fps MIPI camera input and output to 1080p60 HDMI.

We also using 3.14.28 mxc_v4l2_overlay function to test this function , it don't has fps lost.

./mxc_v4l2_overlay.out -di /dev/video1 -iw 1920 -ih 1080 -ow 1920 -oh 1080 -fr 60 -m 5 -r 0 -fg -t 100

It seem gstream1.0 issue.

0 Kudos
Reply
1,370 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi Apollo,

Can you try with the next pipeline?

gst-launch-1.0 -v imxv4l2src device=/dev/video1 ! video/x-raw,width=1920,height=1080 ! autovideosink

I tried it out and it seems to be working.

/Alejandro

0 Kudos
Reply
1,369 Views
Danube
Contributor IV

Hi 

gst-launch-1.0 -v imxv4l2src device=/dev/video1 ! video/x-raw,width=1920,height=1080 ! autovideosink

Thanks ...

Apollo Chang

0 Kudos
Reply