limit framerate to 30 for calculating bitrate

This commit is contained in:
j 2013-06-06 10:23:20 +00:00
parent b005fde551
commit 5d6a93d795
1 changed files with 1 additions and 0 deletions

View File

@ -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)