MCPcopy Create free account

hub / github.com/Matticusnicholas/KupkaProd-Cinema-Pipeline / functions

Functions124 in github.com/Matticusnicholas/KupkaProd-Cinema-Pipeline

↓ 12 callersMethod_set_status
(self, msg: str)
video_director_agent/gui.py:519
↓ 10 callersFunction_get
(key: str)
video_director_agent/config.py:41
↓ 10 callersFunctionsave_state
(state: dict)
video_director_agent/agent.py:71
↓ 9 callersFunction_find_nodes_by_class
Find all node IDs in a workflow matching a given class_type.
video_director_agent/comfyui_client.py:204
↓ 8 callersMethod_snap
Snap a value to the nearest multiple of step.
video_director_agent/gui.py:488
↓ 8 callersMethodrun
(self)
video_director_agent/gui.py:755
↓ 5 callersFunction_find_node_by_title
Find a node ID by its _meta title.
video_director_agent/comfyui_client.py:315
↓ 5 callersMethod_log
(self, msg: str)
video_director_agent/gui.py:515
↓ 5 callersMethoddisconnect
(self)
video_director_agent/comfyui_client.py:39
↓ 4 callersMethod_show_scene
(self)
video_director_agent/storyboard.py:109
↓ 4 callersMethod_show_scene
(self)
video_director_agent/reviewer.py:158
↓ 4 callersMethod_update_res_labels
(self)
video_director_agent/gui.py:502
↓ 4 callersMethodcheck_alive
Verify ComfyUI is reachable.
video_director_agent/comfyui_client.py:44
↓ 4 callersMethodconnect
Open WebSocket to ComfyUI for execution tracking.
video_director_agent/comfyui_client.py:31
↓ 4 callersFunctionload_workflow_template
Load the API-format workflow template JSON.
video_director_agent/comfyui_client.py:268
↓ 4 callersMethodqueue_prompt
Submit a workflow to ComfyUI. Returns the prompt_id.
video_director_agent/comfyui_client.py:97
↓ 4 callersFunctionsave_state
(state: dict)
video_director_agent/reviewer.py:30
↓ 4 callersFunctionsetup_logging
(project_name: str)
video_director_agent/agent.py:41
↓ 4 callersMethodwait_for_completion
Block on WebSocket until execution completes or errors. Falls back to polling /history if the socket drops. Returns the history dict
video_director_agent/comfyui_client.py:114
↓ 3 callersFunction_chat_with_auto_tokens
Call ollama.chat with automatic token scaling on truncation. Detects truncated JSON output (unbalanced brackets) and retries with doubled tok
video_director_agent/director.py:317
↓ 3 callersFunction_parse_json
Parse JSON from Gemma output, retrying on failure. Handles both formats: - Plain array: [scene1, scene2, ...] - Dict with characters: {"c
video_director_agent/director.py:677
↓ 3 callersFunctionbuild_workflow
Clone the template and inject per-scene values. Only touches prompt text, frame count, and seeds. All other settings (sampler, sigmas, CFG, m
video_director_agent/comfyui_client.py:276
↓ 3 callersFunctioncalc_frames
Calculate frame count obeying LTX rule: frames = (8n + 1).
video_director_agent/comfyui_client.py:296
↓ 3 callersFunctioncalc_scene_duration
Calculate scene duration from dialogue word count + action time. Returns duration in seconds, clamped to SCENE_MIN/MAX.
video_director_agent/director.py:205
↓ 3 callersFunctionextract_frames
Extract frames at sample rate, return list of base64 JPEG strings.
video_director_agent/evaluator.py:14
↓ 3 callersMethodget_history
(self, prompt_id: str)
video_director_agent/comfyui_client.py:176
↓ 3 callersMethodget_output_path
Extract the video file path from a completed history dict.
video_director_agent/comfyui_client.py:183
↓ 3 callersFunctionload_state
(project_name: str)
video_director_agent/agent.py:63
↓ 3 callersFunctionpreflight
Verify everything is ready before starting. Auto-launches ComfyUI if needed.
video_director_agent/agent.py:124
↓ 3 callersFunctionsave_state
(state: dict)
video_director_agent/storyboard.py:26
↓ 2 callersFunction_estimate_wpm
Guess speaking rate from the brief content.
video_director_agent/director.py:196
↓ 2 callersFunction_load_user_settings
()
video_director_agent/config.py:24
↓ 2 callersFunction_run_keyframe_round
Run a round of keyframe generation attempts. Returns True if one passed.
video_director_agent/keyframe_gen.py:292
↓ 2 callersMethod_show_welcome_wizard
Multi-page first-run wizard with setup instructions.
video_director_agent/gui.py:83
↓ 2 callersFunctionbuild_i2v_workflow
Clone the i2v template and inject per-scene values + keyframe image. image_filename should be the name returned by upload_image() (already in Com
video_director_agent/comfyui_client.py:388
↓ 2 callersFunctionget_character_descriptions
Get the character descriptions from the most recent breakdown.
video_director_agent/director.py:541
↓ 2 callersFunctionget_style_anchor
Get the style anchor from the most recent breakdown.
video_director_agent/director.py:551
↓ 2 callersFunctionget_voice_descriptions
Get the voice descriptions from the most recent breakdown.
video_director_agent/director.py:546
↓ 2 callersFunctionlist_projects
()
video_director_agent/reviewer.py:464
↓ 2 callersFunctionload_i2v_template
Load the i2v API-format workflow template JSON.
video_director_agent/comfyui_client.py:305
↓ 2 callersFunctionrun
Full autonomous pipeline.
video_director_agent/agent.py:174
↓ 2 callersMethodrun
(self)
video_director_agent/storyboard.py:242
↓ 2 callersMethodrun
(self)
video_director_agent/reviewer.py:460
↓ 2 callersFunctionsave_user_settings
(settings: dict)
video_director_agent/config.py:31
↓ 2 callersFunctionslugify
(text: str)
video_director_agent/gui.py:14
↓ 2 callersFunctionslugify
Turn a brief into a filesystem-safe project name.
video_director_agent/agent.py:165
↓ 2 callersFunctionstate_path
(project_name: str)
video_director_agent/agent.py:59
↓ 2 callersMethodupload_image
Upload an image to ComfyUI's input directory. Returns the filename.
video_director_agent/comfyui_client.py:53
↓ 1 callersMethod__init__
(self)
video_director_agent/gui.py:64
↓ 1 callersMethod_build_ui
(self)
video_director_agent/gui.py:316
↓ 1 callersMethod_build_ui
(self)
video_director_agent/storyboard.py:52
↓ 1 callersMethod_build_ui
(self)
video_director_agent/reviewer.py:85
↓ 1 callersMethod_check_first_run
(self)
video_director_agent/gui.py:74
↓ 1 callersFunction_detect_i2v_nodes
Auto-detect i2v workflow node IDs from the template.
video_director_agent/comfyui_client.py:325
↓ 1 callersFunction_detect_keyframe_nodes
Auto-detect keyframe workflow node IDs from the template.
video_director_agent/keyframe_gen.py:54
↓ 1 callersFunction_detect_video_nodes
Auto-detect video workflow node IDs from the template. Returns a dict with keys: prompt, neg_prompt, frames, seed1, seed2, resolution. Falls
video_director_agent/comfyui_client.py:210
↓ 1 callersFunction_enforce_keyframe_rules
Programmatically enforce FAIL conditions.
video_director_agent/keyframe_gen.py:232
↓ 1 callersFunction_enforce_verdict_rules
Programmatically enforce FAIL conditions even if the model said PASS.
video_director_agent/evaluator.py:150
↓ 1 callersFunction_extract_target_duration
Extract target duration in seconds from user brief, if specified.
video_director_agent/director.py:391
↓ 1 callersFunction_fix_json
Fix common LLM JSON issues. Handles all known failure patterns from Gemma.
video_director_agent/director.py:594
↓ 1 callersFunction_is_script
Detect if the input looks like a screenplay/script rather than a brief.
video_director_agent/director.py:277
↓ 1 callersFunction_parse_eval_json
Parse eval JSON, handling markdown fences and stray text.
video_director_agent/evaluator.py:182
↓ 1 callersMethod_play
Open video in system default player.
video_director_agent/reviewer.py:232
↓ 1 callersMethod_poll_history
Check if prompt already finished (fallback when WS is unreliable).
video_director_agent/comfyui_client.py:164
↓ 1 callersFunction_restart_ollama
Kill and restart Ollama to ensure clean state.
video_director_agent/gui.py:20
↓ 1 callersFunction_rewrite_keyframe_prompt
Ask the LLM to rewrite the image prompt based on what kept failing.
video_director_agent/keyframe_gen.py:261
↓ 1 callersFunction_sanitize_scene
Coerce scene fields to correct types. LLMs sometimes output numbers as strings.
video_director_agent/director.py:556
↓ 1 callersMethod_select
(self, scene_num: int, path: str)
video_director_agent/storyboard.py:188
↓ 1 callersMethod_select
Select a take for a scene.
video_director_agent/reviewer.py:236
↓ 1 callersFunction_try_parse_json
Try to parse JSON with progressively more aggressive fixes.
video_director_agent/director.py:651
↓ 1 callersFunction_unload_model
Unload the heavy creative model from VRAM to free it for ComfyUI.
video_director_agent/agent.py:90
↓ 1 callersFunctionbuild_keyframe_workflow
Build a keyframe image workflow with the given prompt and seed. Auto-detects node IDs if the configured defaults don't match the template.
video_director_agent/keyframe_gen.py:94
↓ 1 callersFunctionconcat_scenes
Concatenate scene clips using FFmpeg concat demuxer (no re-encode).
video_director_agent/assembler.py:15
↓ 1 callersFunctioncreate_state
(project_name: str, brief: str)
video_director_agent/agent.py:78
↓ 1 callersFunctionevaluate_keyframe
Thoroughly evaluate a keyframe image against the scene + character descriptions. Returns dict with scores and verdict.
video_director_agent/keyframe_gen.py:128
↓ 1 callersFunctiongenerate_keyframes
Generate keyframe candidates for a scene with prompt rewriting on failure. Round 1: Try KF_CANDIDATES attempts with the original prompt. If a
video_director_agent/keyframe_gen.py:350
↓ 1 callersFunctionget_image_output_path
Extract image path from ComfyUI history.
video_director_agent/keyframe_gen.py:107
↓ 1 callersFunctionget_thumbnail
Extract a single frame from a video as a PIL Image.
video_director_agent/reviewer.py:36
↓ 1 callersFunctionimage_to_base64
Read an image file and return base64 string.
video_director_agent/keyframe_gen.py:122
↓ 1 callersFunctionlaunch_comfyui
Launch ComfyUI in the background and wait until it's reachable.
video_director_agent/agent.py:104
↓ 1 callersFunctionload_keyframe_template
(path: str = None)
video_director_agent/keyframe_gen.py:47
↓ 1 callersFunctionload_state
(project_name: str)
video_director_agent/storyboard.py:20
↓ 1 callersFunctionload_state
(project_name: str)
video_director_agent/reviewer.py:24
↓ 1 callersFunctionmain
()
video_director_agent/agent.py:480
↓ 1 callersFunctionparse_script
Parse a screenplay/script into scenes using Gemma.
video_director_agent/director.py:355
↓ 1 callersFunctiontest_scene
Generate and evaluate a single test scene.
video_director_agent/agent.py:434
↓ 1 callersFunctionwrite_prompt
Write an LTX 2.3 prompt for a single scene.
video_director_agent/director.py:790
Method__init__
(self, gui)
video_director_agent/gui.py:697
Method__init__
(self, project_name: str)
video_director_agent/storyboard.py:33
Method__init__
(self, host: str = COMFYUI_HOST)
video_director_agent/comfyui_client.py:24
Method__init__
(self, project_name: str)
video_director_agent/reviewer.py:58
Method_assemble
Assemble selected takes into final film.
video_director_agent/reviewer.py:422
Function_crop_to_video_ar
Crop a square image to the video's widescreen aspect ratio (center crop).
video_director_agent/keyframe_gen.py:22
Method_generate_redo_takes
Generate new takes for a scene in a background thread.
video_director_agent/reviewer.py:296
Method_load_script
(self)
video_director_agent/gui.py:522
Method_next
(self)
video_director_agent/storyboard.py:209
Method_next_scene
(self)
video_director_agent/reviewer.py:417
Method_open_reviewer
(self)
video_director_agent/gui.py:630
Method_open_storyboard
(self)
video_director_agent/gui.py:607
Method_prev
(self)
video_director_agent/storyboard.py:204
next →1–100 of 124, ranked by callers