blob: a812f09c6f2dc8762e6338732ce53a68bd5cd64d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
filename="$1"
outname=$(echo $1 | sed 's/^\(.*\)\..*/\1/').ogg
if [ "$filename" == "$outname" ]; then
ffmpeg -i $filename tmp_$outname
sox --norm tmp_$outname tmp2_$outname silence 1 0.1 1% reverse silence 1 0.1 1% reverse rate 44100
rm tmp_$outname
vorbisgain tmp2_$outname
mv tmp2_$outname $outname
else
ffmpeg -i $filename tmp_$outname
sox --norm tmp_$outname $outname silence 1 0.1 1% reverse silence 1 0.1 1% reverse rate 44100
rm tmp_$outname
vorbisgain $outname
rm $filename
fi
|