视频转码后台程序
collective.transcode.daemon的Python项目详细描述
collective.transcode.daemon是为 转码作业。
它最初是在进行plone视频sprint时开发的。 就在2009年布达佩斯PLONE会议之后。它是基于 convertdaemon代码,但自
它目前用于Plumi3.0和3.1中的视频转码,是其中的一部分 为PLONE 3.x&4.x.
要求
除了构建所组装的组件外,以下依赖项必须 手动安装,以便转码脚本工作:
- 支持x264的ffmpeg
- ffmpeg2theora
这个守护进程已经用python2.4和python2.6进行了测试。
安装
下面的说明用于设置独立的转码守护程序。
如果您想为plone cms使用一个完整的转码解决方案 collective.transcode.star
安装独立守护进程的最佳方法是使用zc.buildout和 提供buildout.cfg文件
python2.6 bootstrap.py ./bin/buildout ... ./bin/transcodedaemon fg Initializing Launched http channel Launched TranscodeDaemon scheduler thread....
配置
您可以在buildout.cfg中编辑以下选项:
listen_host hostname to listen listen_port port to use videofolder relative path of folder where transcoded videos are stored secret a secret shared key used for authentication and encryption profiles a python list of dicts specifying the supported transcoding profiles
不要忘记在编辑buildout.cfg之后运行./bin/buildout
您还可以在scripts目录中自定义转码脚本。
贡献者
- Dimitris Moraitis,未婚妻
- Mike Muzurakis,未婚夫本人
- 克里斯托斯圣歌,未婚夫本人
- Markos Gogoulos,未婚妻
- Victor Rajewski,engagemedia.org
变更历史
0.12(2012-12-03)
- download videos from inside the transcoding scripts to prevent daemon unresponsivenes [dimo]
- get child output after sleep, improves error reporting [dimo]
- increase socket timeout [mgogoulos]
0.11(2012-11-17)
- fix stripping of ‘#’ in file paths [mgogoulos]
- add timeout for urlretrieve [dimo]
- add yasm in ffmpeg buildout [dimo]
- update ffmpeg & transcode scripts [dimo]
0.10(2012-01-05)
- 修正getduration[dimo]
- 将video/x-matroska添加到支持的mimetypes[dimo]
- 增加睡眠周期[dimo]
0.9(2011-12-17)
- 修正负时间错误[mgogoulos]
- 添加测试[dimo]
- 跟踪转码进度[dimo]
- 将ffmpeg添加到后台程序buildout[dimo]
- 更新依赖项[dimo,cpsaltis]
- 改进错误处理[dimo]
- 更好的构建格式[cpsaltis]
- 在videofolder[dimo]中将video/webm设置为默认内容类型
- 更新了默认转码脚本[dimo,cpsaltis]
- 移至Github[Garbas]
0.8(2010-05-10)
- 向调度程序队列添加超时以避免可能的转码器冻结[dimo,mgogoulos]
0.7(2010-11-23)
- 转码前使用适当的tempfile[clopy]
0.6(2010-10-21)
- 删除setup.py中的版本管脚以防止版本冲突错误[dimo]
0.5(2010-10-09)
- 删除支持[clopy]
- 支持与collective.transcode.burnstation[clopy、cpsaltis、dimo、mgogoulos]结合创建DVD ISO文件
0.4(2010-08-03)
- 清除代码基[cpsaltis]
- 删除了对twisted.web2[cpsaltis]的依赖
- 删除了对minitage.recipe[cpsaltis]的依赖
- 简化buildout.cfg[cpsaltis]
0.3(2010-07-23)
- 更好的规格化[dimo]
- 将hashlib添加到python 2.4兼容性依赖项[cpsaltis]
0.2(2010-07-22)
- 首次稳定释放 [尺寸]
0.1(2010-02-18)
- 初次发行 [尺寸]