force framerate if source has 90k fps

This commit is contained in:
j 2024-06-08 11:39:22 +01:00
parent 8b60075f39
commit df1a96f97a

View file

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