Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/browser-use/video-use
/ functions
Functions
45 in github.com/browser-use/video-use
⨍
Functions
45
◇
Types & classes
0
↓ 5 callers
Function
_parse_value
(line: str)
helpers/grade.py:124
↓ 4 callers
Function
flush
()
helpers/pack_transcripts.py:54
↓ 4 callers
Function
time_to_x
(t: float)
helpers/timeline_view.py:259
↓ 3 callers
Function
auto_grade_for_clip
Analyze a clip range and emit a subtle per-clip correction filter. Returns (filter_string, stats_dict). The filter is bounded to ±8% on any axis
helpers/grade.py:178
↓ 3 callers
Function
get_preset
Return the ffmpeg filter string for a preset name. Empty string for 'none'.
helpers/grade.py:66
↓ 3 callers
Function
load_font
(size: int)
helpers/timeline_view.py:163
↓ 3 callers
Function
resolve_path
Resolve a path that may be absolute or relative to `base`.
helpers/render.py:87
↓ 2 callers
Function
_srt_timestamp
(seconds: float)
helpers/render.py:292
↓ 2 callers
Function
build_final_composite
Final pass: base → overlays (PTS-shifted) → subtitles LAST → out. If there are no overlays and no subtitles, just copy base to out.
helpers/render.py:496
↓ 2 callers
Function
format_duration
Format a duration as "Ms" or "Mm SSs".
helpers/pack_transcripts.py:29
↓ 2 callers
Function
format_time
Format a time in seconds as "NNN.NN" with fixed 6-char width for alignment.
helpers/pack_transcripts.py:24
↓ 2 callers
Function
load_api_key
()
helpers/transcribe.py:33
↓ 1 callers
Function
_sample_frame_stats
Sample N frames from a range and compute brightness/contrast/saturation stats. Uses ffmpeg's `signalstats` filter which gives us YMIN, YMAX, YAVG
helpers/grade.py:78
↓ 1 callers
Function
_words_in_range
(transcript: dict, t_start: float, t_end: float)
helpers/render.py:300
↓ 1 callers
Function
apply_grade
(input_path: Path, output_path: Path, filter_string: str)
helpers/grade.py:274
↓ 1 callers
Function
apply_loudnorm_two_pass
Run two-pass loudnorm on input_path, write normalized copy to output_path. Returns True on success, False if measurement failed (caller should fa
helpers/render.py:431
↓ 1 callers
Function
build_master_srt
Build an output-timeline SRT from per-source transcripts. - 2-word chunks (break on any punctuation in between) - UPPERCASE text - Output
helpers/render.py:315
↓ 1 callers
Function
call_scribe
( audio_path: Path, api_key: str, language: str | None = None, num_speakers: int | None = None
helpers/transcribe.py:58
↓ 1 callers
Function
compute_envelope
Extract the audio segment and return an RMS envelope of length `samples`. Uses ffmpeg to dump mono 16kHz PCM to a temp wav, then computes a w
helpers/timeline_view.py:68
↓ 1 callers
Function
concat_segments
Lossless concat via the concat demuxer. No re-encode.
helpers/render.py:267
↓ 1 callers
Function
extract_all_segments
Extract every EDL range into edit_dir/clips_graded/seg_NN.mp4. Returns the ordered list of segment paths. If the EDL `grade` is "auto", analy
helpers/render.py:214
↓ 1 callers
Function
extract_audio
(video_path: Path, dest: Path)
helpers/transcribe.py:49
↓ 1 callers
Function
extract_frames
Extract N frames evenly spaced across [start, end]. Returns paths in order.
helpers/timeline_view.py:37
↓ 1 callers
Function
extract_segment
Extract a cut range as its own MP4 with grade + 30ms audio fades baked in. `-ss` before `-i` for fast accurate seeking. Scale to 1080p from 4K.
helpers/render.py:152
↓ 1 callers
Function
find_silences
Find gaps >= threshold seconds inside [start, end] between kept tokens.
helpers/timeline_view.py:135
↓ 1 callers
Function
find_videos
(videos_dir: Path)
helpers/transcribe_batch.py:29
↓ 1 callers
Function
group_into_phrases
Walk a Scribe word list, break into phrases on silence >= threshold OR speaker change. Returns list of {start, end, text, speaker_id}. Scribe
helpers/pack_transcripts.py:38
↓ 1 callers
Function
is_hdr_source
Return True if the source uses a PQ or HLG transfer function.
helpers/render.py:120
↓ 1 callers
Function
is_portrait_source
Return True if the video's height > width (portrait / vertical).
helpers/render.py:134
↓ 1 callers
Function
main
()
helpers/pack_transcripts.py:165
↓ 1 callers
Function
main
()
helpers/transcribe.py:135
↓ 1 callers
Function
main
()
helpers/timeline_view.py:333
↓ 1 callers
Function
main
()
helpers/transcribe_batch.py:37
↓ 1 callers
Function
main
()
helpers/render.py:575
↓ 1 callers
Function
main
()
helpers/grade.py:294
↓ 1 callers
Function
measure_loudness
Run ffmpeg loudnorm first pass and parse the JSON measurement. Returns a dict with measured_i, measured_tp, measured_lra, measured_thresh, ta
helpers/render.py:397
↓ 1 callers
Function
pack_one_file
Return (header_name, duration, phrases) for one transcript file.
helpers/pack_transcripts.py:125
↓ 1 callers
Function
render_markdown
(entries: list[tuple[str, float, list[dict]]], silence_threshold: float)
helpers/pack_transcripts.py:137
↓ 1 callers
Function
render_timeline
( video: Path, start: float, end: float, out_path: Path, n_frames: int, transcript: Pa
helpers/timeline_view.py:184
↓ 1 callers
Function
resolve_grade_filter
The EDL's 'grade' field can be a preset name, a raw ffmpeg filter, or 'auto'. Returns the filter string to embed into the per-segment -vf chain.
helpers/render.py:67
↓ 1 callers
Function
run
(cmd: list[str], quiet: bool = False)
helpers/render.py:61
↓ 1 callers
Function
transcribe_one
Transcribe a single video. Returns path to transcript JSON. Cached: returns existing path immediately if the transcript already exists.
helpers/transcribe.py:90
↓ 1 callers
Function
words_in_range
(transcript_path: Path, start: float, end: float)
helpers/timeline_view.py:118
Function
auto_grade_for_clip
(video, start=0.0, duration=None, verbose=False)
helpers/render.py:37
Function
get_preset
(name: str)
helpers/render.py:34