A Note on EM Algorithm and PLSA

Videolectures FLV下载脚本

luxinxin posted @ 2011年5月17日 23:03 in Note , 3805 阅读

Videolectures内放置了大量的计算机相关的视频,尤其是机器学习相关的。可惜flv播放器采用的是rtmp协议,所以下载这些视频还是挺麻烦的。所幸看到了一个rtmpdump的命令行小软件,尽管参数写起来比较麻烦,好歹也是可以用了...

为免于每次下载视频都这么麻烦,我写了一个非常简陋的python脚本,在我电脑上实验成功了。有兴趣的可以下载来试试。注意:你需要有一定的python使用经验。

该脚本依赖于rtmpdump 2.3,需要将其所在目录添加到path中。使用方法:

videolecture_downloader web_address numparts outputfilename

其中web_address是视频的网页地址,numparts表示视频分成多少部分,outputfilename表示输出文件名

例如:

videolecture_downloader "http://videolectures.net/mlss09uk_bishop_ibi/" 2 "out.flv"

下载videolecture_downloader.py

This article is written By Luxinxin. 版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
Avatar_small
hello 说:
2011年9月24日 10:43

执行不成功。。。

cannot catch any video URL.

Avatar_small
likeit 说:
2013年2月24日 13:53

感谢博主分享,我尝试了一下,请问如何确定part数目呢?我尝试了几个地址,结果都是cannot catch any video URL。

Avatar_small
luxinxin 说:
2013年6月08日 21:29

@likeit: 我也好久没用过这个脚本了。。


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter