default to frames

This commit is contained in:
j 2011-12-28 18:05:10 +05:30
parent 40e8eeb0cb
commit d3f96386c0
3 changed files with 3 additions and 2 deletions

View file

@ -61,6 +61,7 @@ def stream(video, target, profile, info):
H264, should bitrates be a bit lower? other stuff possible?
'''
profile, format = profile.split('.')
bpp = 0.17
if profile == '1080p':
height = 1080
@ -105,7 +106,6 @@ def stream(video, target, profile, info):
audiobitrate = '22k'
audiochannels = 1
bpp = 0.17
if info['video'] and 'display_aspect_ratio' in info['video'][0]:
fps = AspectRatio(info['video'][0]['framerate'])

View file

@ -1086,6 +1086,7 @@ class Item(models.Model):
cmd += ['-f', frame]
p = subprocess.Popen(cmd)
p.wait()
#remove cached versions
icons = os.path.abspath(os.path.join(settings.MEDIA_ROOT, icon))
icons = glob(icons.replace('.jpg', '*.jpg'))
for f in filter(lambda p: not p.endswith('/icon.jpg'), icons):

View file

@ -482,7 +482,7 @@
],
"filtersSize": 176,
"find": {"conditions": [], "operator": "&"},
"icons": "posters",
"icons": "frames",
"infoIconSize": 256,
"item": "",
"itemFind": {"conditions": [], "operator": "&"},