Skip to content

Instantly share code, notes, and snippets.

@devopstaku
Forked from qrtt1/audio_recored.sh
Created September 4, 2016 02:26
Show Gist options
  • Save devopstaku/133a9b4c5042368f4a8a889c56ffe5da to your computer and use it in GitHub Desktop.
Save devopstaku/133a9b4c5042368f4a8a889c56ffe5da to your computer and use it in GitHub Desktop.
FFMPEG=/opt/ffmpeg-live/bin/ffmpeg
for((;;))
do
sleep 1
FILENAME=stat123_for_eng_$(date +"%H%M%S").mp3
echo "save audio into " $FILENAME
$FFMPEG -f avfoundation -i ":0" -vn -acodec mp3 -b:a 96k -ar 44100 $FILENAME
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment