From 5b79fac71eefc72fad9159665cc75abd2675cb8d Mon Sep 17 00:00:00 2001 From: yomguy <> Date: Sat, 10 Apr 2010 16:57:16 +0000 Subject: [PATCH] add --single-threaded argument to sox decoding command --- telemeta/export/flac.py | 2 +- telemeta/export/mp3.py | 2 +- telemeta/export/ogg.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/telemeta/export/flac.py b/telemeta/export/flac.py index c9024abb..6282d05f 100644 --- a/telemeta/export/flac.py +++ b/telemeta/export/flac.py @@ -145,7 +145,7 @@ class FlacExporter(ExporterCore): self.args = self.get_args(options) self.ext = self.get_file_extension() self.args = ' '.join(self.args) - self.command = 'sox "%s" -s -q -b 16 -t wav -c2 - | flac -c %s - ' % (self.source, self.args) + self.command = 'sox "%s" --single-threaded -q -b 16 -t wav -c2 - | flac -c %s - ' % (self.source, self.args) # Pre-proccessing self.dest = self.pre_process(self.item_id, diff --git a/telemeta/export/mp3.py b/telemeta/export/mp3.py index d6c7d167..e5317be7 100644 --- a/telemeta/export/mp3.py +++ b/telemeta/export/mp3.py @@ -156,7 +156,7 @@ class Mp3Exporter(ExporterCore): self.args = self.get_args(options) self.ext = self.get_file_extension() self.args = ' '.join(self.args) - self.command = 'sox "%s" -q -b 16 -t wav - | lame %s -' % (self.source, self.args) + self.command = 'sox "%s" --single-threaded -q -b 16 -t wav - | lame %s -' % (self.source, self.args) #self.command = 'lame %s "%s" -' % (self.args, self.source) # Pre-proccessing diff --git a/telemeta/export/ogg.py b/telemeta/export/ogg.py index 3a58f6e4..d2328fc2 100644 --- a/telemeta/export/ogg.py +++ b/telemeta/export/ogg.py @@ -131,7 +131,7 @@ class OggExporter(ExporterCore): self.args = self.get_args(options) self.ext = self.get_file_extension() self.args = ' '.join(self.args) - self.command = 'sox "%s" -s -q -b 16 -t wav -c2 - | oggenc %s -' % (self.source, self.args) + self.command = 'sox "%s" --single-threaded -q -b 16 -t wav -c2 - | oggenc %s -' % (self.source, self.args) # Pre-proccessing self.dest = self.pre_process(self.item_id, -- 2.39.5