forked from 0x2620/pandora
encode larger streams first
This commit is contained in:
parent
711ebfc316
commit
056cb0d699
1 changed files with 1 additions and 1 deletions
|
@ -464,7 +464,7 @@ class Stream(models.Model):
|
||||||
|
|
||||||
def extract_derivatives(self, rebuild=False):
|
def extract_derivatives(self, rebuild=False):
|
||||||
config = settings.CONFIG['video']
|
config = settings.CONFIG['video']
|
||||||
for resolution in config['resolutions']:
|
for resolution in sorted(config['resolutions'], reverse=True):
|
||||||
for f in config['formats']:
|
for f in config['formats']:
|
||||||
derivative, created = Stream.objects.get_or_create(file=self.file,
|
derivative, created = Stream.objects.get_or_create(file=self.file,
|
||||||
resolution=resolution, format=f)
|
resolution=resolution, format=f)
|
||||||
|
|
Loading…
Reference in a new issue