From 7359a24d78fb99640a9d94986a25ff9e7a5138a3 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 22 May 2015 19:01:05 +0530 Subject: [PATCH] keep video height if its < profile height --- pandora/archive/extract.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index 0375489b..8d654966 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -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))