diff --git a/contrib/Makefile.am b/contrib/Makefile.am index 5f87c2f7..64499475 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -1,6 +1,6 @@ # $Id$ # -EXTRA_DIST = README mt-daapd.spec mt-daapd.conf mt-daapd.playlist mt-daapd mt-daapd-gentoo +EXTRA_DIST = README mt-daapd.spec mt-daapd.conf mt-daapd.playlist mt-daapd mt-daapd-gentoo mt-daapd-ssc.sh mt-daapd-ssc-script diff --git a/contrib/README b/contrib/README index b5675bcd..91d31671 100644 --- a/contrib/README +++ b/contrib/README @@ -1,3 +1,17 @@ # $Id$ In here goes stuff that anyone wants to send... add-ons, unsupported patches, etc. + +mt-daapd.conf.........: an example config +mt-daapd.playlist.....: an example playlist + +mt-daapd..............: an init.d script, suitable for redhat +mt-daapd-gentoo.......: an init.d script, suitable for gentoo + +mt-daapd-ssc-script...: a transcoding script, using perl +mt-daapd-ssc.sh.......: a transcoding script, using shell + +mt-daapd.spec.........: a specfile, without ogg-vorbis or howl +mt-daapd.fc2.spec.....: a specfile (ostensibly for fc2), with ogg-vorbis, but not howl +mt-daapd.fc3.spec.....: a specfile (ostensibly for fc3), with both ogg-vorbis and howl + diff --git a/contrib/mt-daapd-ssc.sh b/contrib/mt-daapd-ssc.sh new file mode 100755 index 00000000..f6a9240f --- /dev/null +++ b/contrib/mt-daapd-ssc.sh @@ -0,0 +1,29 @@ +#!/bin/sh +# +# script to facilitate server-side transcoding of ogg files +# Ron Pedde (ron@pedde.com) +# +# Usage: mt-daapd-ssc.sh +# +# This is not as flexible as Timo's transcoding script, but it works +# without perl, making it more suitable for the NSLU2. +# + +ogg_file() { + oggdec --quiet -o - $1 | dd bs=1 ibs=1024 obs=1024 skip=$OFFSET 2>/dev/null +} + + +OFFSET=0 + +if [ "$2" == "" ]; then + OFFSET=0 +else + OFFSET=$2 +fi + + +if ( echo $1 | grep -i "\.ogg$" > /dev/null 2>&1 ); then + ogg_file $1 $OFFSET +fi +