Skip to content

Instantly share code, notes, and snippets.

@saiten
Created September 1, 2011 09:02
Show Gist options
  • Star 16 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save saiten/1185755 to your computer and use it in GitHub Desktop.
Save saiten/1185755 to your computer and use it in GitHub Desktop.
らじるらじるをrtmpdumpで録音する
# RTMPEのtype9 handshakeに対応している必要があるのでRTMPDump v2.4必須
# CentOS5 32bitのさくらVPS、OSX Lionで動作確認。(OSX LionではRTMPDumpを32bitでビルド)
# ラジオ第1
rtmpdump --rtmp "rtmpe://netradio-r1-flash.nhk.jp" \
--playpath 'NetRadio_R1_flash@63346' \
--app "live" \
-W http://www3.nhk.or.jp/netradio/files/swf/rtmpe.swf \
--live \
-o r1.m4a
#ラジオ第2
rtmpdump --rtmp "rtmpe://netradio-r2-flash.nhk.jp" \
--playpath 'NetRadio_R2_flash@63342' \
--app "live" \
-W http://www3.nhk.or.jp/netradio/files/swf/rtmpe.swf \
--live \
-o r2.m4a
#NHK-FM
rtmpdump --rtmp "rtmpe://netradio-fm-flash.nhk.jp" \
--playpath 'NetRadio_FM_flash@63343' \
--app "live" \
-W http://www3.nhk.or.jp/netradio/files/swf/rtmpe.swf \
--live \
-o fm.m4a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment