Page 1 of 1
Recording desktop with ffmpeg, audio not captured⚠️
Posted: 08 May 2025, 23:58
by SEMERENDO.cr
I'd like to know if
there are any additional parameters to record sound as well?
Code: Select all
ffmpeg -f x11grab -r 24 -s 1920x1080 -i :0.0 recorder.mp4
Recording desktop with ffmpeg, audio not captured⚠️
Posted: 09 May 2025, 19:51
by donald
Hi
Here is a ffmpeg line I use in porteus
5.01
Code: Select all
ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 25 -s 1360x768 -i :0.0 -vcodec libx264 -preset ultrafast output.mkv
...be aware that porteus 5.1 switched to pipewire.
Recording desktop with ffmpeg, audio not captured⚠️
Posted: 11 May 2025, 09:34
by SEMERENDO.cr
In the future, will I only change "pulse" to "pipewire"?
Recording desktop with ffmpeg, audio not captured⚠️
Posted: 12 May 2025, 01:58
by ncmprhnsbl
SEMERENDO.cr wrote: ↑11 May 2025, 09:34
In the future, will I only change "pulse" to "pipewire"?
maybe, in some future yet to be realised timeline

... i don't see any direct support for pipewire anywhere in ffmpeg at the moment.
but at this point (afaics and without testing), donald's ffmpeg command might work with pipewire as is, because it's supposed to have backward compatibility with pulse (through libpulse, which is present)
Recording desktop with ffmpeg, audio not captured⚠️
Posted: 20 May 2025, 04:16
by SEMERENDO.cr
The truth is that any parameter for the audio reported an error to me.
ncmprhnsbl wrote: ↑12 May 2025, 01:58
i don't see any direct support for pipewire anywhere in ffmpeg at the moment.