How to reduce cpu load for gstreamer encoding

Hi,
There is a memory copy in

appsrc ! video/x-raw ! nvvidconv ! video/x-raw(memory:NVMM) ! …

You can use nvv4l2camerasrc to capture the frame data into NVMM buffer directly. By default the plugin supports UYVY. Please try this patch and rebuild the plugin to support YUY2:
Macrosilicon USB - #5 by DaneLLL