limit framerate to 30 for calculating bitrate
This commit is contained in:
parent
b005fde551
commit
5d6a93d795
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue