Yaroslav
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -5,12 +5,12 @@ def interpolate_video(video, fps):
|
|
5 |
input_path = video.name
|
6 |
output_path = "interpolated_video.mp4"
|
7 |
|
8 |
-
# Интерполяция кадров с использованием фильтра minterpolate
|
9 |
(
|
10 |
ffmpeg
|
11 |
.input(input_path)
|
12 |
.filter('minterpolate', fps=fps)
|
13 |
-
.output(output_path)
|
14 |
.run(overwrite_output=True)
|
15 |
)
|
16 |
|
|
|
5 |
input_path = video.name
|
6 |
output_path = "interpolated_video.mp4"
|
7 |
|
8 |
+
# Интерполяция кадров с использованием фильтра minterpolate, сохраняя звук
|
9 |
(
|
10 |
ffmpeg
|
11 |
.input(input_path)
|
12 |
.filter('minterpolate', fps=fps)
|
13 |
+
.output(output_path, acodec='copy')
|
14 |
.run(overwrite_output=True)
|
15 |
)
|
16 |
|