Nvv4l2h264enc performance problem

Hi,
You may try to allocate NvBuffer in appsrc so that you can put data into the buffers directly, and then run:

appsrc name=appsrc ! video/x-raw(memory:NVMM),format=YUY2,width=1920,height=1080,framerate=30/1 ! nvvideoconvert ! video/x-raw(memory:NVMM), format=NV12, width=1920, height=1080,framerate=(fraction)30/1 ! ...

Please refer to the sample:
Creating a GStreamer source that publishes to NVMM - #7 by DaneLLL