Zero-copy screen capture

Hi,
Not sure how to do screen capture in QT. Would need other users to share experience.
By default you can run gstreamer command to capture the screen:

$ gst-launch-1.0 ximagesrc num-buffers=100 use-damage=0 ! video/x-raw ! nvvidconv ! 'video/x-raw(memory:NVMM),format=NV12' ! nvv4l2h264enc ! h264parse ! qtmux ! filesink location=a.mp4