Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -x
- folder="/home/$USER/recordings"
- ffserver -f /etc/ffserver.conf &
- sleep 2
- mkdir -p "$folder"
- day=$(date '+%Y-%m-%d')
- mkdir -p "$folder"/"$day"
- 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
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement