Kurobox NAS-Central Forums

Welcome to the Kuro Community
It is currently Wed Aug 15, 2018 7:45 am

All times are UTC-06:00




Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: internet radio pvr
PostPosted: Fri Dec 17, 2004 6:57 pm 
Hi All,

I been using my Kbox to record live online radio talk show so I can listen when I'm free.

Here's where you can get the asfrecorder source, which allows you to record the streaming to a file: http://sourceforge.net/projects/asfrecorder

Have fun!

crontab sample entries:
=====
10 9 * * 1-5 /usr/local/bin/asfsave http://streamingserver.com/eib 50 rush
10 10 * * 1-5 /usr/local/bin/asfsave http://streamingserver.com/eib 50

Here's the script I've written.

saveasf
=====
#! /bin/bash

URL=$1
TIME=$2
SHOWNAME=$3
DATE=`date +%Y.%m%d.%H`
BASENAME=`basename $URL`
SAVENAME="${DATE}_${SHOWNAME}.asf"
PREVPID=`ps -efw|grep asfrecord|grep $BASENAME|grep -v grep|awk '{ print $2}'`
if [ "$PREVPID" != "" ]; then

`kill $PREVPID`;
fi

cd /tmp
/usr/local/bin/asfrecord -m $TIME $URL > /dev/null
mv $BASENAME /mnt/share/talkradio/$SAVENAME


Top
   
 Post subject:
PostPosted: Sun Dec 19, 2004 10:19 am 
Offline

Joined: Sun Dec 12, 2004 2:06 pm
Posts: 60
Location: UK
newbie916,

Many thanks - a great mod! I've taken the liberty of posting the HowTo on the community site.

Two RFEs:
* could you upload the afsrecorder binary, your script and a readme (perhaps in a tarball) to the files section of the community site?
* it would be great to have a web interface for recording and playback!

_________________
Michael


Top
   
Display posts from previous:  Sort by  
Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited