This is mainly an updated post of a previous one. The reason why I’m writing another one on that topic is that the old method has stopped working for me.
I’ll just paste my screen-cast recording script here for you guys to use. I guess it’s self-explanatory.
|
1 2 3 4 5 6 7 8 9 10 11 |
#!/bin/sh OFFSET_X=0 OFFSET_Y=0 WIDTH=1024 HEIGHT=768 FRAMERATE=20 ffmpeg -f x11grab -s ${WIDTH}x${HEIGHT} -r ${FRAMERATE} \ -i :0.0+${OFFSET_X},${OFFSET_Y} -vcodec mpeg4 -sameq \ output/screencast_`date "+%Y%m%d_%H%M%S"`.mp4 |
This script will start ffmpeg and record your screen 0. The output file name starts with screencast_ and is followed by the current date and time. Depending on what you record you may also want to increase (or even decrease) the frame rate. MPEG4 is being used as the codec, which should be a good fit in most cases (compresses very well and has a high quality, also perfectly suited for YouTube).
