AnsweredAssumed Answered

High CPU usage in imx6dl sabresd with gstreamer pipeline for USB webcam use-case

Question asked by Riyaz Ur Rahman on Feb 28, 2018
Latest reply on Mar 1, 2018 by Riyaz Ur Rahman

I am able to test USB webcam(Logitech HD Webcam C270) using gstreamer on IMX6DL-SDP sabresd platform.

I am trying with latest fsl-yocto-4.9.11-1.0.0 release. This Webcam support YUV and MJPEG format.

Below is gstreamer pipeline:

1. YUV format

gst-launch-1.0 imxv4l2src device=/dev/video3 ! video/x-raw, width=640, height=480, format=YUY2, framerate=30/1 ! imxv4l2sink device=/dev/video16 sync=false

2. MJPEG format

gst-launch-1.0 imxv4l2src device=/dev/video3 ! image/jpeg, framerate=30/1 ! jpegparse ! jpegdec ! videoconvert ! imxv4l2sink device=/dev/video16 sync=false

 

I am concerned about CPU usage, with YUV format gst pipeline CPU usage is around 35-45% and with MJPEG gst pipeline is even more i.e. around 52-58%. I wanted to know whether this much CPU usage with USB webcam use-case expected? Could you please suggest some configuration in kernel/boot arguments to reduce this CPU usage? 

Outcomes