Back to Browse

Using `kmsgrab` With FFmpeg For Higher Performance Screen Capture

1.2K views
Nov 16, 2024
11:43

In this video, I go over how to use kmsgrab with ffmpeg, what the kmsgrab filter is, and why you might want to - or not want to use it. If you've used x11grab with ffmpeg or ximagesrc on gstreamer, you've probably noticed that they both tend to start slowing down when you go above 1080p, potentially also degrading the performance on other applications. FFmpeg however, also supports doing screen capture using kmsgrab, which works using the output buffer on the GPU which doesn't block the x server, and also allows for easier hardware encoding. NOTE: If you are on Wayland (particularly systems using wlroots), you have newer and better options for screen capture! Look into the new plugins on OBS (which can do direct capture on Wayland or through Pipewire. Thanks for watching! Produced by Tony Tascioglu https://tonytascioglu.com If you enjoyed this video or learned something new, please consider subscribing!

Download

1 formats

Video Formats

360pmp415.5 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Using `kmsgrab` With FFmpeg For Higher Performance Screen Capture | NatokHD