Advertisement
Guest User

Untitled

a guest
Jan 28th, 2019
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/bin/bash
  2. set -x
  3. folder="/home/$USER/recordings"
  4. ffserver -f /etc/ffserver.conf &
  5. sleep 2
  6.  
  7. mkdir -p "$folder"
  8. day=$(date '+%Y-%m-%d')
  9. mkdir -p "$folder"/"$day"
  10.  
  11. ffmpeg -f alsa -i hw:0,0 -ss 0 -t 300 "$folder"/"$day"/"$(date '+%Y-%m-%d__%H_%M_%S')".wav http://localhost:4444/audio.ffm
  12.  
  13. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement