Commit eb467cf6 authored by Rafael Monnerat's avatar Rafael Monnerat

Merge Handler README into Main README.

parent 9f223b0b
...@@ -80,3 +80,33 @@ XMLRPC Server - XMLRPC + WSGI ...@@ -80,3 +80,33 @@ XMLRPC Server - XMLRPC + WSGI
- if 'soffice.bin' isn't responding, kill the process and start - if 'soffice.bin' isn't responding, kill the process and start
- The document that was sent is corrupt; - The document that was sent is corrupt;
- write in log the error and verify that the process aren't in memory - write in log the error and verify that the process aren't in memory
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'}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment