Launched beta 4

This commit is contained in:
Sergio Costas 2014-12-25 19:55:40 +01:00
parent 9b6424423b
commit 68b874d71a
3 changed files with 13 additions and 8 deletions

View file

@ -47,6 +47,9 @@ Some of the future ideas to add to Devede NG are, without an specific order:
## History of versions ## ## History of versions ##
* version 0.1 beta 4 (2014-12-25)
* Now ensures that the maximum bitrate is honored
* version 0.1 beta 3 (2014-12-21) * version 0.1 beta 3 (2014-12-21)
* Fixed the subtitle colors * Fixed the subtitle colors
* Now puts the video and audio streams in the right order * Now puts the video and audio streams in the right order

View file

@ -35,7 +35,7 @@ class configuration(GObject.GObject):
def __init__(self): def __init__(self):
GObject.GObject.__init__(self) GObject.GObject.__init__(self)
self.version = "0.1 Beta 3" self.version = "0.1 Beta 4"
def fill_config(self): def fill_config(self):

View file

@ -327,8 +327,8 @@ class devede_project:
min_bps = 300 min_bps = 300
max_total = 2700 max_total = 2700
else: else:
max_bps = -1 max_bps = 9000
min_bps = -1 min_bps = 300
max_total = -1 max_total = -1
if (total_resolution != 0): if (total_resolution != 0):
@ -339,14 +339,16 @@ class devede_project:
length = l[2] length = l[2]
audio_rate = l[3] audio_rate = l[3]
video_rate = (remaining_disc_size * surface) / ( length * total_resolution) video_rate = (remaining_disc_size * surface) / ( length * total_resolution)
if (max_total != -1): if max_total != -1:
max2 = max_total - audio_rate max2 = max_total - audio_rate
if (max2 > max_bps): if (max2 > max_bps):
max2 = max_bps max2 = max_bps
if (video_rate > max2): else:
video_rate = max2 max2 = max_bps
if (video_rate < min_bps): if (video_rate > max2):
video_rate = min_bps video_rate = max2
if (video_rate < min_bps):
video_rate = min_bps
f.set_auto_video_audio_rate(video_rate, audio_rate) f.set_auto_video_audio_rate(video_rate, audio_rate)
self.refresh_disc_usage() self.refresh_disc_usage()