Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 19 lines (16 sloc) 0.548 kB
#!/bin/bash
# Using ffmpeg to grab a video of the desktop
# Saves to out.avi in the current dir
# for youtube sizes http://www.youtube.com/handbook_popup_produce_upload?pcont=bestformats
. ~/.shell-colors
if [ "$1" != "" ]; then
capture="$1"
else
printf "\t$red Usage : $0 <seconds to capture> \n\n"
exit 1
fi
printf "\t$yell Recording \r"
ffmpeg -threads 5 -t $capture -y -r 30 -g 300 -s 1366x768 -f x11grab -i :0.0 -vcodec mpeg4 out.avi 2> /dev/null
printf "\t$green Done Recording \a\r" && sleep 1
printf "$blue Leaving\a\n$reset"
exit 0
Jump to Line
Something went wrong with that request. Please try again.