[ubuntu] Request for help recording mic + game audio + Desktop with avconv

view story

http://ubuntuforums.org – I'm fairly new to Ubuntu but after some googling I have cobbled together (copy +pasted :D) two scripts, one for streaming to Twitch.tv; Code: #!/bin/bash   API_KEY="live_12345_ABCDEFG" FPS="30" INRES="1280x720" OUTRES="1280x720"   ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0 \ -f alsa -ac 2 -i default -vcodec libx264 -s "$OUTRES" \ -acodec libmp3lame -ab 128k -ar 44100 -threads 2 \ -f flv  "rtmp://live.twitch.tv/app/$API_KEY" And one for just recording the desktop and outputting a .mkv file (Hardware)