From 2564470119feb81cd27e9350c04ab17b53c4e0c0 Mon Sep 17 00:00:00 2001 From: Sergio Costas Date: Sat, 26 Jul 2014 00:36:48 +0200 Subject: [PATCH] Now it copies all the audio streams --- src/devede/avconv_converter.py | 14 ++++++++------ src/devede/configuration_data.py | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/devede/avconv_converter.py b/src/devede/avconv_converter.py index 638e16d..ad4a377 100644 --- a/src/devede/avconv_converter.py +++ b/src/devede/avconv_converter.py @@ -59,17 +59,19 @@ class avconv_converter(devede.executor.executor): self.command_var.append("-vol") self.command_var.append(str((256*file_project.volume)/100)) - if (file_project.audio_delay!=0.0) and (file_project.copy_sound==False) and (file_project.no_reencode_audio_video==False): + if (file_project.audio_delay != 0.0) and (file_project.copy_sound==False) and (file_project.no_reencode_audio_video==False): self.command_var.append("-itsoffset") self.command_var.append(str(file_project.audio_delay)) - self.command_var.append("-i") - self.command_var.append(file_project.file_name) - self.command_var.append("-map") - self.command_var.append("1:0") + + self.command_var.append("-i") + self.command_var.append(file_project.file_name) + self.command_var.append("-map") + self.command_var.append("1:0") + if (not file_project.copy_sound) and (not file_project.no_reencode_audio_video): for l in range (file_project.audio_streams): self.command_var.append("-map") self.command_var.append("0"+":"+str(l+1)) - + if (file_project.no_reencode_audio_video==False): cmd_line="" diff --git a/src/devede/configuration_data.py b/src/devede/configuration_data.py index abb7033..e632713 100644 --- a/src/devede/configuration_data.py +++ b/src/devede/configuration_data.py @@ -168,7 +168,7 @@ class configuration(GObject.GObject): config_data.write("temp_folder:"+str(self.tmp_folder)+"\n") config_data.write("multicore:") if (self.multicore): - config_data.write("2\n") + config_data.write("0\n") else: config_data.write("1\n") if (self.final_folder != None):