Added AC3 support for menus

Updated spanish translation

Added POTFILES.in file
This commit is contained in:
Sergio Costas 2014-08-13 21:09:52 +02:00
parent c914b5e66c
commit e42829e887
8 changed files with 1659 additions and 1267 deletions

View file

@ -349,7 +349,7 @@ class avconv_converter(devede.executor.executor):
self.command_var.append(output_file)
def create_menu_mpeg(self,n_page,background_music,sound_length,pal,video_rate, audio_rate,output_path):
def create_menu_mpeg(self,n_page,background_music,sound_length,pal,video_rate, audio_rate,output_path, use_mp2):
self.n_page = n_page
self.final_length = float(sound_length)
@ -375,7 +375,10 @@ class avconv_converter(devede.executor.executor):
else:
self.command_var.append("ntsc-dvd")
self.command_var.append("-acodec")
self.command_var.append("mp2")
if (use_mp2):
self.command_var.append("mp2")
else:
self.command_var.append("ac3")
self.command_var.append("-s")
if pal:
self.command_var.append("720x576")

View file

@ -35,7 +35,7 @@ class configuration(GObject.GObject):
def __init__(self):
GObject.GObject.__init__(self)
self.version = "0.1 Alpha 1"
self.version = "0.1 Alpha 2"
def fill_config(self):

View file

@ -50,6 +50,8 @@ class dvd_menu(devede.interface_manager.interface_manager):
self.add_integer_adjustment("sound_length", 30)
self.add_dualtoggle("audio_mp2", "audio_ac3", True)
self.add_float_adjustment("margin_left", 10.0, self.update_preview)
self.add_float_adjustment("margin_top", 12.5, self.update_preview)
self.add_float_adjustment("margin_right", 10.0, self.update_preview)
@ -601,7 +603,7 @@ class dvd_menu(devede.interface_manager.interface_manager):
self.sf.write_to_png(os.path.join(menu_folder,"menu_"+str(n_page)+"_active_bg.png"))
entry_data = self.create_menu_stream(menu_folder, n_page, coordinates)
converter = menu_converter()
final_path = converter.create_menu_mpeg(n_page,self.background_music,self.sound_length,self.config.PAL,self.video_rate,self.audio_rate,menu_folder)
final_path = converter.create_menu_mpeg(n_page,self.background_music,self.sound_length,self.config.PAL,self.video_rate,self.audio_rate,menu_folder, self.audio_mp2)
entry_data["filename"] = final_path
menu_entries.append(entry_data)
# add this process without dependencies

View file

@ -349,7 +349,7 @@ class ffmpeg_converter(devede.executor.executor):
self.command_var.append(output_file)
def create_menu_mpeg(self,n_page,background_music,sound_length,pal,video_rate, audio_rate,output_path):
def create_menu_mpeg(self,n_page,background_music,sound_length,pal,video_rate, audio_rate,output_path, use_mp2):
self.n_page = n_page
self.final_length = float(sound_length)
@ -375,7 +375,10 @@ class ffmpeg_converter(devede.executor.executor):
else:
self.command_var.append("ntsc-dvd")
self.command_var.append("-acodec")
self.command_var.append("mp2")
if use_mp2:
self.command_var.append("mp2")
else:
self.command_var.append("ac3")
self.command_var.append("-s")
if pal:
self.command_var.append("720x576")