I am recording some lectures in OBS. Using Pulse Audio and have also done some tests with JACK.
Problem I am having is that I listen to the audio while recording and as a result the recording-audio is “connected” to the same sink / output - so when I adjust volume, the volume is also adjusted for the recording.
I also mainly use cabled headset, but sometimes switch to Bluetooth when I have to step away from the desk. This causes the recording to lose audio. (Lost entire recording of today due to this - 6h with no sound).
What happens is that a new “sink” is created for the BT and recording continue on the jack/cable, which has no sound - all sound is routed to BT. When I switch back to jack/cable something get messed up and sound does not get back.
Question is how I can set up the recording to use its own sink/source that is not affected by my headset use and volume adjustments?
Something like:
+----||- [Cable|BT]-Headset (w/vol)
/
[AUDIO] => [DEVICE] => [MAGIC]------- FIREWALL ----------------
\
+-----|- Recorder (w/vol)
When switching devices I have to select either:
Cabled:
Bluetooth:
But want a "source" I can add to Recorder which is independent on selected device. Source of the audio in the lectures is web-browser.
EDIT:
Looks like I get partially there by using this https://unix.stackexchange.com/a/219769/403363
It's all a bit confusing I think. I add a new sink called MySink. Then in the recorder (OBS) I add a new Audio Output Capture (MySink) where I select MySink and mute Desktop Audio.
In pavucontrol
I have to:
[Playback]
Set Firefox to output to Built-In Audio Analog Stereo and the loopback to MySink.
[Recording]
Set Loopback to MySink from Monitor of Built-In Audio Analog Stereo
And OBS: Audio Output Capture (MySink) from Monitor of Null Output
Do not understand much of this and not sure if it is the way to go.
When I use Bluetooth headset I have to set:
- [Playback] loopback to my headset, Firefox kept as is.
- [Recording] Here MySink is gone and the headset is in place of it.
- [Output devices] Change Built-In Audio Analog Stereo to Port: Line Out (Unplugged) and my BT Headset is on port Headset (plugged in)
Would be better if desktop audio was like a raw stream where I could record in OBS and have the BT / cable headset not affecting this output. (If you get what I mean).