I'm trying to run a display preview of MJPEG 1920x1080@30fps USB camera connected to our i.MX8MQ board. I'm using the following gstreamer pipeline under Yocto L14.14.98:
gst-launch-1.0 v4l2src device=/dev/video2 ! "image/jpeg" ! vpudec ! videoscale ! waylandsink
Sometimes I get 1fps and sometimes no picture at all. With software decoding pipeline
gst-launch-1.0 v4l2src device=/dev/video2 ! "image/jpeg" ! jpegdec ! videoscale ! waylandsink
I get 10fps and 90% CPU load. I'd appreciate your help finding a correct pipeline that utilizes VPU decoder.