Commit
•
f2c1d61
1
Parent(s):
5d48b65
Update app.py
Browse files
app.py
CHANGED
@@ -97,7 +97,7 @@ def export_to_video_file(video_frames, output_video_path=None, fps=hardcoded_fps
|
|
97 |
# -----------------------------------------------------------------------------------
|
98 |
|
99 |
def interpolate_video_frames(input_file_path, output_file_path, output_fps=hardcoded_fps, desired_duration=hardcoded_duration_sec, original_duration=hardcoded_duration_sec):
|
100 |
-
scale_factor =
|
101 |
interpolation_filter = f'minterpolate=fps={output_fps},setpts={scale_factor}*PTS'
|
102 |
|
103 |
cmd = [
|
|
|
97 |
# -----------------------------------------------------------------------------------
|
98 |
|
99 |
def interpolate_video_frames(input_file_path, output_file_path, output_fps=hardcoded_fps, desired_duration=hardcoded_duration_sec, original_duration=hardcoded_duration_sec):
|
100 |
+
scale_factor = desired_duration / original_duration
|
101 |
interpolation_filter = f'minterpolate=fps={output_fps},setpts={scale_factor}*PTS'
|
102 |
|
103 |
cmd = [
|