default to frames
This commit is contained in:
parent
40e8eeb0cb
commit
d3f96386c0
3 changed files with 3 additions and 2 deletions
|
@ -61,6 +61,7 @@ def stream(video, target, profile, info):
|
||||||
H264, should bitrates be a bit lower? other stuff possible?
|
H264, should bitrates be a bit lower? other stuff possible?
|
||||||
'''
|
'''
|
||||||
profile, format = profile.split('.')
|
profile, format = profile.split('.')
|
||||||
|
bpp = 0.17
|
||||||
|
|
||||||
if profile == '1080p':
|
if profile == '1080p':
|
||||||
height = 1080
|
height = 1080
|
||||||
|
@ -105,7 +106,6 @@ def stream(video, target, profile, info):
|
||||||
audiobitrate = '22k'
|
audiobitrate = '22k'
|
||||||
audiochannels = 1
|
audiochannels = 1
|
||||||
|
|
||||||
bpp = 0.17
|
|
||||||
|
|
||||||
if info['video'] and 'display_aspect_ratio' in info['video'][0]:
|
if info['video'] and 'display_aspect_ratio' in info['video'][0]:
|
||||||
fps = AspectRatio(info['video'][0]['framerate'])
|
fps = AspectRatio(info['video'][0]['framerate'])
|
||||||
|
|
|
@ -1086,6 +1086,7 @@ class Item(models.Model):
|
||||||
cmd += ['-f', frame]
|
cmd += ['-f', frame]
|
||||||
p = subprocess.Popen(cmd)
|
p = subprocess.Popen(cmd)
|
||||||
p.wait()
|
p.wait()
|
||||||
|
#remove cached versions
|
||||||
icons = os.path.abspath(os.path.join(settings.MEDIA_ROOT, icon))
|
icons = os.path.abspath(os.path.join(settings.MEDIA_ROOT, icon))
|
||||||
icons = glob(icons.replace('.jpg', '*.jpg'))
|
icons = glob(icons.replace('.jpg', '*.jpg'))
|
||||||
for f in filter(lambda p: not p.endswith('/icon.jpg'), icons):
|
for f in filter(lambda p: not p.endswith('/icon.jpg'), icons):
|
||||||
|
|
|
@ -482,7 +482,7 @@
|
||||||
],
|
],
|
||||||
"filtersSize": 176,
|
"filtersSize": 176,
|
||||||
"find": {"conditions": [], "operator": "&"},
|
"find": {"conditions": [], "operator": "&"},
|
||||||
"icons": "posters",
|
"icons": "frames",
|
||||||
"infoIconSize": 256,
|
"infoIconSize": 256,
|
||||||
"item": "",
|
"item": "",
|
||||||
"itemFind": {"conditions": [], "operator": "&"},
|
"itemFind": {"conditions": [], "operator": "&"},
|
||||||
|
|
Loading…
Reference in a new issue