From 401da3e32b2dab8e14bae8f7ffb83c94cb4e61f4 Mon Sep 17 00:00:00 2001 From: yomguy Date: Mon, 26 Jul 2010 09:31:04 +0000 Subject: [PATCH] go without watermark git-svn-id: http://svn.parisson.org/svn/tools/trunk@108 457c0346-1240-4656-8a5a-9edca8063506 --- isp_tools/isp_trans.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/isp_tools/isp_trans.py b/isp_tools/isp_trans.py index cf5253a..6d41871 100644 --- a/isp_tools/isp_trans.py +++ b/isp_tools/isp_trans.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- #!/usr/bin/python # -*- coding: utf-8 -*- # @@ -145,13 +146,13 @@ class ISPTrans(object): def transcode_command(self, source_file, start_time, duration, dest_file): # logo inlay - command = 'ffmpeg -ss %s -t %s -i %s -vhook "/usr/lib/vhook/imlib2.so -x 517 -y 516 -i %s" -f %s -s %s -vb %s -acodec libmp3lame -ab %s -ar %s -async %s -y %s' % (start_time, duration, source_file, self.water_img, self.format, self.size, self.vb, self.ab, self.ar, self.async, dest_file) + #command = 'ffmpeg -ss %s -t %s -i %s -vhook "/usr/lib/vhook/imlib2.so -x 517 -y 516 -i %s" -f %s -s %s -vb %s -acodec libmp3lame -ab %s -ar %s -async %s -y %s' % (start_time, duration, source_file, self.water_img, self.format, self.size, self.vb, self.ab, self.ar, self.async, dest_file) ## logo watermark - #command = 'ffmpeg -ss %s -t %s -i %s -vhook "/usr/lib/vhook/watermark.so -f %s" -f %s -s %s -vb %s -acodec libmp3lame -ab %s -ar %s -async %s -y %s' % (start_time, duration, source_file, self.water_img, self.format, self.size, self.vb, self.ab, self.ar, self.async, dest_file) + #command = 'ffmpeg -ss %s -t %s -i %s -vhook "/usr/lib/vhook/watermark.so -f %s" -f %s -s %s -vb %s -acodec libmp3lame -ab %s -ar %s -async %s -y %s &' % (start_time, duration, source_file, self.water_img, self.format, self.size, self.vb, self.ab, self.ar, self.async, dest_file) # normal - #command = 'ffmpeg -threads 2 -ss %s -t %s -i %s -f %s -s %s -vb %s -acodec libmp3lame -ab %s -ar %s -async %s -y %s' % (start_time, duration, source_file, self.format, self.size, self.vb, self.ab, self.ar, self.async, dest_file) + command = 'ffmpeg -ss %s -t %s -i %s -f %s -s %s -vb %s -acodec libmp3lame -ab %s -ar %s -async %s -y %s & ' % (start_time, duration, source_file, self.format, self.size, self.vb, self.ab, self.ar, self.async, dest_file) return command -- 2.39.5