Skip to content

Instantly share code, notes, and snippets.

@mslinn mslinn/gist:5736500
Last active Dec 18, 2015

Embed
What would you like to do?
Linux bash script to capture desktop @ 1920x1080, 30 frames/second with stereo audio @ 44,100Hz
#!/bin/bash
if [ $# -ne 1 ]; then
echo "Usage: $(basename $0) outputName.mp4"
exit -1
fi
DIM=$(xwininfo -root | grep 'geometry' | awk '{print $2;}')
ffmpeg -f alsa -ac 2 -i hw:0,0 -f x11grab -s $DIM -r 30 -i :0.0 -sameq -f mpeg -ar 44100 -s hd1080 -y "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.