dotfiles

Cross platform dotfiles for linux, mac and windows
git clone git@getsh.org:dotfiles.git
Log | Files | Refs

cam (212B)


      1 #!/bin/sh
      2 
      3 c_os="$(uname -s)"
      4 
      5 case "$c_os" in
      6 	Windows_NT)
      7 	ffplay -f dshow -i video="Integrated Webcam";;
      8 	Darwin)
      9 	ffplay -f avfoundation -i 0:0 -video_size 1280x720 -framerate 30;;
     10 *) ffplay /dev/video0
     11 esac