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
  • DRM/KMS APIs
  • 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?

Hi!

I have exactly the same question.
Have you solved it somehow? Can you give me some indication?

Thanks!

x11grub in ffmpeg or nvfbc.