While you're here, please consider supporting GamingOnLinux on:
Reward Tiers: Patreon. Plain Donations: PayPal.
This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring 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!
Reward Tiers: Patreon. Plain Donations: PayPal.
This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring 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
- Intel and NVIDIA drivers holding back a public SteamOS release, Valve not trying to compete with Windows
- GOG joins the European Federation of Game Archives, Museums and Preservation Projects
- Discord screen-sharing with audio on Linux Wayland is officially here
- NVIDIA release new GPU driver updates for Linux and Windows after announcing security issues
- GE-Proton 9-23 released with a Battle.net update fix for Linux / Steam Deck
- > See more over 30 days here
-
GE-Proton 9-23 released with a Battle.net update fix fo…
- TheRiddick -
Indian mystery adventure game Detective Dotson arrives …
- chr -
GE-Proton 9-23 released with a Battle.net update fix fo…
- 14 -
GE-Proton 9-23 released with a Battle.net update fix fo…
- ToddL -
GE-Proton 9-23 released with a Battle.net update fix fo…
- ElamanOpiskelija - > See more comments
View PC info
View PC info
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: https://trac.ffmpeg.org/wiki/Capture/PulseAudio should be fine.
I tested this with my own machine and it works as expected.
View PC info
Last edited by Shmerl on 4 Jul 2022 at 8:53 pm UTC
View PC info
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.
View PC info
View PC info
Last edited by Shmerl on 5 Jul 2022 at 3:43 am UTC
View PC info
https://trac.ffmpeg.org/ticket/10742
View PC info
But it's simple and does wonderfully capture screen and audio.
View PC info
OBS can do it, but there are issues with that too.
Last edited by Shmerl on 27 Feb 2024 at 3:12 pm UTC
View PC info
ffmpeg -device /dev/dri/card0 -f kmsgrab -framerate 60 -i - -vaapi_device /dev/dri/renderD128 -vf 'hwmap=derive_device=vaapi,crop=1434:650:974:774,scale_vaapi=w=1435:h=650:format=nv12' -c:v hevc_vaapi -qp 18 -y output-file.mkv
But it's downright messy. You need to figure out the window co-ordinates and the drivers seem very picky. Notice that the scale width is 1 pixel wider than the crop. I get a ton of errors and video full of noise without it...
View PC info
KDE developers say to avoid kmsgrab, it's just completely not suitable for the task and will get even more broken as they explain. Too bad ffmpeg doesn't yet implement pipewire screen capture.
I tried it and it didn't even work in the first place. Too many issues to dig into the method that's wrong anyway.
Last edited by Shmerl on 27 Feb 2024 at 5:33 pm UTC