Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DennisWei9898/viral-reel-maker
/ functions
Functions
48 in github.com/DennisWei9898/viral-reel-maker
⨍
Functions
48
◇
Types & classes
3
↓ 7 callers
Function
fmt_ts
Seconds -> HH:MM:SS for human-readable reports.
engine/srt_io.py:108
↓ 5 callers
Function
parse_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 callers
Function
_ass_ts
(t: str)
engine/render_reel.py:33
↓ 2 callers
Function
_cosine
(a: Counter, b: Counter)
engine/texttiling_segmenter.py:66
↓ 2 callers
Function
_to_sec
(h: str, m: str, s: str, ms: str)
engine/srt_io.py:64
↓ 2 callers
Function
fmt_srt_ts
(sec: float)
engine/transcribe_srt.py:35
↓ 1 callers
Function
_boundaries
(depths: List[float], liberal: bool)
engine/texttiling_segmenter.py:124
↓ 1 callers
Function
_depth_scores
Hearst depth score: how deep each valley is vs its surrounding peaks.
engine/texttiling_segmenter.py:103
↓ 1 callers
Function
_gap_scores
Cohesion at each gap between entry i and i+1 (len == n-1).
engine/texttiling_segmenter.py:88
↓ 1 callers
Function
_grab
Extract one frame at time t. -ss AFTER -i for accurate seek (CLAUDE.md).
engine/self_eval.py:52
↓ 1 callers
Function
_heuristic_features
(seg: Segment)
engine/score_segments.py:48
↓ 1 callers
Function
_heuristic_score
Transparent 0-100 pre-rank. Mirrors rubric weighting at a coarse level.
engine/score_segments.py:83
↓ 1 callers
Function
_is_black
Cheap black-frame check via ffmpeg signalstats avg luma.
engine/self_eval.py:63
↓ 1 callers
Function
_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 callers
Function
_smooth
(scores: List[float], rounds: int)
engine/texttiling_segmenter.py:78
↓ 1 callers
Function
_split_long
Recursively split a segment that exceeds MAX_SEG_SEC at its weakest gap.
engine/texttiling_segmenter.py:137
↓ 1 callers
Function
_texttile_run
TextTiling within a single silence-bounded run.
engine/texttiling_segmenter.py:180
↓ 1 callers
Function
build_candidates
(srt_path: str, liberal: bool = True)
engine/score_segments.py:110
↓ 1 callers
Function
build_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 callers
Function
build_sub_ass
(srt_path: str, ass_path: str, st: Style)
engine/render_reel.py:39
↓ 1 callers
Function
cut_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 callers
Function
cut_times_from_srt
(srt: str)
engine/self_eval.py:80
↓ 1 callers
Function
extract_audio
(video: str, wav: str)
engine/transcribe_srt.py:27
↓ 1 callers
Function
finalize
(cands_path: Path, scored_path: Path, out_dir: Path, top: int)
engine/score_segments.py:170
↓ 1 callers
Function
keywords
(text: str, n: int = 12)
engine/publish_meta.py:33
↓ 1 callers
Function
longest_line
(srt: str)
engine/publish_meta.py:47
↓ 1 callers
Function
main
()
engine/transcribe_srt.py:46
↓ 1 callers
Function
main
()
engine/score_segments.py:217
↓ 1 callers
Function
main
()
engine/gen_title.py:35
↓ 1 callers
Function
main
()
engine/self_eval.py:126
↓ 1 callers
Function
main
()
engine/publish_meta.py:54
↓ 1 callers
Function
main
()
engine/render_reel.py:66
↓ 1 callers
Function
main
()
engine/texttiling_segmenter.py:233
↓ 1 callers
Function
markup
(line: str)
engine/gen_title.py:29
↓ 1 callers
Function
probe
(path: str)
engine/self_eval.py:34
↓ 1 callers
Function
segment
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 callers
Function
tokenize
(text: str)
engine/texttiling_segmenter.py:52
↓ 1 callers
Function
write_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
Method
canvas
(self)
engine/style.py:19
Method
dur
(self)
engine/srt_io.py:30
Method
dur
(self)
engine/srt_io.py:48
Method
end
(self)
engine/srt_io.py:44
Method
first_index
(self)
engine/srt_io.py:56
Method
last_index
(self)
engine/srt_io.py:60
Method
start
(self)
engine/srt_io.py:40
Method
text
(self)
engine/srt_io.py:52