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

Update Milestone5API.py

Browse files
Files changed (1) hide show
  1. Milestone5API.py +1 -1
Milestone5API.py CHANGED
@@ -19,7 +19,7 @@ def add_text_to_video(input_video_path, output_video_path, text):
19
  '-vf', f"drawtext=text='{text}':fontsize=24:fontcolor=white:x=(w-text_w)/2:y=(h-text_h)/2",
20
  '-c:a', 'copy',
21
  output_video_path
22
- ], check=True)
23
  print("Text added to video successfully.")
24
  except subprocess.CalledProcessError as e:
25
  print("Error adding text to video:", e)
 
19
  '-vf', f"drawtext=text='{text}':fontsize=24:fontcolor=white:x=(w-text_w)/2:y=(h-text_h)/2",
20
  '-c:a', 'copy',
21
  output_video_path
22
+ ],check=True, stdout=subprocess.PIPE)
23
  print("Text added to video successfully.")
24
  except subprocess.CalledProcessError as e:
25
  print("Error adding text to video:", e)