::
$ python2.6 setup.py install
Warnings:
Install LibreOffice or OpenOffice.org.
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:
::
$ paster serve ./cloudooo.conf
or run as a daemon:
::
$ paster serve ./cloudoo.conf --daemon
::
$ kill -1 PASTER_PID
Warning: always use SIGHUP because only with this signal all processes are stopped correctly.
Managing LibreOffice / OpenOffice.org process
start 'soffice.bin':
Pyuno start 'soffice.bin' processes and the communication is through sockets
'soffice.bin' processes run in brackground;
control 'soffice.bin':
Problems and possible solutions
'soffice.bin' is stalled;
finalize the process, start 'soffice.bin' and submit the document again (without restart the cloudooo);
'soffice.bin' is crashed;
finalize the process, verify if all the process was killed, start 'soffice.bin' and submit the document again(without restart the cloudooo)
'soffice.bin' received the document and stalled;
if 'soffice.bin' isn't responding, kill the process and start
The document that was sent is corrupted;
write in log the error and verify that the process aren't in memory
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')