From e76e435b1e6706287942e7b38bdc27db5746a034 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 26 Apr 2010 08:07:49 -0500 Subject: add a couple aliases for my webcam --- bashrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bashrc') diff --git a/bashrc b/bashrc index 4605342..7e3afeb 100644 --- a/bashrc +++ b/bashrc @@ -92,6 +92,10 @@ alias wgetff='wget --user-agent="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8. alias ..='cd ..' alias dotperl="rsync -av lib/* ${HOME}/.perl/" alias clean_packages='sudo pacman -Rsn $(pacman -Qqdt)' +alias webcam='mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 15 -vf screenshot' +function webcam_record { + mencoder tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0:forceaudio:adevice=/dev/dsp -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o $1 +} function luado { # thanks rici local e=$1 shift -- cgit v1.2.3-54-g00ecf