Added experimental support for 16:9 menues

This commit is contained in:
Sergio Costas 2018-05-01 20:47:27 +02:00
parent e70bca519b
commit 5c6b98647b
8 changed files with 178 additions and 90 deletions

View file

@ -494,7 +494,7 @@ class avconv(devedeng.avbase.avbase):
self.command_var.append(output_file)
def create_menu_mpeg(self, n_page, background_music, sound_length, pal, video_rate, audio_rate, output_path, use_mp2):
def create_menu_mpeg(self, n_page, background_music, sound_length, pal, video_rate, audio_rate, output_path, use_mp2, widescreen):
self.n_page = n_page
self.final_length = float(sound_length)
@ -539,7 +539,10 @@ class avconv(devedeng.avbase.avbase):
self.command_var.append("-b:a")
self.command_var.append(str(audio_rate) + "k")
self.command_var.append("-aspect")
self.command_var.append("4:3")
if widescreen:
self.command_var.append("16:9")
else:
self.command_var.append("4:3")
self.command_var.append("-t")
self.command_var.append(str(1 + sound_length))