Capture audio from a selected program
Resources:
- https://ro-che.info/articles/2017-07-21-record-audio-linux
- https://community.spiceworks.com/topic/2454520-howto-capture-specific-pulse-audio-streams
- https://answers.launchpad.net/ubuntu/+source/totem/+question/63575
This didn't work for me, but I like it to work the most...
Might work...
pacat -r -n "mpv Media Player" | sox -t raw -r 25811 -e signed -b 16 -c 1 - "output.wav"
parec -r -n "mpv Media Player" | sox -t raw -r 25811 -e signed -b 16 -c 1 - "output.wav"