Skip to content

FunASR-powered video transcription, subtitle generation, and LLM-assisted clipping tool with a local Gradio UI.

bug fix

维石ff6519d4ec84
diff --git a/funclip/videoclipper.py b/funclip/videoclipper.py
index 0414a28..5781aa3 100644
--- a/funclip/videoclipper.py
+++ b/funclip/videoclipper.py
@@ -234,6 +234,8 @@ class VideoClipper():
for _ts in ts[1:]:
start, end = _ts[0] / 16000, _ts[1] / 16000
srt_clip, subs, srt_index = generate_srt_clip(sentences, start, end, begin_index=srt_index-1, time_acc_ost=time_acc_ost)
+ if not len(subs):
+ continue
chi_subs = []
sub_starts = subs[0][0][0]
for sub in subs: