You are not logged in.
There where lots of complicated solutions on the internet. And they didn't work for me.
The most simple and clear is on ffmpeg site
https://trac.ffmpeg.org/wiki/Capture/PulseAudio
Find source output
pactl list short sources
alsa_output.pci-0000_00_1f.3.analog-stereo.monitor
alsa_input.pci-0000_00_1f.3.analog-stereo
ffmpeg -f pulse -i alsa_output.pci-0000_00_1f.3.analog-stereo.monitor -ac 2 recording.m4a
End record with q button.
Offline