force_framerate is in video track

This commit is contained in:
j 2024-06-08 11:42:22 +01:00
parent 3579a4de45
commit ca701b9749

View File

@ -252,7 +252,7 @@ def stream(video, target, profile, info, audio_track=0, flags={}):
'-pix_fmt', 'yuv420p',
]
if info['video'][0].get("force_framerate"):
video_settings += ['-r:v', str(float(info["framerate"]))]
video_settings += ['-r:v', str(float(info['video'][0]["framerate"]))]
video_settings += ['-map', '0:%s,0:0' % info['video'][0]['id']]
audio_only = False
else: