Last active
August 29, 2015 14:03
-
-
Save 7kry/42a34e7613cf997a3cc4 to your computer and use it in GitHub Desktop.
http://listenradio.jp も録音しちゃえ!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
if [ $# -lt 4 ]; then | |
cat > /dev/stderr <<EOF | |
USAGE: $0 <channel_id> <duration> <savedest> <prefix> | |
EOF | |
exit 1 | |
fi | |
channel=$1 | |
duration=$2 | |
savedest=$3 | |
prefix=$4 | |
date=`date '+%Y-%m-%d-%H_%M'` | |
rtmpdump \ | |
-r "rtmp://mtist.as.smartstream.ne.jp/$channel/livestream" \ | |
--app $channel \ | |
-W "http://listenradio.jp/Content/player/ListenRadio.swf" \ | |
--live \ | |
--stop `expr $duration \* 60` \ | |
--flv "$savedest/$prefix-$date.mp4" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment