webcam 173 B

1234567891011
  1. #!/usr/bin/env bash
  2. if which mplayer &>/dev/null; then
  3. MPLAYER=$(which mplayer)
  4. else
  5. echo "Mplayer Not found."
  6. exit 1
  7. fi
  8. $MPLAYER tv:///dev/video0 &>/dev/null