Recording Games with Commentary in Linux
Channel: Christian Labor
Date: 11/03/2015

1: Download and install Simple Screen Recorder
 A: Install Link - 
http://www.maartenbaert.be/simplescreenrecorder/#download
 B: Audio How To's
http://www.maartenbaert.be/simplescreenrecorder/recording-game-audio/

2: Set up sound - 
 A: Unmute mic in alsamixer

 B: Find USB mic in Pulseaudio
 In terminal, type pacmd list-sources greater-than-sign sources.txt -Huh, brackets not allowed in comments-
 Looking for this entry - 
 ports: analog-input-mic: Microphone priority 8700, latency offset 0 usec, available: unknown
   properties: device.icon_name = "audio-input-microphone" 
 Some distance above you will see its name in Pulseaudio - 
 name: alsa_input.usb-0d8c_C-Media_USB_Headphone_Set-00-Set.analog-mono

 C: Setup Pulseaudio sinks and loopbacks
 Insert that into a script based on commands made available on Maarten's website. Make it executable (chmod +x or right click and tick executable in Gnome) 
File example - 

#!/bin/bash
pactl load-module module-null-sink sink_name=duplex_out
pactl load-module module-null-sink sink_name=game_out
pactl load-module module-loopback source=game_out.monitor
pactl load-module module-loopback source=game_out.monitor sink=duplex_out
pactl load-module module-loopback source=alsa_input.usb-0d8c_C-Media_USB_Headphone_Set-00-Set.analog-mono sink=duplex_out

 Run script. ./scriptname

 When you're done, you will need to stop these modules by running a similar script.

#!/bin/bash
pactl unload-module module-null-sink
pactl unload-module module-loopback

3: Start and set up Simple Screen Recorder
4: Start game and set up Steam if necessary
ssr-glinject %command%
5: Start and set up Pavucontrol "Pulse Audio Volume Control loopbacks 
6: Start recording
 A: check to be sure sound is getting to recording in Pavucontrol
7: Stop recording
8: Clean Sound in Audacity 16 bit
9: Splice sound to video in KDEnlive or equivilent and do simple editing. Save.
10: Voila!

Kernel: 3.16.0-4-amd64
Processor: i5-4670K Haswell Quad-Core 3.4GHz
Graphics Card: GTX 980 driver version 346.35