![]() ![]() | ![]() |
Initial revision
1: #!/bin/sh 2: # 3: # Sample VAD start recording script ... 4: # 5: # $Id: vad_start.sh,v 1.1 2011/07/05 23:43:00 misho Exp $ 6: # 7: 8: FMT="mp3" 9: CHAN="1" 10: BITRATE="8k" 11: SAMPLERATE="12000" 12: 13: if [ -z $1 ]; then 14: echo "Sound device not found ..." 15: exit 1 16: fi 17: if [ -z $2 ]; then 18: echo "Encoding file not found ..." 19: exit 1 20: fi 21: 22: ffmpeg -vn -f oss -i $1 -y -f $FMT -ab $BITRATE -ar $SAMPLERATE -ac $CHAN $2