Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython

ztfy.media is unavailable in PyPM, because there aren't any builds for it in the package repositories. Click the linked icons to find out why.

 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
 
Links
License
zpl

Introduction

ztfy.media is a ZTK/ZopeApp ZTFY package used to automatically convert and display medias files (audios, videos...).

It was developed in the context of a medias library management application handling several kinds of medias (mainly images, videos, and audio files), to be able to automatically display these contents in web pages.

Medias conversions

Automatic medias conversions implies several pre-requisites:

  • 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 utility allows you to define listening address and port of a ZeroMQ process which will wait for conversions requests. These requests are automatically done when an IObjectAddedEvent is notified on a IFile object containing contents for which a converter has been registered; default converters based on FFmpeg are available for images, video and audio files, but you can provide your own converters for any kind of custom file.

Medias conversion utility also allows to define in which formats you want to convert the new medias. All conversions are actually done with the help of FFmpeg, each conversion being done in a dedicated sub-process handling it's own ZEO connection.

Converted medias are stored in the ZODB as Blob files in the original media file annotations.

HISTORY

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

Subscribe to package updates

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.