/[scripts]/trunk/record-screencast.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/record-screencast.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 107 - (show annotations)
Wed Feb 18 10:11:50 2009 UTC (15 years, 2 months ago) by dpavlin
File MIME type: application/x-sh
File size: 487 byte(s)
use $DISPLAY

1 #!/bin/sh
2
3 out=screencast.avi
4
5 if [ ! -z "$1" ] ; then
6 out=$1
7 fi
8
9 win=/tmp/record.$$
10
11 xwininfo | tee $win
12
13 rate=10
14 w=`cat $win | grep Width | cut -d: -f2 | sed 's/ //g'`
15 h=`cat $win | grep Height | cut -d: -f2 | sed 's/ //g'`
16 size="${w}x${h}"
17 offset=`cat $win | grep Corners | awk '{ print $2 }' | sed -e 's/+//' -e 's/+/,/'`
18
19 rm -f $win
20
21 ffmpeg="ffmpeg -f x11grab -s $size -r $rate -sameq -i $DISPLAY+$offset $out"
22 echo "# $ffmpeg"
23
24 $ffmpeg && mplayer -osdlevel 3 $out && ls -al $out

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26