Spaces:
Runtime error
Runtime error
Commit
·
e166a5f
1
Parent(s):
2de166e
minor fixes
Browse files- video_tool.py +6 -2
video_tool.py
CHANGED
@@ -2,8 +2,8 @@ import ffmpeg
|
|
2 |
|
3 |
|
4 |
def convert_video_to_audio(input_file, output_file, start_time, end_time):
|
5 |
-
print(input_file)
|
6 |
-
print(output_file)
|
7 |
|
8 |
(
|
9 |
ffmpeg
|
@@ -14,6 +14,10 @@ def convert_video_to_audio(input_file, output_file, start_time, end_time):
|
|
14 |
|
15 |
|
16 |
def add_subtitle_to_video(input_file, subtitle_file, output_file, start_time, end_time):
|
|
|
|
|
|
|
|
|
17 |
(
|
18 |
ffmpeg
|
19 |
.input(input_file)
|
|
|
2 |
|
3 |
|
4 |
def convert_video_to_audio(input_file, output_file, start_time, end_time):
|
5 |
+
print(f"INPUT: {input_file}")
|
6 |
+
print(f"OUTPUT: {output_file}")
|
7 |
|
8 |
(
|
9 |
ffmpeg
|
|
|
14 |
|
15 |
|
16 |
def add_subtitle_to_video(input_file, subtitle_file, output_file, start_time, end_time):
|
17 |
+
print("ADD SUBTITLE")
|
18 |
+
print(f"INPUT: {input_file}")
|
19 |
+
print(f"SUBTITLE: {subtitle_file}")
|
20 |
+
print(f"OUTPUT: {output_file}")
|
21 |
(
|
22 |
ffmpeg
|
23 |
.input(input_file)
|