Skip to content

Instantly share code, notes, and snippets.

@tamura
Forked from saiten/radiru.txt
Last active August 29, 2015 14:15
Show Gist options
  • Save tamura/93152cd47c64e955b30f to your computer and use it in GitHub Desktop.
Save tamura/93152cd47c64e955b30f to your computer and use it in GitHub Desktop.
# 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