JaMugen commited on
Commit
9ae70e0
·
1 Parent(s): 2f111e6

Update Milestone5API.py

Browse files
Files changed (1) hide show
  1. 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',