Is there way to capture wayland with ffmpeg?
from Waffelson@lemmy.world to linux@lemmy.ml on 31 Jul 15:31
https://lemmy.world/post/33764100

I know that OBS has pipewire window/screen capture but I want to use ffmpeg to capture as I can use x11grab on xorg

#linux

threaded - newest

bacon_pdp@lemmy.world on 31 Jul 15:46 next collapse

Depends on if your Window Manager supports the extension

www.phoronix.com/…/Wayland-Merges-Screen-Capture

TMP_NKcYUEoM7kXg4qYe@lemmy.world on 01 Aug 07:30 collapse

Also depends if FFmpeg supports it. Wayland is not mentioned in the Documentation.

ffmpeg.org/ffmpeg-devices.html

Edit: Different comment mentioned the wf-recorder, which uses FFmpeg’s libraries but not the CLI utility, so I guess that’s the closest you can get to using FFmpeg. They also show some CLI usage.

StrangeAstronomer@lemmy.ml on 31 Jul 22:01 next collapse

Maybe github.com/ammen99/wf-recorder

tekato@lemmy.world on 01 Aug 06:30 collapse

Do you specifically need ffmpeg? If it’s just screen recording from the terminal, wl-screenrec has the best performance (meaning low CPU usage) for Wayland screen capture. It does require the new screen capture extensions so it will depend on your compositor.