==========
avi_to_flv
==========

Basic usage
-----------

The basic usage of `avi_to_flv` transform::

    >>> import os.path
    >>> sample_path = os.path.join(os.path.dirname(__file__), 'tests', 'data', 'sample.avi')
    >>> sample_file = open(sample_path, 'rb')
    >>> sample_data = sample_file.read()
    >>> sample_file.close()
    >>> pt = self.portal.portal_transforms
    >>> result = pt.convert('avi_to_flv', sample_data).getData()
    >>> result[:3]
    'FLV'
