Monday, July 24, 2006

Record audio from a webcast

cron entry:

# records something at 12:03, Monday through Friday
03 12 * * 1-5 streamrecorder
# kills recording at 1:01pm
01 13 * * 1-5 killall -9 mplayer

# records a show at 4:04,Monday through Friday
04 16 * * 1-5 streamrecorder2
# kills recording at 7:01 pm
01 19 * * 1-5 killall -9 mplayer


I am using mplayer to record an audio webcast so that I can listen to it later.

/usr/bin/streamrecorder


#!/bin/sh

mplayer -playlist /location/to/file.asx -ao pcm:file=/path/to/save/recording/Show_name_`date +%b%d_%H%M%P_%Y`.wav -vc dummy -vo null ;

0 Comments:

Post a Comment

<< Home