From 5d6a93d795d97695b82eb4ece196d84ad1a7044a Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 6 Jun 2013 10:23:20 +0000 Subject: [PATCH] limit framerate to 30 for calculating bitrate --- pandora/archive/extract.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index 871a2adb..985826a8 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -146,6 +146,7 @@ def stream(video, target, profile, info): if info['video'] and 'display_aspect_ratio' in info['video'][0]: fps = AspectRatio(info['video'][0]['framerate']) + fps = min(30, float(fps)) dar = AspectRatio(info['video'][0]['display_aspect_ratio']) width = int(dar * height)