视频转码后台程序

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)

  • 初次发行 [尺寸]

下载

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
junit cucumber为什么会找到“runTest.java”来运行测试?   在Eclipse中找不到java KeyPairGenerator   java NotSerializableException即使在实现Serializable之后   noclassdeffounderror(java字符串连接)为什么会出现这种异常?   java Guice:将接口绑定到由动态代理创建的实例   使用Spring数据neo4j创建空间索引时发生java错误   java对于需要在50多个excel文件上运行并且每个文件平均包含25k行的项目,最佳的方法是什么   javaNIO中的java缓冲区写入/发送消息问题   如何在Java/eclipse中添加不调用super()的警告   JavaSpring:mvcUrl映射错误的id   java应该在getInstance或构造函数中使用Init方法吗?   安卓中的java空指针异常错误   java Jsoup不能完全获取原始html代码