MCPcopy Create free account

hub / github.com/DennisWei9898/viral-reel-maker / functions

Functions48 in github.com/DennisWei9898/viral-reel-maker

↓ 7 callersFunctionfmt_ts
Seconds -> HH:MM:SS for human-readable reports.
engine/srt_io.py:108
↓ 5 callersFunctionparse_srt
Parse an SRT file into Entry objects. drop_long: skip entries longer than MAX_ENTRY_SEC (Gemini chunk errors).
engine/srt_io.py:68
↓ 2 callersFunction_ass_ts
(t: str)
engine/render_reel.py:33
↓ 2 callersFunction_cosine
(a: Counter, b: Counter)
engine/texttiling_segmenter.py:66
↓ 2 callersFunction_to_sec
(h: str, m: str, s: str, ms: str)
engine/srt_io.py:64
↓ 2 callersFunctionfmt_srt_ts
(sec: float)
engine/transcribe_srt.py:35
↓ 1 callersFunction_boundaries
(depths: List[float], liberal: bool)
engine/texttiling_segmenter.py:124
↓ 1 callersFunction_depth_scores
Hearst depth score: how deep each valley is vs its surrounding peaks.
engine/texttiling_segmenter.py:103
↓ 1 callersFunction_gap_scores
Cohesion at each gap between entry i and i+1 (len == n-1).
engine/texttiling_segmenter.py:88
↓ 1 callersFunction_grab
Extract one frame at time t. -ss AFTER -i for accurate seek (CLAUDE.md).
engine/self_eval.py:52
↓ 1 callersFunction_heuristic_features
(seg: Segment)
engine/score_segments.py:48
↓ 1 callersFunction_heuristic_score
Transparent 0-100 pre-rank. Mirrors rubric weighting at a coarse level.
engine/score_segments.py:83
↓ 1 callersFunction_is_black
Cheap black-frame check via ffmpeg signalstats avg luma.
engine/self_eval.py:63
↓ 1 callersFunction_runs_by_silence
Partition entries into runs split wherever a silence gap exceeds SILENCE_GAP. Cutting never crosses a long pause, so no clip carries dead air.
engine/texttiling_segmenter.py:164
↓ 1 callersFunction_smooth
(scores: List[float], rounds: int)
engine/texttiling_segmenter.py:78
↓ 1 callersFunction_split_long
Recursively split a segment that exceeds MAX_SEG_SEC at its weakest gap.
engine/texttiling_segmenter.py:137
↓ 1 callersFunction_texttile_run
TextTiling within a single silence-bounded run.
engine/texttiling_segmenter.py:180
↓ 1 callersFunctionbuild_candidates
(srt_path: str, liberal: bool = True)
engine/score_segments.py:110
↓ 1 callersFunctionbuild_contact_sheet
Tile frames into one PNG. Robust method: normalize each frame to an identically-sized numbered file, then run ffmpeg's `tile` over the sequence
engine/self_eval.py:97
↓ 1 callersFunctionbuild_sub_ass
(srt_path: str, ass_path: str, st: Style)
engine/render_reel.py:39
↓ 1 callersFunctioncut_times_from_cuts
selection.json holds source timestamps; on a concatenated final video the cut points are the cumulative durations. We reconstruct them from dur.
engine/self_eval.py:86
↓ 1 callersFunctioncut_times_from_srt
(srt: str)
engine/self_eval.py:80
↓ 1 callersFunctionextract_audio
(video: str, wav: str)
engine/transcribe_srt.py:27
↓ 1 callersFunctionfinalize
(cands_path: Path, scored_path: Path, out_dir: Path, top: int)
engine/score_segments.py:170
↓ 1 callersFunctionkeywords
(text: str, n: int = 12)
engine/publish_meta.py:33
↓ 1 callersFunctionlongest_line
(srt: str)
engine/publish_meta.py:47
↓ 1 callersFunctionmain
()
engine/transcribe_srt.py:46
↓ 1 callersFunctionmain
()
engine/score_segments.py:217
↓ 1 callersFunctionmain
()
engine/gen_title.py:35
↓ 1 callersFunctionmain
()
engine/self_eval.py:126
↓ 1 callersFunctionmain
()
engine/publish_meta.py:54
↓ 1 callersFunctionmain
()
engine/render_reel.py:66
↓ 1 callersFunctionmain
()
engine/texttiling_segmenter.py:233
↓ 1 callersFunctionmarkup
(line: str)
engine/gen_title.py:29
↓ 1 callersFunctionprobe
(path: str)
engine/self_eval.py:34
↓ 1 callersFunctionsegment
Main entry: entries -> list of topic Segments respecting duration bounds. Two-stage: (1) hard-split on silence gaps so no segment spans a long pa
engine/texttiling_segmenter.py:213
↓ 1 callersFunctiontokenize
(text: str)
engine/texttiling_segmenter.py:52
↓ 1 callersFunctionwrite_packed
Claude's scoring worksheet: pre-ranked by heuristic, full text included.
engine/score_segments.py:131
Method__getitem__
(self, k)
engine/style.py:15
Method__init__
(self, style_dir: str)
engine/style.py:10
Methodcanvas
(self)
engine/style.py:19
Methoddur
(self)
engine/srt_io.py:30
Methoddur
(self)
engine/srt_io.py:48
Methodend
(self)
engine/srt_io.py:44
Methodfirst_index
(self)
engine/srt_io.py:56
Methodlast_index
(self)
engine/srt_io.py:60
Methodstart
(self)
engine/srt_io.py:40
Methodtext
(self)
engine/srt_io.py:52