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/bash | |
## requires swftools, rtmpdump, libxml2-utils, perl, (optional)ffmpeg. | |
## which swfextract, rtmpdump or ffmpeg ? | |
playerurl=http://radiko.jp/apps/js/flash/myplayer-release.swf | |
cookiefile=/tmp/cookie.txt | |
playerfile=/tmp/player.swf | |
keyfile=/tmp/authkey.png |
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/bash | |
## NHKのネット配信サービスであるらじる★らじる。 | |
# 従来は https://gist.github.com/riocampos/5656450 のように rtmpdump を使う必要がありましたが、 | |
# 2017年9月から m3u8 による配信へ変更になったようです。m3u8 なので10秒単位での録音になります。 | |
## 録音コマンド(m4a) | |
#ffmpeg -i M3U8URL -c copy outputfilename.m4a | |
# ファイルサイズ的に m4a が最も小さくなる |