i.MX8M Plus: Lower FPS with visible sink compared to fakevideosink in GStreamer pipeline

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

i.MX8M Plus: Lower FPS with visible sink compared to fakevideosink in GStreamer pipeline

387 Views
Olivia
Contributor I

 

Hi NXP Team,

I’m working on an i.MX8M Plus platform using:

  • Yocto Mickledore

  • Kernel 6.1.36

  • Sensor output: YUYV (YUY2), 1280x720

I'm testing camera performance using GStreamer and noticed a big difference in FPS depending on the sink used.

Test 1: Using fakevideosink

gst-launch-1.0 -v v4l2src device=/dev/video2 ! video/x-raw,width=1280,height=720,format=YUY2 ! videoconvert ! fpsdisplaysink video-sink=fakevideosink sync=false

Result: ~88 FPS

Sample log:

rendered: 360, dropped: 0, current: 88.04, average: 88.29

Test 2: Using default visible sink

gst-launch-1.0 -v v4l2src device=/dev/video2 ! video/x-raw,width=1280,height=720,format=YUY2 ! videoconvert ! fpsdisplaysink sync=false 

Result: ~60 FPS

There are no dropped frames in either case, but the visible sink is clearly limiting the performance.

Question:
How can I achieve the same high FPS (88) with a visible video output? Is this a limitation of the default sink or something else? Any suggestions for improving display performance?

Thanks in advance.

0 Kudos
Reply
1 Reply

323 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

You achieve more fps when the MPU is not using the GPU and other general applications but in general your results seems ok.

Regards

0 Kudos
Reply