encode larger streams first

This commit is contained in:
j 2013-03-29 16:16:35 +00:00
parent 711ebfc316
commit 056cb0d699
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ class Stream(models.Model):
def extract_derivatives(self, rebuild=False):
config = settings.CONFIG['video']
for resolution in config['resolutions']:
for resolution in sorted(config['resolutions'], reverse=True):
for f in config['formats']:
derivative, created = Stream.objects.get_or_create(file=self.file,
resolution=resolution, format=f)