Now it copies all the audio streams

This commit is contained in:
Sergio Costas 2014-07-26 00:36:48 +02:00
parent 4f42fb4dbd
commit 2564470119
2 changed files with 9 additions and 7 deletions

View file

@ -59,17 +59,19 @@ class avconv_converter(devede.executor.executor):
self.command_var.append("-vol") self.command_var.append("-vol")
self.command_var.append(str((256*file_project.volume)/100)) 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("-itsoffset")
self.command_var.append(str(file_project.audio_delay)) 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("-i")
self.command_var.append("-map") self.command_var.append(file_project.file_name)
self.command_var.append("1:0") 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): for l in range (file_project.audio_streams):
self.command_var.append("-map") self.command_var.append("-map")
self.command_var.append("0"+":"+str(l+1)) self.command_var.append("0"+":"+str(l+1))
if (file_project.no_reencode_audio_video==False): if (file_project.no_reencode_audio_video==False):
cmd_line="" cmd_line=""

View file

@ -168,7 +168,7 @@ class configuration(GObject.GObject):
config_data.write("temp_folder:"+str(self.tmp_folder)+"\n") config_data.write("temp_folder:"+str(self.tmp_folder)+"\n")
config_data.write("multicore:") config_data.write("multicore:")
if (self.multicore): if (self.multicore):
config_data.write("2\n") config_data.write("0\n")
else: else:
config_data.write("1\n") config_data.write("1\n")
if (self.final_folder != None): if (self.final_folder != None):