What is the best way to do screen capture + H264 encoding on Linux?

Hi there,

My goal is to capture the screen on a Ubuntu 18.04 and encode the image with NVENC.

I’ve looked at several things:

  • ffmpeg for capture + nvenc
  • X11 (doesn’t do zero-copy so it’s not low latency)
  • NvFBC (couldn’t get the sample to work but was told this end-of-life by folks at NVIDIA)

Any guidance/direction?