Coming from Windows to Linux less than one month ago, I wanted to record a video that would capture game footage with audio from both my speakers (Nvidia HDMI output) and my headset microphone (Auzentech X-Fi Fore 7.1 PCI-E sound card) simultaneously.
I tried the above but could not get it to work. I tried Audacity, RecordMyDesktop, SimpleScreenRecorder. I realized that even if I managed to get one program to record the two audio sources together and a second program to capture the video, I would have to line them up in a video editor (OpenShot) which wouldn't be aligned to the millisecond.
Finally, I found a perfect solution with Open Broadcaster Software (OBS)
In Settings → Audio, I was able to select:
- Desktop Audio Device - Monitor of GK106 HDMI Audio Controller Digital Stereo (HDMI 2)
- Mic/Auxiliary Audio Device - EMU20k2 (X-Fi Titanium Series) Analog Stereo.
For Source, I selected Screen Capture (XSHM) to capture the entire desktop.