Check out our Monthly Survey Page to see what our users are running.
How to capture screen on Wayland with pipewire?
Shmerl 4 Jul
Any recommendation how to capture screen using some minimalist tools like ffmpeg? I didn't find any info on ffmpeg / pipewire integration. Is there anything else (besides using something full blown OBS)?
kit89 4 Jul
Pipewire should act as a PulseAudio system.

If you type:

pactl info

You should see something around the lines of:

Server Name: PulseAudio (on PipeWire 0.3.53)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.usb-MOTU_M4_M4AE0CDBMD-00.analog-surround-40

If you do, then following the documentation here: should be fine.

I tested this with my own machine and it works as expected.
Shmerl 4 Jul
That's for audio. I need to capture the screen. OBS works, but I was interested in something more lightweight.

Last edited by Shmerl on 4 July 2022 at 8:53 pm UTC
kit89 4 Jul
This documentation shows how to use ffmpeg to capture the screen:

You can capture both audio and the screen with one command operation, or you can trigger screen and audio capture independently and then mix the two together later with a Video Editor.
Shmerl 4 Jul
Nah, no good either. x11grab is X11 only obviously. And they don't have Pipewire integration. The only other option is kmsgrab, but that had some kind of issue with pixel format.
Shmerl 5 Jul
I ended up using OBS for now. It works very well actually. I'm surprised there no some CLI tool for that though.

Last edited by Shmerl on 5 July 2022 at 3:43 am UTC
LilaBortz 15 Jul
I am using GNOME to capture the screen. Because it is the quick and easiest way to record your screen. But it doesn't record any sound tho.
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: Liberapay or PayPal.

This ensures all of our main content remains totally free for everyone with no article paywalls. We also don't have tons of adverts, there's also no tracking and we respect your privacy. Just good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register

Or login with...
Sign in with Steam Sign in with Twitter Sign in with Google
Social logins require cookies to stay logged in.