config

Personal configuration.
git clone git://code.dwrz.net/config
Log | Files | Refs

snapshot (252B)


      1 #!/usr/bin/env bash
      2 
      3 device="/dev/video0"
      4 if [[ $1 != "" ]]; then
      5   device="/dev/video$1"
      6 fi
      7 
      8 ffmpeg -f video4linux2 \
      9        -video_size "1920x1280" \
     10        -i "$device" \
     11        -frames:v 1 \
     12        -strftime 1 "${HOSTNAME}_%Y-%m-%dT%H-%M-%S%z.jpg"