#!/bin/bash # # Warning: this does not have robust error checking! bad=67 if [ $# -lt 1 ] then echo "Usage: $0 [filename] [[optional time]]" exit $bad fi if [ $# -eq 1 ] #check for arguments then time=3 #if one (only filename) exists, sleep for 3 seconds filename=$1 #set filename else time=$2 #else, we'll sleep for $2 seconds filename=$1 #set filename fi recordmydesktop -windowid `xwininfo |grep "Window id:"|sed -e "s/xwininfo\:\ Window id:\ //;s/\ .*//"` -o $filename.ogv -delay $time --no-sound ffmpeg -i $filename.ogv -b 384000 -s 640x480 -pass 1 -passlogfile log-file $filename.flv
This is O.R.Senthil Kumaran's blogspot on programming and technical things. The title is a line from "Zen of Python".
recording script using recordmydesktop command
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment