Create snippet.sh

This commit is contained in:
Daniel Schubert 2014-10-22 15:07:13 +02:00
parent d7e77dd171
commit 165c56b5c0
1 changed files with 12 additions and 0 deletions

12
bin/snippet.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/sh
for i in *ogg
do
bn=`basename "$i" .ogg`
ffmpeg -i "$i" -ss 25 -t 35 -ab 265k "$bn"-snip.wav
#hier ist die magie:
sox "$bn"-snip.wav -C 256 "$bn"-snip-fade.wav gain -n -1 fade t 3 32 3
lame --preset standard "$bn"-snip-fade.wav "$bn"-snippet.mp3
rm "$bn"-snip.wav "$bn"-snip-fade.wav
done