keep video height if its < profile height
This commit is contained in:
parent
fd625da847
commit
29560e7aca
1 changed files with 3 additions and 0 deletions
|
@ -164,6 +164,9 @@ def video_cmd(video, target, profile, info):
|
|||
audiochannels = 1
|
||||
|
||||
if info['video'] and 'display_aspect_ratio' in info['video'][0]:
|
||||
# dont make video bigger
|
||||
height = min(height, info['video'][0]['height'])
|
||||
|
||||
dar = AspectRatio(info['video'][0]['display_aspect_ratio'])
|
||||
if info['video'][0]['framerate'] == '0:0':
|
||||
fps = 25
|
||||
|
|
Loading…
Reference in a new issue