Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/burn/render_then_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ def render_then_merge(video_path_list):
srt_path = original_video_path[:-4] + ".srt"
jsonl_path = original_video_path[:-4] + ".jsonl"
# Recoginze the resolution of video
video_resolution = get_resolution(original_video_path)
resolution_x, resolution_y = get_resolution(original_video_path)
# Process the danmakus to ass and remove emojis
subtitle_font_size, subtitle_margin_v = process_danmakus(
xml_path, video_resolution
xml_path, resolution_x, resolution_y
)
# Generate the srt file via whisper model
generate_subtitle(original_video_path)
Expand Down