From: yomguy Date: Thu, 25 Nov 2010 22:37:18 +0000 (+0000) Subject: update awdio scheme X-Git-Tag: 0.3.2~86 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=5019757f3284dc9e09cd5e721c1992cc38be624c;p=timeside.git update awdio scheme --- diff --git a/timeside/tools/waveform_batch_awdio.py b/timeside/tools/waveform_batch_awdio.py index d92a38f..8083c92 100644 --- a/timeside/tools/waveform_batch_awdio.py +++ b/timeside/tools/waveform_batch_awdio.py @@ -43,11 +43,14 @@ class GrapherScheme: (0, 0, 0), (58/4,68/4,65/4), (80/2,100/2,153/2), (90,180,100), (224,224,44), (255,60,30), (255,255,255) ]} + # Grapher id + self.id = 'waveform_awdio' + # Width of the image - self.width = 572 + self.width = 1800 # Height of the image - self.height = 74 + self.height = 233 # Background color self.bg_color = None @@ -57,7 +60,7 @@ class GrapherScheme: # Nb of threads # FIXME: memory leak for > 1 ! - self.threads = 2 + self.threads = 1 class Media2Waveform(object): @@ -95,7 +98,8 @@ class Media2Waveform(object): for media in self.media_list: filename = media.split(os.sep)[-1] name, ext = os.path.splitext(filename) - image = self.img_dir + os.sep + name + '.png' + size = str(self.width) + '_' + str(self.height) + image = self.img_dir + os.sep + name + '.' + self.scheme.id + '.' + size + '.png' if not os.path.exists(image) or self.force: path_dict[media] = image return path_dict