Permalink
Browse files

Add support for byzanz-record as cast command

Untested example: ffcast -s byzanz-record -- cast.gif -l
  • Loading branch information...
1 parent 2e9aea0 commit ce63f1a58ace59fb4293ad4873451d68b1ea2048 @lolilolicon committed Oct 6, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 ffcast.bash
View
@@ -4,7 +4,7 @@ set -e
shopt -s extglob
readonly progname=ffcast progver='@VERSION@'
-readonly cast_cmd_pattern='@(ffmpeg|recordmydesktop)'
+readonly cast_cmd_pattern='@(ffmpeg|byzanz-record|recordmydesktop)'
declare -a cast_args x11grab_opts
declare -a cast_cmdline=(ffmpeg -v 1 -r 25 -- -vcodec libx264 \
"$progname-$(date +%Y%m%d-%H%M%S).mkv")
@@ -378,6 +378,10 @@ case $cast_cmd in
ffmpeg)
x11grab_opts=(-f x11grab -s "${w}x${h}" -i "${DISPLAY}+${_x},${_y}")
;;
+ byzanz-record)
+ x11grab_opts=(--x="$_x" --y="$_y" --width="$w" --height="$h" \
+ --display="$DISPLAY")
+ ;;
recordmydesktop)
x11grab_opts=(-display "${DISPLAY}" -x "$_x" -y "$_y" -width "$w" -height "$h")
;;

0 comments on commit ce63f1a

Please sign in to comment.