force framerate if source has 90k fps
This commit is contained in:
parent
8b60075f39
commit
df1a96f97a
1 changed files with 2 additions and 0 deletions
|
@ -251,6 +251,8 @@ def stream(video, target, profile, info, audio_track=0, flags={}):
|
|||
'-level', '4.0',
|
||||
'-pix_fmt', 'yuv420p',
|
||||
]
|
||||
if info.get("force_framerate"):
|
||||
video_settings += ['-r:v', str(float(info["framerate"]))]
|
||||
video_settings += ['-map', '0:%s,0:0' % info['video'][0]['id']]
|
||||
audio_only = False
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue