[Erp5-report] r45443 priscila.manhaes - /erp5/trunk/utils/cloudooo.handler.ffmpeg/src/cloud...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Apr 14 16:11:34 CEST 2011
Author: priscila.manhaes
Date: Thu Apr 14 16:11:34 2011
New Revision: 45443
URL: http://svn.erp5.org?rev=45443&view=rev
Log:
commited remainder code that should be in r45441
Modified:
erp5/trunk/utils/cloudooo.handler.ffmpeg/src/cloudooo/handler/ffmpeg/handler.py
Modified: erp5/trunk/utils/cloudooo.handler.ffmpeg/src/cloudooo/handler/ffmpeg/handler.py
URL: http://svn.erp5.org/erp5/trunk/utils/cloudooo.handler.ffmpeg/src/cloudooo/handler/ffmpeg/handler.py?rev=45443&r1=45442&r2=45443&view=diff
==============================================================================
--- erp5/trunk/utils/cloudooo.handler.ffmpeg/src/cloudooo/handler/ffmpeg/handler.py [utf8] (original)
+++ erp5/trunk/utils/cloudooo.handler.ffmpeg/src/cloudooo/handler/ffmpeg/handler.py [utf8] Thu Apr 14 16:11:34 2011
@@ -32,7 +32,6 @@ from cloudooo.file import File
from subprocess import Popen, PIPE
from tempfile import mktemp
-
class Handler(object):
"""FFMPEG Handler is used to handler inputed audio and video files"""
@@ -62,6 +61,10 @@ class Handler(object):
self.input.getUrl(),
"-y",
output_url]
+ # XXX ffmpeg has a bug that needs this options to work with webm format
+ if destination_format == "webm":
+ command.insert(3, "-ab")
+ command.insert(4, "32k")
try:
stdout, stderr = Popen(command,
stdout=PIPE,
@@ -97,3 +100,4 @@ class Handler(object):
metadata -- expected an dictionary with metadata.
"""
raise NotImplementedError
+
More information about the Erp5-report
mailing list