Skip to content

Commit 41dc02e

Browse files
authored
fix: merge mode parameters (#297)
1 parent a94df95 commit 41dc02e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/burn/render_then_merge.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ def render_then_merge(video_path_list):
8989
srt_path = original_video_path[:-4] + ".srt"
9090
jsonl_path = original_video_path[:-4] + ".jsonl"
9191
# Recoginze the resolution of video
92-
video_resolution = get_resolution(original_video_path)
92+
resolution_x, resolution_y = get_resolution(original_video_path)
9393
# Process the danmakus to ass and remove emojis
9494
subtitle_font_size, subtitle_margin_v = process_danmakus(
95-
xml_path, video_resolution
95+
xml_path, resolution_x, resolution_y
9696
)
9797
# Generate the srt file via whisper model
9898
generate_subtitle(original_video_path)

0 commit comments

Comments
 (0)