Skip to content

Instantly share code, notes, and snippets.

@qrtt1
Created September 4, 2016 01:35
Show Gist options
  • Save qrtt1/b297f72e2223c4175f3dcb12da6a94e4 to your computer and use it in GitHub Desktop.
Save qrtt1/b297f72e2223c4175f3dcb12da6a94e4 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