jmjjg / cloudooo

XML-RPC document conversion server ( Mirror of https://lab.nexedi.com/nexedi/cloudooo ; Please submit patches and issues there )
Other
0 stars 0 forks source link

Install Cloudooo

::

$ python2.6 setup.py install

Warnings:

Install LibreOffice / OpenOffice.org

Install LibreOffice or OpenOffice.org.

Create Configuration File

The configuration file is used to start the application using paster.

::

$ cp ./cloudooo/sample/sample.conf ./cloudooo.conf # Copy to current folder

The next step is define some attributes in cloudooo.conf:

Run Application

::

$ paster serve ./cloudooo.conf

or run as a daemon:

::

$ paster serve ./cloudoo.conf --daemon

Stop Application

::

$ kill -1 PASTER_PID

Warning: always use SIGHUP because only with this signal all processes are stopped correctly.

Cloudooo Description

Managing LibreOffice / OpenOffice.org process

XMLRPC Server - XMLRPC + WSGI

FFMPEGHandler

FFMPEGHandler is a handler of cloudooo for developing GUI convertion applications using FFmpeg cross-platform.

Introduction The FFMPEGHandler package defines a single class, Handler, which is interface to audio and video convertion into cloudooo.

FFMPEGHandler has been developed with python 2.6 and ffmpeg 0.6.1.

Example

Converting file:

from cloudooo.handler.ffmpeg import Handler handler = Handler('my_path_data', open(test.ogv).read(), 'ogv') converted_data = handler.convert('mpeg')

Getting information of file:

from cloudooo.handler.ffmpeg import Handler handler = Handler('my_path_data', open(test.ogv).read(), 'ogv') metadata = handler.getMetadata() metadata { 'ENCODER': 'Lavf52.64.2'}

NOTE

In case of importing FFMPEGHandler library is needed to import its used libraries as well and set its enviroment for handler.

Example

from cloudooo.handler.ffmpeg import Handler self.kw = dict(env=dict(PATH="../software/parts/ffmpeg/bin")) handler = Handler('my_path_data', open(test.ogv).read(), 'ogv', **self.kw) converted_data = handler.convert('mpeg')