俺のustアーカイブが10日でダウンロード出来るわけが無い!
DESCRIPTION
俺のUstアーカイブが10日でダウンロード出来るわけが無い!(公開用修正版) 2014/10/04 Sat LT駆動開発 08 - おれたちのLT駆動はまだはじまったばかりだ http://ltdd.doorkeeper.jp/events/15063TRANSCRIPT
![Page 1: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/1.jpg)
2014/10/04 Sat LT駆動08
俺のUstアーカイブが10日でダウンロード出来るわけが無い!
(公開用修正版)
![Page 2: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/2.jpg)
お約束
この発表は個人的な物で
仕事や所属等は全然関係
ありません。
誤記や間違い等あれば
ご指摘頂けると
助かります。
@takatayoshitake
![Page 3: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/3.jpg)
自己紹介
広島を中心に勉強会に出没。オープンソースカンファレンスHiroshima地元実行委員や
広島サーバユーザ友の会(仮称)をはじめた奴です。
@takatayoshitake
![Page 4: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/4.jpg)
会場のみなさんにクイズ
A. 232B. 496C. 641
私のUstアーカイブ動画数はいくつあるでしょう?
※2014/10/4現在
![Page 5: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/5.jpg)
答え
B. 496
2009/12~2014/09 迄※私が配信した動画でも他の方のアカウントの動画は除く
![Page 6: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/6.jpg)
Ustream Asia / Japan サポートブログ 2014/09/30
アーカイブ映像の保存期間の変更と
削除されるビデオについて
2014年10月10日以降、アーカイブ映像(録画ビデオ )の保存期間が変更され、作成から30日が経過したアーカイブ映像は削除されます。
大切なアーカイブ映像は10月9日までにダウンロードのうえローカル環境に保管ください。
http://blog.ustream-asia.jp/2014/09/blog-post_30.html
![Page 7: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/7.jpg)
アカウント 11個
******* 29.3 GB
********** 4.6 GB
******* 1.3 GB
**************** 8.3 GB
************* 0.4 GB
******* 0.1 GB
********** 2.3 GB
**************** 2.1 B
**************** 0 GB
************* 2.8 GB
******** 0.7 GB
計 約 51.9GB
![Page 8: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/8.jpg)
チャンネル 117 (1/2)*******************************************************************************************************************************************************************************************************************************************************************************
*********************************************************************-*********-******************************************************************************************************
**************************************************************************************************************************************************************************************************************************************************************
![Page 9: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/9.jpg)
チャンネル 117 (2/2)*******************-******-*******-*****ll_********-*******************************************************************************************************************************************************************************
********************************************************************************************************************************************************************************************************************************************
********************************************************************************************************************************************-**-***********************************-***-*****************************************
動画の無いチャンネルもあり
![Page 10: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/10.jpg)
動画数 496************01.rss:14*********-***-20130428.rss:4**************002.rss:2*****************201203.rss:4*****************20120407.rss:2**********02.rss:5***********001.rss:2***********002.rss:1***********006.rss:1***********007.rss:1***********010.rss:1***********011.rss:2***********013.rss:1***********014.rss:3***********015.rss:7***********017.rss:9***********020.rss:3***********026.rss:4***********02.rss:42********23.rss:18******07*.rss:4****-**-*********01.rss:15****01.rss:54*********24.rss:13****.rss:4*****02.rss:2*****03.rss:6*****06.rss:4***2010**.rss:3********************01.rss:5
******01.rss:6********056.rss:3********21.rss:4********24.rss:3********25.rss:1********28.rss:4********29.rss:3********42.rss:5********43.rss:2********44.rss:5********46.rss:3********48.rss:3********50.rss:2********55.rss:4***************001.rss:18***************002.rss:19***************33.rss:2***************34.rss:2***************36.rss:1***************37.rss:2***************39.rss:3***************40.rss:2***************41.rss:3********.rss:2************01.rss:5********02.rss:7
***2010**.rss:6***2011*****.rss:4***********01.rss:5*************01.rss:1****************001.rss:10****001.rss:6****02.rss:12****08.rss:1****09.rss:1****10.rss:2****14.rss:3****15.rss:2****17.rss:3****18.rss:3****25.rss:7****27.rss:1****30.rss:14************01.rss:1*******22.rss:1*********001.rss:12*********15.rss:8*********17.rss:1*********20.rss:7*********23.rss:4*****01.rss:7*****2010.rss:5*****2011.rss:14***********02.rss:2**************01.rss:2***********2010.rss:1
![Page 11: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/11.jpg)
9月30発表で
削除される10月10日まで
わずか10日
10日で496個、1日50個とか
手動では無理(泣
![Page 12: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/12.jpg)
アーカイブ映像の一括ダウンロード方法
Ustreamではチャンネルごとのビデオソース URLを
一括でRSSフィードとして出力する事ができます。
http://blog.ustream-asia.jp/2014/09/blog-post_68.html
https://www.ustream.tv/channel/(チャンネル名)/0/video/download.rss
例:https://www.ustream.tv/channel/ltdd01/0/video/download.rss
ID パスワードが必要
![Page 13: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/13.jpg)
Miro 6
http://www.getmiro.com/
![Page 14: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/14.jpg)
実行中
10/1~3 で約163ダウンロード自動ダウンロードですがエラーで
スムーズに進まない(泣
![Page 15: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/15.jpg)
Ustream動画保存方法
「ustream ダウンロード tcdn」で検索
→「USTREAM録画をダウンロードする | コンピュータ忘備録」
動画URL http://www.ustream.tv/recorded/49581971
↓
ダウンロードURL http://tcdn.ustream.tv/video/49581971
※ID,Password 無しで誰でも可ですが、 ファイル容量が小さく画質があまりよくありません
![Page 16: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/16.jpg)
動画URLをダウンロードする方法
一括ダウンロード rss を取得
wget --user=[ユーザ名] --password=[パスワード] https://www.ustream.tv/channel/[チャンネル名]/0/video/download.rss -O [チャンネル名].rss
(1行で入力)
rssファイルから guid 行を抽出
cat [チャンネル名].rss | egrep guid
![Page 17: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/17.jpg)
ltdd01.rss (1/2)
<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:atom="http://www.
w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<atom:link href="http://www.ustream.tv/channel/ltdd01/videos.rss
" rel="self" type="application/rss+xml" />
<title>ltdd01</title>
<link>http://www.ustream.tv/channel/ltdd01</link>
<description>
LT 駆動開発
https://github.com/LTDD/Sessions/wiki </description>
<category>コンピュータ</category>
<lastBuildDate>Fri, 03 Oct 2014 20:49:34 -0700</lastBuildDate>
<generator>Ustream RSS Generator</generator>
![Page 18: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/18.jpg)
ltdd01.rss (2/2)
<item>
<guid>http://www.ustream.tv/recorded/44349015</guid>
<title>ltdd01</title>
<pubDate>Fri, 28 Feb 2014 21:57:19 -0800</pubDate>
<enclosure url="http://tcdn.ustream.tv/video/44349015?preset_id=
1&e=xxxxxxxxxx&h=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" type="video/x-flv" le
ngth="23182042" />
<media:content
url="http://tcdn.ustream.tv/video/44349015?preset_id=1&a
mp;e=xxxxxxxxxx&h=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx">
</media:content>
</item>
![Page 19: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/19.jpg)
# cat ltdd01.rss | egrep guid<guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid>
<guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid><guid>http://www.ustream.tv/recorded/********</guid>
![Page 20: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/20.jpg)
ダウンロードスクリプト作成某VPS等で実行
guid 取り出し
cat *.rss | egrep guid | awk -F\/ '{print $5}' \| sed 's/<//' > guid.lst
ダウンロード用スクリプト作成
cat guid.lst | awk '{print "wget
http://tcdn.ustream.tv/video/"$1" -O "$1".flv"}' > wget_video.sh
バックグラウンドで実行
sh wget_video.sh &
![Page 21: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/21.jpg)
実行結果********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv
********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv
********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv
********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv
********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv
********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv********.flv
6時間で約300
ファイル注: 画質
悪い縮小版
![Page 22: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/22.jpg)
Linux等で動くMiroのような
Podcastクライアントがあれば
クラウドサービス等で
並列ダウンロード可?
(未確認)
誰か出来た人が居たら
教えて下さい。
![Page 23: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/23.jpg)
まとめ
無料サービスは急にポリシーが変わることもあるので日頃からこまめにバックアップしないと泣くことになります(涙
![Page 24: 俺のUstアーカイブが10日でダウンロード出来るわけが無い!](https://reader033.vdocuments.site/reader033/viewer/2022052905/5583f283d8b42a2a4d8b530d/html5/thumbnails/24.jpg)
ご清聴
ありがとう
ございました。