From df1a96f97ad86c91b519c99d103f1fb03a1b1223 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 8 Jun 2024 11:39:22 +0100 Subject: [PATCH] force framerate if source has 90k fps --- pandora/archive/extract.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index 1ddbd69e..be4373c1 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -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: