chaosradios und ausLese entfernt

cc-lizenz ins root-Verzeichnis geschoben
neue make-targets: "doku-release" und "release" anstelle von "small" und "big"
This commit is contained in:
lars 2005-12-12 23:26:52 +00:00
parent c4359c0bd2
commit c0708481d9
31 changed files with 25 additions and 2120 deletions

View file

@ -1,5 +0,0 @@
chaosradio_47.mp3 ftp://ftp.ccc.de/chaosradio/cr47/chaosradio47.mp3
chaosradio_70.mp3 ftp://ftp.ccc.de/chaosradio/cr70/chaosradio70.mp3
chaosradio_72.mp3 ftp://ftp.ccc.de/chaosradio/cr72/chaosradio72.mp3
chaosradio_88.ogg ftp://ftp.ccc.de/chaosradio/cr88/chaosradio_88.ogg
chaosradio_99.ogg ftp://ftp.ccc.de/chaosradio/cr99/chaosradio_99.ogg

View file

@ -1,38 +0,0 @@
#!/bin/sh
#
# Parameter: INPUTFILES
#
set -eu
# eine Sample-Rate von weniger als 26000 bereitet wohl Probleme - das neue ogg ist dann tot
ENC_OPTIONS="--quality=2 --max-bitrate=64 --resample=26000"
# the input encoding will be ingnored for the wav-output of mp3-decoder
INPUT_OPTIONS="--raw --raw-chan=1 --raw-bits=16 --raw-rate=44100"
function decode_input()
{
if [[ "$1" =~ "\.mp3$" ]]
then mp3-decoder --wav - "$1"
else oggdec --quiet -R -b 16 -o - "$1"
fi
}
function check_file()
{
if [[ "$1" =~ "\.mp3$" ]] || [[ "$1" =~ "\.ogg$" ]]
then if [ -e "$1" ]
then return 0
else echo "die Datei ($1) exisitiert nicht!" >&2
return 1
fi
else echo "ungueltige Datei ($1): nur 'mp3' oder 'ogg' werden unterstuetzt"
return 2
fi
}
######### los geht's ##########
for a in $@
do check_file "$1" && decode_input "$1" | oggenc $INPUT_OPTIONS $ENC_OPTIONS --output="${a%.*}-low.ogg" -
done