Skip to content

Instantly share code, notes, and snippets.

@travishaynes
Created November 22, 2013 17:21
Show Gist options
  • Save travishaynes/7603598 to your computer and use it in GitHub Desktop.
Save travishaynes/7603598 to your computer and use it in GitHub Desktop.
This is my script for screen-casting on Linux Mint 14. It records the desktop, computer audio, and the microphone, each on a separate track. To tie everything together I use OpenShot Video Editor.
#!/bin/bash
arecord -D plughw:0,0 \
-f S16_LE \
-c1 \
-r44100 \
-t wav \
latest-computer.wav \
&
arecord -D plughw:1,0 \
-f S16_LE \
-c1 \
-r44100 \
-t wav \
latest-microphone.wav \
&
avconv -f x11grab \
-s 1600x900 \
-r 30 \
-i :0.0 \
-vcodec libx264 \
-acodec libmp3lame \
-ar 44100 \
-preset ultrafast \
-threads 4 \
-f mp4 \
latest-video.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment