Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GVCLab/CutClaw
/ functions
Functions
377 in github.com/GVCLab/CutClaw
⨍
Functions
377
◇
Types & classes
16
↓ 1 callers
Method
analyze_pitch
Pitch检测 + NMS,逻辑与demo_pitch_nms.py完全一致
src/audio/audio_Madmom.py:477
↓ 1 callers
Method
analyze_structure
Analyze audio structure and return Level 1 sections. Results are cached based on audio file path, mtime, and parameters. Arg
src/audio/interactive/structure.py:117
↓ 1 callers
Function
analyze_subtitles
Main function to analyze subtitles and identify characters. Args: srt_path: Path to the SRT subtitle file movie_name: Name o
src/video/deconstruction/get_character.py:313
↓ 1 callers
Function
as_json_schema
Return a JSON schema for the given function.
src/func_call_shema.py:21
↓ 1 callers
Function
assign_speakers_to_srt
Parse external SRT and assign speakers via diarization only (no transcription). Args: srt_path: Path to existing SRT file. a
src/video/preprocess/asr.py:587
↓ 1 callers
Function
build_graph_html
(stage_status: dict, stage_times: dict)
app.py:583
↓ 1 callers
Function
build_hook_timed_clips
Build a single intro clip from hook_dialogue; timed_lines carry per-line subtitle timing.
render/render_video.py:47
↓ 1 callers
Function
calculate_optimal_crop_center
Calculate the optimal crop center based on protagonist bounding boxes. VLM bounding boxes are in 1000x1000 coordinate space and are scaled t
render/render_video.py:280
↓ 1 callers
Function
call_audio_api
Sync wrapper around acall_audio_api. Args: audio_path: Path to audio file prompt: Text prompt for analysis temperatu
src/audio/litellm_client.py:133
↓ 1 callers
Function
call_audio_api_batch
Sync wrapper around acall_audio_api_batch. Args: audio_paths: List of paths to audio files prompt: Text prompt for analysis
src/audio/litellm_client.py:205
↓ 1 callers
Method
check_face_quality_vlm
Check face quality using VLM frame-by-frame detection (same logic as check_face_quality but using VLM). This function loops through
src/Reviewer.py:310
↓ 1 callers
Function
check_scene_distribution
Validate basic structure of the scene proposal (flat format). Returns (passed, feedback_message).
src/Screenwriter_scene_short.py:282
↓ 1 callers
Method
cleanup
(self)
src/core.py:1533
↓ 1 callers
Function
compute_composite_score
为每个关键点计算综合评分(加权组合多个指标) composite_score = k1 * downbeat_intensity + k2 * pitch_intensity + k3 * mel_energy_intensity 注意:每个指标的强度都已在各自类型内归
src/audio/audio_Madmom.py:1019
↓ 1 callers
Function
compute_mel_energies
计算mel能量 Returns: timestamps: 时间戳数组 energies: (n_frames, n_filters) 的能量矩阵 total_energies: 每帧的总能量 samplerate:
src/audio/audio_Madmom.py:320
↓ 1 callers
Function
compute_waveform_data
Compute waveform data
src/audio/interactive/visualization.py:37
↓ 1 callers
Function
create_gradio_interface
(default_audio_path: str = None, default_detection_method: str = "downbeat")
src/audio/interactive/interface.py:19
↓ 1 callers
Function
create_new_subtitles
Create new subtitle entries with character names instead of speaker labels. Args: subtitles: Original subtitle entries speak
src/video/deconstruction/get_character.py:245
↓ 1 callers
Function
detect_pitch
检测音频的Pitch Returns: pitches: pitch数组 confidences: 置信度数组 timestamps: 时间戳数组 actual_samplerate: 实际采样率
src/audio/audio_Madmom.py:248
↓ 1 callers
Function
extract_all_clips
Extract all clips from shot_point.json in order. Args: shot_data: List of shot data from shot_point.json cut_points: Optiona
render/render_video.py:342
↓ 1 callers
Function
extract_intensity
Extract numeric intensity value from string
src/audio/short_music.py:41
↓ 1 callers
Function
extract_known_characters
从镜头数据提取已知人物
src/video/deconstruction/scene_analysis_video.py:92
↓ 1 callers
Function
extract_vision_info
(conversations: list[dict] | list[list[dict]])
src/utils/video_tools.py:455
↓ 1 callers
Function
fetch_video
(ele: dict, image_factor: int = IMAGE_FACTOR, return_video_sample_fps: bool = False)
src/utils/video_tools.py:398
↓ 1 callers
Function
filter_keypoints
Filter keypoints within the specified time range Args: keypoints: List of keypoint dictionaries start_time: Start time in se
src/audio/short_music.py:261
↓ 1 callers
Method
filter_keypoints_by_sections
Filter keypoints based on sections (Level 1 structure). Args: keypoints: Raw keypoints from Madmom sections:
src/audio/interactive/structure.py:254
↓ 1 callers
Function
filter_sub_segments_by_range
Collect all sub-segments whose time range overlaps with [start_time_str, end_time_str]. Returns a flat list of sub-segment dicts.
src/Screenwriter_scene_short.py:235
↓ 1 callers
Function
find_best_section_with_min_duration
Find the section with highest intensity density (intensity per second), ensuring minimum duration Args: sections: List of sections
src/audio/short_music.py:161
↓ 1 callers
Function
find_climax_section
Find the section with highest intensity density, or use specified time range Args: audio_caption_path: Path to audio caption JSON fi
src/audio/short_music.py:285
↓ 1 callers
Function
find_nearest_snap_point
找到最近的吸附点
src/audio/audio_caption_madmom.py:955
↓ 1 callers
Function
format_dialogues_for_analysis
Format speaker dialogues for LLM analysis. Args: speaker_dialogues: Dictionary of speaker to dialogues max_samples: Maximum
src/video/deconstruction/get_character.py:91
↓ 1 callers
Function
format_full_subtitles
Format full subtitles for LLM analysis (preserves conversation flow). Args: subtitles: List of parsed subtitle entries Returns:
src/video/deconstruction/get_character.py:129
↓ 1 callers
Function
format_log_line
(line: str)
app.py:721
↓ 1 callers
Function
format_subtitles
Format subtitle list as dialogue lines.
src/utils/media_utils.py:167
↓ 1 callers
Method
generate_caption
Generate caption JSON from edited keypoints and pre-computed sections. Args: audio_path: Path to audio file
src/audio/interactive/caption.py:15
↓ 1 callers
Method
generate_caption
生成场景描述,验证必需字段
src/video/deconstruction/scene_analysis_video.py:159
↓ 1 callers
Function
generate_markers_svg
Render keypoint markers as a single SVG overlay (fewer DOM nodes than div markers).
src/audio/interactive/visualization.py:165
↓ 1 callers
Function
generate_sections_svg
Render section regions as colored rectangles on the waveform.
src/audio/interactive/visualization.py:114
↓ 1 callers
Function
generate_shot_plan
Generate a one-to-one shot mapping for each music segment.
src/Screenwriter_scene_short.py:469
↓ 1 callers
Function
generate_shot_plan_with_retry
Generate and parse shot plan with validation + retry.
src/Screenwriter_scene_short.py:533
↓ 1 callers
Function
generate_structure_proposal_with_retry
Generate structure proposal with basic validation and retry.
src/Screenwriter_scene_short.py:416
↓ 1 callers
Function
generate_waveform_svg
Generate SVG string
src/audio/interactive/visualization.py:57
↓ 1 callers
Function
get_audio_base64
Convert audio file to base64 data URL for browser playback
src/audio/interactive/utils.py:72
↓ 1 callers
Function
get_audio_samplerate
Get audio sample rate using ffprobe.
render/render_video.py:176
↓ 1 callers
Function
get_keypoint_color
Get color for keypoint type.
src/audio/interactive/visualization.py:30
↓ 1 callers
Function
get_missing_shot_plan_parts
Return operationally important shot-plan parts that are missing.
src/Screenwriter_scene_short.py:42
↓ 1 callers
Function
get_parameter_model
Return a Pydantic model for the parameters of the given function.
src/func_call_shema.py:51
↓ 1 callers
Function
get_parameters_schema
Return a JSON schema for the parameters of the given function.
src/func_call_shema.py:42
↓ 1 callers
Function
get_returns_model
Return a Pydantic model for the returns of the given function.
src/func_call_shema.py:84
↓ 1 callers
Function
get_speaker_dialogues
Group dialogues by speaker. Args: subtitles: List of parsed subtitle entries Returns: Dictionary mapping speaker labels
src/video/deconstruction/get_character.py:64
↓ 1 callers
Function
get_subtitles_in_range
Return subtitle entries that overlap [start, end].
src/utils/media_utils.py:162
↓ 1 callers
Function
get_video_framerate
Get video framerate using ffprobe.
render/render_video.py:131
↓ 1 callers
Function
get_video_reader_backend
()
src/utils/video_tools.py:385
↓ 1 callers
Function
is_decord_available
()
src/utils/video_tools.py:226
↓ 1 callers
Function
is_torchcodec_available
Check if torchcodec is available and properly installed.
src/utils/video_tools.py:325
↓ 1 callers
Function
load_audio_with_audioread
Load audio using audioread (ffmpeg backend) as fallback. Args: path_or_buffer: File path, URL, or buffer sr: Target samp
src/audio/audio_utils.py:87
↓ 1 callers
Function
load_saved_params
Load saved parameters from config file
src/audio/interactive/config.py:47
↓ 1 callers
Method
load_scene_frames
同步读帧(decord not thread-safe,必须在 event loop 主线程调用)
src/video/deconstruction/scene_analysis_video.py:221
↓ 1 callers
Function
load_sections_from_caption
从 caption JSON 文件加载 sections 信息 Args: caption_path: caption.json 文件路径 Returns: sections 列表,每个元素包含 name, start_t
src/audio/audio_Madmom.py:882
↓ 1 callers
Function
main
()
local_run.py:72
↓ 1 callers
Function
main
()
render/render_video.py:1181
↓ 1 callers
Function
main
()
src/Screenwriter_scene_short.py:1171
↓ 1 callers
Function
main
()
src/audio/audio_Madmom.py:1404
↓ 1 callers
Function
main
Example usage of audio caption function with Madmom-based segmentation.
src/audio/audio_caption_madmom.py:1354
↓ 1 callers
Function
main
()
src/audio/app.py:13
↓ 1 callers
Function
main
()
src/video/deconstruction/scene_analysis_video.py:427
↓ 1 callers
Function
main
()
src/video/deconstruction/scene_merge.py:544
↓ 1 callers
Function
parse_config_overrides
Parse config override arguments in the format --config.PARAM_NAME value Args: unknown_args: List of unknown arguments from argparse
local_run.py:19
↓ 1 callers
Function
parse_shot_plan_output
Parse shot plan JSON from LLM output, stripping markdown fences if present.
src/utils/media_utils.py:367
↓ 1 callers
Function
parse_shot_scenes
Parse shot_scenes.txt and return list of scene cut timestamps in seconds. Args: shot_scenes_path: Path to shot_scenes.txt file
render/render_video.py:203
↓ 1 callers
Function
parse_shot_scenes
Parse a shot_scenes.txt file into a list of (start_frame, end_frame) tuples.
src/utils/media_utils.py:198
↓ 1 callers
Function
parse_srt
Parse an SRT subtitle file into a list of subtitle entries. Args: srt_path: Path to the SRT file Returns: List of dicti
src/video/deconstruction/get_character.py:15
↓ 1 callers
Function
parse_stage_from_line
(line: str, stage_status: dict, stage_times: dict)
app.py:564
↓ 1 callers
Function
pipeline_monitor
()
app.py:766
↓ 1 callers
Function
print_clip_summary
Print a summary of all clips to be rendered.
render/render_video.py:1134
↓ 1 callers
Method
process_file
处理单个文件,scene_data/frames 可由外部预先提供
src/video/deconstruction/scene_analysis_video.py:277
↓ 1 callers
Method
process_scene
处理单个场景,frames 可由外部预先读取以避免阻塞 event loop
src/video/deconstruction/scene_analysis_video.py:231
↓ 1 callers
Function
process_vision_info
( conversations: list[dict] | list[list[dict]], return_video_kwargs: bool = False, )
src/utils/video_tools.py:473
↓ 1 callers
Function
query_vllm_for_characters
Query LLM to identify characters from their dialogues. Args: dialogues_text: Formatted dialogue text movie_name: Optional mo
src/video/deconstruction/get_character.py:153
↓ 1 callers
Function
refine_character_mapping
Refine character mapping and handle edge cases. Args: character_info: Raw character identification results speaker_dialogues
src/video/deconstruction/get_character.py:208
↓ 1 callers
Function
refresh_hook_dialogue_in_shot_plan
Refresh hook dialogue in an existing shot-plan JSON file and save it in place.
src/Screenwriter_scene_short.py:969
↓ 1 callers
Function
render_graph
()
app.py:750
↓ 1 callers
Function
render_log
()
app.py:756
↓ 1 callers
Function
render_video_ffmpeg
Render video clips using ffmpeg concat demuxer. Args: video_path: Path to source video file clips: List of clip dictionaries
render/render_video.py:446
↓ 1 callers
Function
rerun_hook_dialogue_selection
( shot_plan_path: str, video_path: str, instruction: str, main_character: str, srt_path: s
app.py:421
↓ 1 callers
Function
reset_params_to_default
Reset parameters to default values
src/audio/interactive/config.py:93
↓ 1 callers
Method
review
Review whether the shot selection meets requirements. Args: shot_proposal: Shot selection info - answer:
src/Reviewer.py:892
↓ 1 callers
Function
review_clip
Check if the proposed time range overlaps with any previously used clips. You MUST call this tool BEFORE calling finish to ensure no duplicat
src/Reviewer.py:58
↓ 1 callers
Function
review_finish
Review and validate the proposed shot selection before finishing. Validates that exactly ONE shot is provided and its duration matches the ta
src/Reviewer.py:110
↓ 1 callers
Function
run_asr
High-level ASR: extract audio from video, transcribe, write SRT. Args: video_path: Input video file. output_dir: Directory f
src/video/preprocess/asr.py:639
↓ 1 callers
Method
run_parallel
(self, shot_plan_path: str)
src/core.py:1711
↓ 1 callers
Function
run_render
(ratio: str)
app.py:843
↓ 1 callers
Method
run_single_shot
Run a single shot selection loop and return the commit result dict on success.
src/core.py:1476
↓ 1 callers
Function
save_params_to_file
Save parameters to config file
src/audio/interactive/config.py:82
↓ 1 callers
Function
scenedetect_extract_and_detect
( video_path: str, frames_dir: str, target_fps: float = 2.0, target_resolution: Optional[int]
src/video/preprocess/video_utils.py:233
↓ 1 callers
Function
seconds_to_hhmmss
Convert seconds to HH:MM:SS.s format.
src/utils/time_format_convert.py:27
↓ 1 callers
Function
select_audio_segment
Use LLM to select the best music section, then trim to target duration if needed.
src/Screenwriter_scene_short.py:151
↓ 1 callers
Function
start_pipeline
(video_path, audio_path, instruction, video_type, main_character, srt_path, target_length, shot_length,
app.py:460
↓ 1 callers
Function
status_badge
()
app.py:704
↓ 1 callers
Function
stop_pipeline
()
app.py:530
← previous
next →
201–300 of 377, ranked by callers