Is there way to capture wayland with ffmpeg?

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

21 points · 4 comments · view on lemmy.world

4 Comments

bacon_pdp@lemmy.world · 13 pts · 1y (1 reply)
[ removed ]
TMP_NKcYUEoM7kXg4qYe@lemmy.world · 3 pts · 1y

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

https://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.

tekato@lemmy.world · 5 pts · 1y (1 reply)

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.

Waffelson@lemmy.world · 1 pts · 1y

ffmpeg has very customizable options to record/stream, it gives many options to control which encoder to use, which max/min bitrate to use, which audio codec use, so it's almost obs but in cli world

StrangeAstronomer@lemmy.ml · 3 pts · 1y