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.

pypm install stxnext.transform.avi2flv

How to install stxnext.transform.avi2flv

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install stxnext.transform.avi2flv
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.2.1 Available View build log
Windows (64-bit)
0.2.1 Available View build log
Mac OS X (10.5+)
0.2.1 Available View build log
Linux (32-bit)
0.2.1 Available View build log
Linux (64-bit)
0.2.1 Available View build log
Zope Public License, Version 2.1 (ZPL)
Lastest release
version 0.2.1 on Jan 5th, 2011


Converts clips from AVI format to FLV during upload to Plone.

It is fairly easy to turn on conversion from other video formats - more information in section "Configuration".


This package uses FFmpeg. You need to install it in you system.

On Ubuntu 9.04 you have to execute:

System Message: WARNING/2 (<string>, line 20)

Literal block expected; none found.

sudo apt-get install ffmpeg libavcodec-unstripped-52

On CentOS 5.3 command is even simpler:

System Message: WARNING/2 (<string>, line 24)

Literal block expected; none found.

sudo yum install ffmpeg

On other linux system compile FFmpeg with flv and mp3 support.


If you are using zc.buildout to manage your project, you can do this:

  • Add stxnext.transform.avi2flv to the list of eggs to install, e.g.:

    System Message: WARNING/2 (<string>, line 36)

    Literal block expected; none found.

[buildout] ... eggs = ... stxnext.transform.avi2flv

  • Re-run buildout, e.g. with:

    System Message: WARNING/2 (<string>, line 44)

    Literal block expected; none found.

$ ./bin/buildout

Finally go to 'Site Setup' -> 'Add/Remove Products' and install stxnext.transform.avi2flv.


AVI clips will be automatically converted, so no special attention by editor is needed.


Options for FFmpeg that controls quality of output video can be configured via ZMI (portal_transforms -> avi_to_flv).

With default configuration it will execute command similar to:

System Message: WARNING/2 (<string>, line 63)

Literal block expected; none found.

ffmpeg -i "input.avi" -y -b 1024k -r 25 -acodec libmp3lame -ar 44100 'output.flv'

Description of these options and more control parameters you can find in FFmpeg manual.

To turn on conversion from other video formats than "avi", you need to add more mimetypes into "Input" property of avi_to_flv transformation.

We made simple tests with formats:

  • video/x-ms-wmv
  • video/mpeg
  • video/quicktime


Author & Contact


System Message: WARNING/2 (<string>, line 87)

Field list ends without a blank line; unexpected unindent.

Wojciech Lichota <wojciech.lichota@stxnext.pl> Maciej Zięba <maciej.zieba@stxnext.pl>


STX Next Sp. z o.o.




0.2.1 (2010-01-26)

System Message: WARNING/2 (<string>, line 102)

Title underline too short.

0.2.1 (2010-01-26)
  • fix problems when deleting field content using Archetypes' widget [sargo]
0.2.0 (2009-11-20)

System Message: WARNING/2 (<string>, line 107)

Title underline too short.

0.2.0 (2009-11-20)
  • improvements that make it easier to add conversion from other formats than "avi" [stxnext]
0.1.1 (2009-09-17)

System Message: WARNING/2 (<string>, line 112)

Title underline too short.

0.1.1 (2009-09-17)
  • most of code from patch moved to separated function - it can be used by other products [sargo]
0.1.0 (2009-09-17)

System Message: WARNING/2 (<string>, line 117)

Title underline too short.

0.1.0 (2009-09-17)
  • Initial release [sargo]

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

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.