keep video height if its < profile height

This commit is contained in:
j 2015-05-22 19:01:05 +05:30
parent 509fa6fd0c
commit 7359a24d78
1 changed files with 3 additions and 1 deletions

View File

@ -144,8 +144,10 @@ def stream(video, target, profile, info, audio_track=0):
audiobitrate = '22k'
audiochannels = 1
if info['video'] and 'display_aspect_ratio' in info['video'][0]:
# dont make video bigger
height = min(height, info['video'][0]['height'])
fps = AspectRatio(info['video'][0]['framerate'])
fps = min(30, float(fps))