Skip to content

Commit

Permalink
fix: do not get_video_info
Browse files Browse the repository at this point in the history
  • Loading branch information
WEIFENG2333 committed Mar 2, 2025
1 parent de996df commit b11e99f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/core/utils/video_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ def add_subtitles(
shutil.copy2(subtitle_file, temp_subtitle)
subtitle_file = str(temp_subtitle)

video_info = get_video_info(input_file)
if suffix == ".ass" and video_info:
# video_info = get_video_info(input_file)
if suffix == ".ass":
subtitle_file = auto_wrap_ass_file(
subtitle_file,
video_width=video_info["width"],
video_height=video_info["height"],
# video_width=video_info["width"],
# video_height=video_info["height"],
)

# 如果是WebM格式,强制使用硬字幕
Expand Down

0 comments on commit b11e99f

Please sign in to comment.