Tuesday, December 15, 2009

Fast, simple, multiplatform screencasting solution

Simply use VLC:

#!/bin/sh
# set -x
HEIGHT=1024
WIDTH=768
FPS=15
OUT=$1
VLC=vlc
# for os x use:
# VLC=/Applications/VLC.app/Contents/MacOS/VLC
$VLC screen:// -vvv \
--screen-width=$WIDTH \
--screen-height=$HEIGHT \
--screen-fps=$FPS \
--sout-transcode-fps=$FPS \
--sout="#transcode{vcodec=h264,vb=800,scale=0.5,acodec=mp3,ab=128,channels=2}:duplicate{dst=std{access=file,mux=mp4,dst="$OUT"}}"
view raw screencast.sh hosted with ❤ by GitHub

No comments:

Post a Comment