Mplayer in no-frame-window
It's a simple scrypt that start mplayer showing your webcam in no-frame window positioned in the bottom-right-corner. You webcam must support v4l2.
by vkolev 2 years, 1 month ago and tagged with: bash mplayer webcam
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
#!/bin/bash # webcamstart.sh # # Author: Vladimir Kolev <vladi@vladimirkolev.com> # # Simple mplayer start for webcam using the v4l2 codec # For showing yourself on the screen wen recording a screencast # # To optimize the whole thing you could add a global hotkey-combination # in gnome is like follows: # # 1. Open gconf-editor and navigate to apps->metacity->global_keybinding # and create the desired key-combination for launching the script in # run_command_2 (let's say <Control><Alt>w ) # 2. Now navigate to apps->metacity->keybinding_commands and for the key # command_2 enter the text webcamstarter # 3. Copy the script to /usr/bin and ensure that webcamstart.sh is executable # cp webcampstart.sh /usr/bin/webcamstarter # sudo chmod +x /usr/bin/webcamstarter # # Everytime you type Ctrl+Alt+w mplayer will launch in the bottom right corner of # your desktop showing your webcam. # Specify the width of the webcam window WDTH=176 # Specify the height of the webcam window HGHT=144 # Specigy the geometry - where to show the webcam window # for more information about the geometry check "man mplayer" # don't forget the format X:Y GMTR="95%:93%" mplayer -cache 128 -tv driver=v4l2:width=$WDTH:height=$HGHT -vo xv tv:// -noborder -geometry $GMTR -ontop # To quit mplayer select the window frame and type "q" |

Currently 0 comments