Results 1 to 2 of 2

Thread: Desktop Video Capture w/ Compiz

  1. #1
    Join Date
    Jun 2006
    Beans
    471

    Desktop Video Capture w/ Compiz

    Could someone point me in the direction of a desktop video capture that works with compiz?

  2. #2
    Join Date
    Jun 2006
    Beans
    471

    Re: Desktop Video Capture w/ Compiz

    OK I found recordmydesktop worked well enough and made a little script for it:

    Install recordmydesktop and zenity

    Code:
    sudo apt-get install recordmydesktop zenity
    Download an icon for it and then copy it to .local/share/icons/video.png

    Code:
    cp 1253105813_cam_unmount.png ~/.local/share/icons/video.png

    Save the following file to desktopcapture
    desktopcapture
    Code:
    #!/bin/bash
    # Toggle desktop recording
    if pgrep recordmydesktop; then 
    	echo "killing zenity notification"
    	kill `cat /tmp/desktopcapture` 2> /dev/null	
    	echo "killing recordmydesktop"
    	killall recordmydesktop
    	FOLDER=`basename $HOME`
    	echo "opening zenity dialogue"
    	zenity --info --text="Video saving to <i>$FOLDER</i>..." --title="Desktop Capture" --width=250 --window-icon="$HOME/.local/share/icons/video.png" &
    else 
    	echo "starting recordmydesktop"
    	recordmydesktop &
    	echo "starting zenity notification"
    	zenity --notification --text="Recording Desktop" --window-icon="$HOME/.local/share/icons/video.png"  &
    	echo $! > /tmp/desktopcapture
    fi
    Then make executable and copy into path

    Code:
    chmod +x desktopcapture
    sudo cp desktopcapture /usr/local/bin
    Then bind a keyboad shortcut to it - in whichever way suits you best. (Metacity, Compiz or Keyboad Shortcuts.)
    Last edited by mikeym; September 16th, 2009 at 02:10 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •