All pastes #958860 Raw Edit

Untitled

public text v1 · immutable
#958860 ·published 2008-03-26 23:35 UTC
rendered paste body
#!/bin/bash
#
DATE=`date +%d-%b-%Y`
YEAR=`date +%Y`
DURATION=4h
TITLE="Russ Parr Morning Show - $DATE"
AUTHOR="maxwellpaxwell.com"
COMMENT="The Russ Parr Morning Show Podcast by MaxwellPaxwell.com"
ALBUM="WKYS 93.9 FM Washington D.C."
GENRE="12"
DIR=/home/mxwlpxwl/podcast
TMPDIR=/tmp
FILE=russ_parr_$DATE
STREAM="http://players.eonstreams.com/FastAim/Player/Play.php?PulseID=189124957&SecurityKey=9534&IsIE=0"

# Old Streams - See Details
#STREAM="http://mmslb.eonstreams.com/RussParr/russparr.asf?PPID=2908&Gender=N&Age=0&MSWMExt=.asf"  // Not tested
#STREAM="http://mmslb.eonstreams.com/RussParr/russparr.asf?PPID=2819&Gender=N&Age=0&MSWMExt=.asf"  // Records yesterdays show
#STREAM="http://Wm-eon.vitalstreamcdn.com/live_eonwmss_vitalstream_com_radioone-russparr-2?PPID=2819&Gender=N&Age=0" // Used to record todays stream

/usr/bin/mplayer -cache 3000 -ao pcm:waveheader:file="$TMPDIR/$FILE.wav" -vc null \
-vo null -noframedrop -playlist $STREAM >/dev/null&

/bin/sleep $DURATION
/bin/kill $!

/usr/bin/lame -S -a -m m \
--tt "$TITLE" --ta "$AUTHOR" --tl "$ALBUM" --ty "$YEAR" --tg "$GENRE" \
--vbr-new -b 64 -B 192 --resample 44.1 $TMPDIR/$FILE.wav $DIR/$FILE.mp3 >/dev/null&

chmod 755 $DIR/$FILE.mp3
rm $TMPDIR/$FILE.wav