forked from 0x2620/pandora
fix melt scaling
This commit is contained in:
parent
d9a5a75a04
commit
2a3062e029
1 changed files with 3 additions and 2 deletions
|
@ -390,13 +390,14 @@ def melt_frame_cmd(video, frame, position, height=128, info=None):
|
|||
video,
|
||||
'in=%d' % position, 'out=%d' % position,
|
||||
'-consumer', 'avformat:%s' % frame,
|
||||
'vcodec=%s' % vcodec
|
||||
'vcodec=%s' % vcodec,
|
||||
'progressive=1'
|
||||
]
|
||||
if height:
|
||||
dar = AspectRatio(info['video'][0]['display_aspect_ratio'])
|
||||
width = int(dar * height)
|
||||
width += width % 2
|
||||
cmd += ['-s', '%sx%s' % (width, height)]
|
||||
cmd += ['s=%sx%s' % (width, height)]
|
||||
return cmd
|
||||
|
||||
def frame_direct(video, target, position):
|
||||
|
|
Loading…
Reference in a new issue