diff options
author | lassulus <lass@aidsballs.de> | 2015-08-17 16:16:24 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-08-17 16:16:24 +0200 |
commit | 9218b163f2d8bc965b853ed9fc9e13d15a703456 (patch) | |
tree | 8523cca58c0713ec47719b58ede193bad11004a6 /bin/ogg-maker | |
parent | 323a66775168b6addb3acddaee0a8ff227ea4bd4 (diff) |
make target mutable
Diffstat (limited to 'bin/ogg-maker')
-rwxr-xr-x | bin/ogg-maker | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/bin/ogg-maker b/bin/ogg-maker index 4528df2..82e2f8c 100755 --- a/bin/ogg-maker +++ b/bin/ogg-maker @@ -2,13 +2,15 @@ filename="$1" outname=$(echo $1 | sed 's/^\(.*\)\..*/\1/').ogg if [ "$filename" == "$outname" ]; then - ffmpeg -i $filename tmp_$filename - sox --norm=3 $filename tmp_$filename silence 1 0.1 1% reverse silence 1 0.1 1% reverse rate 44100 - vorbisgain ${filename}tmp - mv tmp_$filename $filename + ffmpeg -i $filename tmp_$outname + sox --norm=3 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 $outname - sox --norm=-3 $filename $outname silence 1 0.1 1% reverse silence 1 0.1 1% reverse rate 44100 + ffmpeg -i $filename tmp_$outname + sox --norm=-3 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 |