ZTFY媒体处理包

ztfy.media的Python项目详细描述


Introduction

media是一个ztk/zopeapp ztfy包,用于自动转换和显示 媒体文件(音频、视频…)。

它是在medias库管理应用程序的上下文中开发的,该应用程序处理 各种媒体(主要是图像、视频和音频文件),能够自动显示 网页中的这些内容。

Medias conversions

自动媒体转换意味着几个先决条件:

  • the ‘’ffmpeg’’ executable must be available in your path;
  • you have to rely on a ZEO connection handling a blobs cache directory;
  • you have to create and register (with a name) this ZEO connection in your site management folder (see ztfy.utils.zodb.ZEOConnection object);
  • you have to create and register (without name) a ZTFY medias conversion utility.

medias conversion实用程序允许您定义zeromq进程的侦听地址和端口,其中 将等待转换请求。当iobjectaddedevent 在包含已注册转换器的内容的IFile对象上通知;默认值 基于ffmpeg的转换器可用于图像、视频和音频文件,但您可以提供 拥有任何类型自定义文件的转换器。

medias conversion实用程序还允许定义要转换新媒体的格式。 所有的转换实际上都是在ffmpeg的帮助下完成的,每个转换都是在一个专用的 子进程处理它自己的zeo连接。

转换后的媒体作为blob文件存储在zodb中的原始媒体文件注释中。

HISTORY

0.1.12

  • added configuration options to medias converter to force conversion of medias already provided in target content type. This can be required if uploaded medias don’t provide properties for correct random access to any part of the video or audio file.

0.1.11

  • updated FlowPlayer fonts path in CSS
  • corrected logger name
  • removed missing imports

0.1.10

  • corrected conversions code (based on “pyams_media” package source code) to use libAV ‘avconv/avprobe’ tools
  • added MP4 and WebM conversions options
  • updated FlowPlayer to release 6.0.5
  • updated medias previews

0.1.9

  • corrected video frame size names array

0.1.8

  • added small check in requested formats

0.1.7

  • use new “getMagicContentType()” function from ztfy.extfile package
  • use non-empty suffix when detected content-type is unknown

0.1.6

  • added flush on some video output files
  • added sound file thumbnail in audio preview
  • always use temporary files for Quicktime video conversions

0.1.5

  • automatically include a video player watermark on videos thumbnails
  • updated video preview template

0.1.4

  • reset video bitrate command line option to “-b” (instead of “-b:v”) to be compatible with all FFmpeg versions
  • updated video preview for Firefox compatibility

0.1.3

  • added one second before checking ZMQ processes startup
  • updated package resources

0.1.2

  • register ZMQ medias converter process exit callback

0.1.1

  • removed forgotten ‘print’ statement
  • update README

0.1.0

  • first release

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

推荐PyPI第三方库


热门话题
java使用Eclipse Helios for Web项目   java指定行。作为编译器设置的分隔符?   osm映射中带有osmdroid的java标记   java Android ClassNotFoundException在路径:DexPathList上未找到类   java从j2me调用GWT方法   更新到java 8后的aspectj问题   如何仅从根元素java,com提取文本内容。滴虫软件。是的。html   安卓公司。谷歌。火基。数据库DatabaseException:未能转换java类型的值。将字符串改为长字符串   从java中的方法返回arraylist变量   java如果将引用重新分配给同步块内的锁对象,会是什么?   java下载。使用spring mvc的资源文件中的xlsx文件   java Eclipse提供了什么工具来运行Eclipse中未包含的程序?   spring boot Java泛型如何读取传递给泛型方法的类型上的字段或调用方法   Javacard中的javaecdsa签名