record 220 B

123456789
  1. #!/bin/sh
  2. # from webcam(0)
  3. mkdir -p "$HOME"/MyVideos/webcam
  4. VID_NUM=$(find "$HOME"/MyVideos/webcam | wc -l)
  5. ffmpeg -hide-banner \
  6. -re -video-size 1280×720 \
  7. -i /dev/video0 "$VIDEOS"/webcam/video-"$VID_NUM".wav