From ca61cc657633e2c1606786bc721493def7fdaf3e Mon Sep 17 00:00:00 2001 From: Fergal Moran Date: Fri, 19 Apr 2013 15:21:52 +0100 Subject: [PATCH] Changed over to wav2png for waveform generation --- core/utils/waveform.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/utils/waveform.py b/core/utils/waveform.py index 186ec72..f548df3 100644 --- a/core/utils/waveform.py +++ b/core/utils/waveform.py @@ -14,8 +14,9 @@ def generate_waveform(input_file, output_file): print "Finished decode" if os.path.exists(working_file): print "Starting waveform generation" - print "%s -m -l -i %s -o -b 000000 %s" % (settings.DSS_WAVE_PATH, working_file, output_file) - subprocess.call([settings.DSS_WAVE_PATH, "-t", "-m", "-l", "-i", working_file, "-o", output_file]) + #print "%s -m -l -i %s -o -b 000000 %s" % (settings.DSS_WAVE_PATH, working_file, output_file) + #subprocess.call([settings.DSS_WAVE_PATH, "-t", "-m", "-l", "-i", working_file, "-o", output_file]) + subprocess.call([settings.DSS_WAVE_PATH, "-w 800", "-h 120", "-o %s" % output_file, working_file]) if os.path.isfile(output_file): os.remove(working_file)