Skip to content

Commit

Permalink
mypy error solved
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayush0054 committed Dec 30, 2024
1 parent 4b94fd7 commit cf70297
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions phi/tools/moviepy_video_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ def embed_captions(
) -> str:
"""Embed scrolling captions with word-level highlighting into video"""
try:
# If no output path provided, create one based on input video
if output_path is None:
output_path = video_path.rsplit(".", 1)[0] + "_captioned.mp4"

# Load video
video = VideoFileClip(video_path)

Expand Down

0 comments on commit cf70297

Please sign in to comment.