Spaces:
Sleeping
Sleeping
Update Milestone5API.py
Browse files- Milestone5API.py +1 -0
Milestone5API.py
CHANGED
|
@@ -15,6 +15,7 @@ def add_text_to_video(input_video_path, output_video_path, text):
|
|
| 15 |
try:
|
| 16 |
subprocess.run([
|
| 17 |
'ffmpeg',
|
|
|
|
| 18 |
'-i', input_video_path,
|
| 19 |
'-vf', f"drawtext=text='{text}':fontsize=24:fontcolor=white:x=(w-text_w)/2:y=(h-text_h)/2",
|
| 20 |
'-c:a', 'copy',
|
|
|
|
| 15 |
try:
|
| 16 |
subprocess.run([
|
| 17 |
'ffmpeg',
|
| 18 |
+
'-y',
|
| 19 |
'-i', input_video_path,
|
| 20 |
'-vf', f"drawtext=text='{text}':fontsize=24:fontcolor=white:x=(w-text_w)/2:y=(h-text_h)/2",
|
| 21 |
'-c:a', 'copy',
|