From bffe69c137609e433facd4c8855d0c47280f525b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 6 Jun 2013 12:29:40 +0200 Subject: [PATCH] limit bitrate calculation to 30fps --- pandora_client/extract.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora_client/extract.py b/pandora_client/extract.py index 03f3189..a3a5504 100644 --- a/pandora_client/extract.py +++ b/pandora_client/extract.py @@ -168,6 +168,7 @@ def video_cmd(video, target, profile, info): if fps == 60: fps = 30 extra += ['-r', '30'] + fps = min(float(fps), 30) bitrate = height*width*fps*bpp/1000 aspect = dar.ratio #use 1:1 pixel aspect ratio if dar is close to that