@oh-story/dsh 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +58 -12
- package/lib/client.js +2970 -537
- package/lib/client.js.map +4 -4
- package/lib/drama/manifest.json +218 -178
- package/lib/drama/skills/short-drama/SKILL.md +110 -117
- package/lib/drama/skills/short-drama/references/audience-reveal.md +14 -67
- package/lib/drama/skills/short-drama/references/contract-and-ownership.md +26 -77
- package/lib/drama/skills/short-drama/references/creator-documents.md +204 -0
- package/lib/drama/skills/short-drama/references/creator-workflow.md +73 -63
- package/lib/drama/skills/short-drama/references/knowhow-index.md +5 -0
- package/lib/drama/skills/short-drama/references/look-development.md +2 -3
- package/lib/drama/skills/short-drama/references/pickup-and-alternate.md +14 -48
- package/lib/drama/skills/short-drama/references/production-form-profiles.md +1 -1
- package/lib/drama/skills/short-drama/references/reference-roles.md +32 -135
- package/lib/drama/skills/short-drama/references/runtime-preflight.md +16 -19
- package/lib/drama/skills/short-drama/scripts/creator_markdown_check.py +1002 -0
- package/lib/drama/skills/short-drama/scripts/project_tool.py +485 -5
- package/lib/drama/skills/short-drama-assets/SKILL.md +59 -170
- package/lib/drama/skills/short-drama-assets/references/asset-review-checklist.md +18 -25
- package/lib/drama/skills/short-drama-assets/references/character-and-look.md +13 -15
- package/lib/drama/skills/short-drama-assets/references/continuity-delta.md +11 -14
- package/lib/drama/skills/short-drama-assets/references/continuity-lock.md +116 -0
- package/lib/drama/skills/short-drama-assets/references/identity-vs-variant.md +6 -12
- package/lib/drama/skills/short-drama-assets/references/occurrence-extraction.md +8 -11
- package/lib/drama/skills/short-drama-assets/references/prop-and-state.md +21 -2
- package/lib/drama/skills/short-drama-assets/references/stage-contract.md +12 -105
- package/lib/drama/skills/short-drama-assets/references/voice-direction.md +12 -32
- package/lib/drama/skills/short-drama-assets/scripts/asset_check.py +1 -1
- package/lib/drama/skills/short-drama-image-prompts/SKILL.md +45 -155
- package/lib/drama/skills/short-drama-image-prompts/references/character-and-look.md +12 -13
- package/lib/drama/skills/short-drama-image-prompts/references/common-recipe.md +12 -13
- package/lib/drama/skills/short-drama-image-prompts/references/edit-and-revision.md +39 -51
- package/lib/drama/skills/short-drama-image-prompts/references/location-plate.md +3 -4
- package/lib/drama/skills/short-drama-image-prompts/references/look-and-state-variant.md +15 -14
- package/lib/drama/skills/short-drama-image-prompts/references/lookdev-frame.md +11 -15
- package/lib/drama/skills/short-drama-image-prompts/references/production-sheet-recipes.md +1 -1
- package/lib/drama/skills/short-drama-image-prompts/references/prop-plate.md +4 -7
- package/lib/drama/skills/short-drama-image-prompts/references/review-and-fixtures.md +23 -23
- package/lib/drama/skills/short-drama-image-prompts/references/stage-contract.md +8 -65
- package/lib/drama/skills/short-drama-image-prompts/scripts/image_prompt_check.py +8 -8
- package/lib/drama/skills/short-drama-image-prompts/scripts/selftest.py +4 -2
- package/lib/drama/skills/short-drama-produce/SKILL.md +67 -15
- package/lib/drama/skills/short-drama-produce/references/adapter-contract.md +65 -8
- package/lib/drama/skills/short-drama-produce/references/providers/minimax-h3-video.md +85 -0
- package/lib/drama/skills/short-drama-produce/references/providers/seedance.md +27 -10
- package/lib/drama/skills/short-drama-produce/scripts/production_tool.py +362 -3
- package/lib/drama/skills/short-drama-produce/scripts/provider_adapters.py +627 -40
- package/lib/drama/skills/short-drama-produce/scripts/selftest.py +5 -4
- package/lib/drama/skills/short-drama-review/SKILL.md +61 -123
- package/lib/drama/skills/short-drama-review/references/anti-template-repair.md +10 -15
- package/lib/drama/skills/short-drama-review/references/production-quality-gates.md +15 -16
- package/lib/drama/skills/short-drama-review/references/project-calibration.md +7 -9
- package/lib/drama/skills/short-drama-review/references/review-method.md +8 -9
- package/lib/drama/skills/short-drama-review/references/rubric-assets-prompts.md +9 -13
- package/lib/drama/skills/short-drama-review/references/rubric-story-script.md +104 -4
- package/lib/drama/skills/short-drama-review/references/rubric-visual-motion.md +27 -19
- package/lib/drama/skills/short-drama-review/references/stage-contract.md +4 -63
- package/lib/drama/skills/short-drama-review/scripts/review_check.py +1 -1
- package/lib/drama/skills/short-drama-storyboard/SKILL.md +116 -238
- package/lib/drama/skills/short-drama-storyboard/assets/shot-template.jsonl +1 -1
- package/lib/drama/skills/short-drama-storyboard/references/blocking-playbooks.md +9 -34
- package/lib/drama/skills/short-drama-storyboard/references/comic-keyframe-lexicon.md +156 -0
- package/lib/drama/skills/short-drama-storyboard/references/coverage-audition.md +5 -10
- package/lib/drama/skills/short-drama-storyboard/references/keyframe-craft.md +12 -7
- package/lib/drama/skills/short-drama-storyboard/references/production-shot-grammar.md +19 -4
- package/lib/drama/skills/short-drama-storyboard/references/review-and-fixtures.md +27 -62
- package/lib/drama/skills/short-drama-storyboard/references/scene-visual-plan.md +16 -25
- package/lib/drama/skills/short-drama-storyboard/references/screenplay-to-keyframe-example.md +21 -23
- package/lib/drama/skills/short-drama-storyboard/references/shot-craft.md +8 -10
- package/lib/drama/skills/short-drama-storyboard/references/shot-revision-identity.md +9 -13
- package/lib/drama/skills/short-drama-storyboard/references/stage-contract.md +16 -71
- package/lib/drama/skills/short-drama-storyboard/scripts/storyboard_check.py +1 -1
- package/lib/drama/skills/short-drama-video-prompts/SKILL.md +123 -230
- package/lib/drama/skills/short-drama-video-prompts/assets/motion-spec.jsonl.md +6 -1
- package/lib/drama/skills/short-drama-video-prompts/assets/video-prompts.md +17 -1
- package/lib/drama/skills/short-drama-video-prompts/references/camera-audio-continuity.md +10 -8
- package/lib/drama/skills/short-drama-video-prompts/references/delivery-profile.md +24 -6
- package/lib/drama/skills/short-drama-video-prompts/references/generability.md +2 -2
- package/lib/drama/skills/short-drama-video-prompts/references/minimax-h3.md +154 -0
- package/lib/drama/skills/short-drama-video-prompts/references/motion-recipe.md +35 -27
- package/lib/drama/skills/short-drama-video-prompts/references/performance-action-timing.md +8 -11
- package/lib/drama/skills/short-drama-video-prompts/references/production-prompt-grammar.md +13 -10
- package/lib/drama/skills/short-drama-video-prompts/references/review-and-fixtures.md +34 -63
- package/lib/drama/skills/short-drama-video-prompts/references/seedance-2.0.md +41 -0
- package/lib/drama/skills/short-drama-video-prompts/references/seedance-2.5.md +66 -0
- package/lib/drama/skills/short-drama-video-prompts/references/stage-contract.md +17 -73
- package/lib/drama/skills/short-drama-video-prompts/references/target-model-profile.md +115 -0
- package/lib/drama/skills/short-drama-video-prompts/scripts/container_check.py +1 -1
- package/lib/drama/skills/short-drama-video-prompts/scripts/music_spec_check.py +1 -1
- package/lib/drama/skills/short-drama-write/SKILL.md +74 -268
- package/lib/drama/skills/short-drama-write/references/dialogue-craft.md +7 -0
- package/lib/drama/skills/short-drama-write/references/scene-handoff-capsule.md +17 -43
- package/lib/drama/skills/short-drama-write/references/screenplay-format.md +15 -15
- package/lib/drama/skills/short-drama-write/references/script-craft.md +208 -21
- package/lib/drama/skills/short-drama-write/references/stage-contract.md +11 -70
- package/lib/drama/skills/short-drama-write/scripts/duration_estimate.py +1 -1
- package/lib/drama/skills/short-drama-write/scripts/screenplay_index.py +2 -2
- package/lib/drama/skills/short-drama-write/scripts/voice_sheet_check.py +1 -1
- package/lib/index.js +971 -46
- package/lib/index.js.map +4 -4
- package/lib/novel-to-game/LICENSE +21 -0
- package/lib/novel-to-game/README.md +180 -0
- package/lib/novel-to-game/README_ZH.md +178 -0
- package/lib/novel-to-game/VERSION +1 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/BUILD_BRIEF.md +217 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/.vercelignore +3 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/RUN.md +130 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/bg/compound_new_guofeng.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/finale/fate_coda.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/finale/meng.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/finale/pan.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/finale/pinger.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/finale/xuee.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/finale/yue.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/group/inner_court_accord_five.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/group/inner_court_afterglow_five.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/group/inner_court_alliance.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/group/public_day10.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/group/public_day15.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/group/public_day5.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/group/title_new_guofeng.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/joint/pan_pinger.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/joint/pan_xuee.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/joint/yue_meng.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/joint/yue_pan.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/joint/yue_pinger.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/meng/explicit.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/meng/prelude.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/milestone/meng.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/milestone/pan.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/milestone/pinger.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/milestone/xuee.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/milestone/yue.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/pan/explicit.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/pan/prelude.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/pinger/explicit.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/pinger/prelude.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/xuee/explicit.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/xuee/prelude.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/yue/explicit.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/cg/yue/prelude.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/heroine/meng/night.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/heroine/pan/night.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/heroine/pinger/night.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/heroine/xuee/night.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/heroine/yue/night.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/household/li_jiaoer.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/assets/scene/gate_collector.webp +0 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/css/new-guofeng.css +1105 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/css/style.css +2539 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/index.html +18 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/js/assets.js +147 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/js/audio.js +332 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/js/data.js +7472 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/js/engine.js +13077 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/js/main.js +3028 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/js/text.js +32 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/package.json +10 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/app/vercel.json +23 -0
- package/lib/novel-to-game/examples/jin-ping-mei/build/art/generated-art.json +161 -0
- package/lib/novel-to-game/examples/jin-ping-mei/example.json +12 -0
- package/lib/novel-to-game/examples/jin-ping-mei/qa/README.md +31 -0
- package/lib/novel-to-game/examples/jin-ping-mei/qa/playable-model.json +99 -0
- package/lib/novel-to-game/examples/jin-ping-mei/qa/verification.json +41 -0
- package/lib/novel-to-game/examples/jin-ping-mei/qa/verify_playable_model.mjs +129 -0
- package/lib/novel-to-game/manifest.json +508 -0
- package/lib/novel-to-game/skills/game-art-direction/SKILL.md +73 -0
- package/lib/novel-to-game/skills/game-art-direction/agents/openai.yaml +4 -0
- package/lib/novel-to-game/skills/game-art-direction/references/art-direction-method.md +119 -0
- package/lib/novel-to-game/skills/game-build/SKILL.md +84 -0
- package/lib/novel-to-game/skills/game-build/agents/openai.yaml +4 -0
- package/lib/novel-to-game/skills/game-build/references/build-brief-contract.md +109 -0
- package/lib/novel-to-game/skills/game-build/references/generative-media-pipeline.md +56 -0
- package/lib/novel-to-game/skills/game-build/references/playable-model-contract.md +81 -0
- package/lib/novel-to-game/skills/game-build/references/tts-production-contract.md +37 -0
- package/lib/novel-to-game/skills/game-concept/SKILL.md +72 -0
- package/lib/novel-to-game/skills/game-concept/agents/openai.yaml +4 -0
- package/lib/novel-to-game/skills/game-concept/references/concept-method.md +94 -0
- package/lib/novel-to-game/skills/game-qa/SKILL.md +50 -0
- package/lib/novel-to-game/skills/game-qa/agents/openai.yaml +4 -0
- package/lib/novel-to-game/skills/game-qa/references/qa-contract.md +66 -0
- package/lib/novel-to-game/skills/game-qa/references/test-design-method.md +45 -0
- package/lib/novel-to-game/skills/game-world-design/SKILL.md +63 -0
- package/lib/novel-to-game/skills/game-world-design/agents/openai.yaml +4 -0
- package/lib/novel-to-game/skills/game-world-design/references/dialogue-design-method.md +59 -0
- package/lib/novel-to-game/skills/game-world-design/references/game-writing-craft.md +53 -0
- package/lib/novel-to-game/skills/game-world-design/references/narrative-design-method.md +84 -0
- package/lib/novel-to-game/skills/game-world-design/references/numeric-design-method.md +56 -0
- package/lib/novel-to-game/skills/game-world-design/references/world-design-method.md +124 -0
- package/lib/novel-to-game/skills/novel-game-analyze/SKILL.md +77 -0
- package/lib/novel-to-game/skills/novel-game-analyze/agents/openai.yaml +4 -0
- package/lib/novel-to-game/skills/novel-game-analyze/references/gameability-protocol.md +65 -0
- package/lib/novel-to-game/skills/novel-to-game/SKILL.md +71 -0
- package/lib/novel-to-game/skills/novel-to-game/agents/openai.yaml +4 -0
- package/lib/novel-to-game/skills/novel-to-game/references/intake-benchmark-reference.md +42 -0
- package/lib/novel-to-game/skills/novel-to-game/references/intake-method.md +51 -0
- package/lib/novel-to-game/skills/novel-to-game/references/pipeline-contract.md +65 -0
- package/lib/oh-story/manifest.json +419 -309
- package/lib/oh-story/roles/character-designer.md +4 -4
- package/lib/oh-story/roles/consistency-checker.md +1 -1
- package/lib/oh-story/roles/narrative-writer.md +41 -42
- package/lib/oh-story/roles/story-architect.md +19 -23
- package/lib/oh-story/roles/story-explorer.md +8 -5
- package/lib/oh-story/skills/browser-cdp/SKILL.md +1 -1
- package/lib/oh-story/skills/story/SKILL.md +16 -9
- package/lib/oh-story/skills/story/VERSION +1 -1
- package/lib/oh-story/skills/story/references/author-memory.md +163 -0
- package/lib/oh-story/skills/story/scripts/author_memory_commit.py +871 -0
- package/lib/oh-story/skills/story-cover/SKILL.md +1 -1
- package/lib/oh-story/skills/story-deslop/SKILL.md +10 -5
- package/lib/oh-story/skills/story-deslop/references/anti-ai-writing.md +2 -1
- package/lib/oh-story/skills/story-deslop/references/author-memory.md +163 -0
- package/lib/oh-story/skills/story-deslop/references/banned-words.md +6 -4
- package/lib/oh-story/skills/story-deslop/scripts/author_memory_commit.py +871 -0
- package/lib/oh-story/skills/story-deslop/scripts/check-ai-patterns.js +64 -1
- package/lib/oh-story/skills/story-import/SKILL.md +21 -8
- package/lib/oh-story/skills/story-import/references/format-and-structure.md +9 -10
- package/lib/oh-story/skills/story-import/references/structure-mapping-long.md +2 -2
- package/lib/oh-story/skills/story-import/references/structure-mapping-short.md +1 -1
- package/lib/oh-story/skills/story-import/references/tracking-transaction.md +14 -6
- package/lib/oh-story/skills/story-import/scripts/check-outline-contract.js +251 -0
- package/lib/oh-story/skills/story-import/scripts/tracking_commit.py +98 -9
- package/lib/oh-story/skills/story-import/scripts/wordcount_core.py +246 -0
- package/lib/oh-story/skills/story-long-analyze/SKILL.md +4 -4
- package/lib/oh-story/skills/story-long-scan/SKILL.md +1 -1
- package/lib/oh-story/skills/story-long-write/SKILL.md +35 -21
- package/lib/oh-story/skills/story-long-write/references/anti-ai-writing.md +2 -1
- package/lib/oh-story/skills/story-long-write/references/artifact-protocols.md +7 -3
- package/lib/oh-story/skills/story-long-write/references/author-memory.md +163 -0
- package/lib/oh-story/skills/story-long-write/references/banned-words.md +6 -4
- package/lib/oh-story/skills/story-long-write/references/cross-book-recall.md +6 -6
- package/lib/oh-story/skills/story-long-write/references/genre-prose-cards.md +1 -1
- package/lib/oh-story/skills/story-long-write/references/genre-readers.md +1 -1
- package/lib/oh-story/skills/{story-setup/references/agent-references/hooks-chapter.md → story-long-write/references/long-chapter-hooks.md} +5 -5
- package/lib/oh-story/skills/story-long-write/references/{quality-checklist.md → long-chapter-quality.md} +2 -1
- package/lib/oh-story/skills/story-long-write/references/long-format.md +42 -0
- package/lib/oh-story/skills/{story-setup/references/agent-references/genre-catalog.md → story-long-write/references/long-genre-catalog.md} +11 -97
- package/lib/oh-story/skills/story-long-write/references/{genre-core-mechanics.md → long-genre-mechanics.md} +1 -1
- package/lib/oh-story/skills/story-long-write/references/{reversal-toolkit.md → long-reversal.md} +18 -32
- package/lib/oh-story/skills/story-long-write/references/{hooks-suspense.md → long-suspense.md} +6 -6
- package/lib/oh-story/skills/story-long-write/references/opening-design.md +1 -1
- package/lib/oh-story/skills/story-long-write/references/outline-structure-theory.md +1 -1
- package/lib/oh-story/skills/story-long-write/references/style-genre-modules.md +1 -1
- package/lib/oh-story/skills/story-long-write/references/tracking-transaction.md +14 -6
- package/lib/oh-story/skills/story-long-write/references/workflow-chapter.md +32 -27
- package/lib/oh-story/skills/story-long-write/references/workflow-daily.md +5 -4
- package/lib/oh-story/skills/story-long-write/references/workflow-revision.md +2 -2
- package/lib/oh-story/skills/story-long-write/references/workflow-setup.md +17 -11
- package/lib/oh-story/skills/story-long-write/references/writing-craft.md +54 -54
- package/lib/oh-story/skills/story-long-write/scripts/author_memory_commit.py +871 -0
- package/lib/oh-story/skills/story-long-write/scripts/check-ai-patterns.js +64 -1
- package/lib/oh-story/skills/story-long-write/scripts/check-outline-contract.js +251 -0
- package/lib/oh-story/skills/story-long-write/scripts/storyctl.py +303 -0
- package/lib/oh-story/skills/story-long-write/scripts/tracking_commit.py +98 -9
- package/lib/oh-story/skills/story-long-write/scripts/wordcount_core.py +246 -0
- package/lib/oh-story/skills/story-review/SKILL.md +26 -17
- package/lib/oh-story/skills/story-review/references/anti-ai-writing.md +2 -1
- package/lib/oh-story/skills/story-review/references/author-memory.md +163 -0
- package/lib/oh-story/skills/story-review/references/banned-words.md +6 -4
- package/lib/oh-story/skills/story-review/references/{quality-checklist.md → review-quality.md} +22 -21
- package/lib/oh-story/skills/story-review/references/tracking-transaction.md +14 -6
- package/lib/oh-story/skills/story-review/scripts/author_memory_commit.py +871 -0
- package/lib/oh-story/skills/story-review/scripts/check-ai-patterns.js +64 -1
- package/lib/oh-story/skills/story-review/scripts/tracking_commit.py +98 -9
- package/lib/oh-story/skills/story-review/scripts/wordcount_core.py +246 -0
- package/lib/oh-story/skills/story-setup/SKILL.md +85 -41
- package/lib/oh-story/skills/story-setup/references/agent-references/agent-quality.md +72 -0
- package/lib/oh-story/skills/story-setup/references/agent-references/agent-reference-profiles.md +55 -0
- package/lib/oh-story/skills/story-setup/references/agent-references/anti-ai-writing.md +2 -1
- package/lib/oh-story/skills/story-setup/references/agent-references/banned-words.md +6 -4
- package/lib/oh-story/skills/story-setup/references/agent-references/format-and-structure.md +9 -10
- package/lib/oh-story/skills/story-setup/references/agent-references/genre-prose-cards.md +1 -1
- package/lib/oh-story/skills/story-setup/references/agent-references/genre-readers.md +1 -1
- package/lib/oh-story/skills/{story-short-analyze/references/hooks-chapter.md → story-setup/references/agent-references/long-chapter-hooks.md} +5 -5
- package/lib/oh-story/skills/story-setup/references/agent-references/long-emotional-methods.md +209 -0
- package/lib/oh-story/skills/{story-long-write/references/genre-catalog.md → story-setup/references/agent-references/long-genre-catalog.md} +11 -97
- package/lib/oh-story/skills/story-setup/references/agent-references/{genre-core-mechanics.md → long-genre-mechanics.md} +1 -1
- package/lib/oh-story/skills/story-setup/references/agent-references/long-quality.md +40 -0
- package/lib/oh-story/skills/{story-short-write/references/reversal-toolkit.md → story-setup/references/agent-references/long-reversal.md} +18 -32
- package/lib/oh-story/skills/{story-short-write/references/hooks-suspense.md → story-setup/references/agent-references/long-suspense.md} +6 -6
- package/lib/oh-story/skills/story-setup/references/agent-references/opening-design.md +1 -1
- package/lib/oh-story/skills/story-setup/references/agent-references/{emotional-methods.md → short-emotional-methods.md} +4 -4
- package/lib/oh-story/skills/{story-long-write/references/genre-writing-formulas.md → story-setup/references/agent-references/short-genre-formulas.md} +32 -44
- package/lib/oh-story/skills/story-setup/references/agent-references/short-quality.md +39 -0
- package/lib/oh-story/skills/story-setup/references/agent-references/{reversal-toolkit.md → short-reversal.md} +29 -23
- package/lib/oh-story/skills/story-setup/references/agent-references/{hooks-suspense.md → short-suspense.md} +31 -31
- package/lib/oh-story/skills/story-setup/references/agent-references/style-genre-modules.md +1 -1
- package/lib/oh-story/skills/story-setup/references/agent-references/writing-craft.md +55 -55
- package/lib/oh-story/skills/story-short-analyze/SKILL.md +28 -28
- package/lib/oh-story/skills/story-short-analyze/references/{character-basics.md → analysis-character-basics.md} +1 -1
- package/lib/oh-story/skills/story-short-analyze/references/{character-design-methods.md → analysis-character-design.md} +1 -1
- package/lib/oh-story/skills/story-short-analyze/references/{character-relations.md → analysis-character-relations.md} +1 -1
- package/lib/oh-story/skills/story-short-analyze/references/{hooks-paragraph.md → analysis-paragraph-hooks.md} +1 -1
- package/lib/oh-story/skills/story-short-analyze/references/{genre-readers.md → analysis-reader-profile.md} +2 -2
- package/lib/oh-story/skills/story-short-analyze/references/analysis-report-style.md +45 -0
- package/lib/oh-story/skills/story-short-analyze/references/analysis-short-genres.md +65 -0
- package/lib/oh-story/skills/story-short-analyze/references/analysis-short-hooks.md +77 -0
- package/lib/oh-story/skills/story-short-analyze/references/analysis-short-mechanics.md +82 -0
- package/lib/oh-story/skills/story-short-analyze/references/analysis-short-patterns.md +50 -0
- package/lib/oh-story/skills/story-short-analyze/references/analysis-short-suspense.md +98 -0
- package/lib/oh-story/skills/story-short-analyze/references/{genre-writing-techniques.md → analysis-writing-techniques.md} +21 -19
- package/lib/oh-story/skills/story-short-analyze/references/deconstruction-examples.md +1 -1
- package/lib/oh-story/skills/story-short-analyze/references/material-decomposition.md +21 -28
- package/lib/oh-story/skills/story-short-analyze/references/output-contract.md +1 -1
- package/lib/oh-story/skills/story-short-analyze/references/output-templates.md +17 -17
- package/lib/oh-story/skills/story-short-analyze/references/{quality-checklist.md → source-story-quality.md} +28 -49
- package/lib/oh-story/skills/story-short-analyze/references/zhihu-style.md +2 -2
- package/lib/oh-story/skills/story-short-scan/SKILL.md +1 -1
- package/lib/oh-story/skills/story-short-write/SKILL.md +78 -55
- package/lib/oh-story/skills/story-short-write/references/author-memory.md +163 -0
- package/lib/oh-story/skills/story-short-write/references/banned-words.md +6 -4
- package/lib/oh-story/skills/story-short-write/references/cross-book-recall.md +3 -3
- package/lib/oh-story/skills/story-short-write/references/emotional-methods.md +4 -4
- package/lib/oh-story/skills/story-short-write/references/genre-styles//344/270/226/346/203/205/346/211/223/350/204/270.md +3 -3
- package/lib/oh-story/skills/story-short-write/references/genre-styles//345/217/214/347/224/267/344/270/273.md +2 -2
- package/lib/oh-story/skills/story-short-write/references/genre-styles//345/244/215/344/273/207/346/211/223/350/204/270.md +3 -3
- package/lib/oh-story/skills/story-short-write/references/genre-styles//345/256/205/346/226/227/345/256/253/346/226/227.md +6 -6
- package/lib/oh-story/skills/story-short-write/references/genre-styles//346/200/273/350/243/201/350/261/252/351/227/250.md +3 -3
- package/lib/oh-story/skills/story-short-write/references/genre-styles//346/202/254/347/226/221.md +4 -4
- package/lib/oh-story/skills/story-short-write/references/genre-styles//346/260/221/344/277/227/346/200/252/350/260/210.md +7 -7
- package/lib/oh-story/skills/story-short-write/references/genre-styles//346/262/231/351/233/225/350/204/221/346/264/236.md +5 -5
- package/lib/oh-story/skills/story-short-write/references/genre-styles//347/224/234/345/256/240.md +4 -4
- package/lib/oh-story/skills/story-short-write/references/genre-styles//350/277/275/345/246/273/347/201/253/350/221/254/345/234/272.md +3 -3
- package/lib/oh-story/skills/story-short-write/references/genre-writing-formulas.md +32 -44
- package/lib/oh-story/skills/story-short-write/references/genre-writing-techniques.md +20 -18
- package/lib/oh-story/skills/story-short-write/references/output-contract.md +1 -1
- package/lib/oh-story/skills/story-short-write/references/short-craft.md +18 -18
- package/lib/oh-story/skills/story-short-write/references/short-deslop.md +1 -1
- package/lib/oh-story/skills/story-short-write/references/short-format.md +38 -8
- package/lib/oh-story/skills/story-short-write/references/{quality-checklist.md → short-prose-quality.md} +22 -21
- package/lib/oh-story/skills/story-short-write/references/short-reversal.md +355 -0
- package/lib/oh-story/skills/{story-short-analyze/references/hooks-suspense.md → story-short-write/references/short-suspense.md} +31 -31
- package/lib/oh-story/skills/story-short-write/references/submission-craft.md +2 -2
- package/lib/oh-story/skills/story-short-write/references/writing-workflow.md +31 -22
- package/lib/oh-story/skills/story-short-write/scripts/author_memory_commit.py +871 -0
- package/lib/oh-story/skills/story-short-write/scripts/check-ai-patterns.js +64 -1
- package/lib/oh-story/skills/story-short-write/scripts/check-delivery-contract.js +212 -0
- package/lib/oh-story/skills/story-short-write/scripts/check-phase2-contract.js +363 -0
- package/lib/types/client/drama-production-view.d.ts +34 -0
- package/lib/types/client/drama-production-view.d.ts.map +1 -0
- package/lib/types/client/drama-production.d.ts +92 -0
- package/lib/types/client/drama-production.d.ts.map +1 -0
- package/lib/types/client/file-activity.d.ts +9 -2
- package/lib/types/client/file-activity.d.ts.map +1 -1
- package/lib/types/client/index.d.ts +1 -1
- package/lib/types/client/index.d.ts.map +1 -1
- package/lib/types/client/production-intents.d.ts +9 -0
- package/lib/types/client/production-intents.d.ts.map +1 -0
- package/lib/types/client/production-prompts.d.ts +9 -0
- package/lib/types/client/production-prompts.d.ts.map +1 -0
- package/lib/types/client/production-runtime.d.ts +58 -0
- package/lib/types/client/production-runtime.d.ts.map +1 -0
- package/lib/types/client/video-studio.d.ts +41 -0
- package/lib/types/client/video-studio.d.ts.map +1 -0
- package/lib/types/client/workbench-ui.d.ts +5 -0
- package/lib/types/client/workbench-ui.d.ts.map +1 -0
- package/lib/types/game-verification.d.ts +16 -0
- package/lib/types/game-verification.d.ts.map +1 -0
- package/lib/types/index.d.ts +5 -2
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/production-intent.d.ts +21 -0
- package/lib/types/production-intent.d.ts.map +1 -0
- package/lib/types/production-tool.d.ts +5 -0
- package/lib/types/production-tool.d.ts.map +1 -0
- package/lib/types/reference-tool.d.ts +6 -0
- package/lib/types/reference-tool.d.ts.map +1 -0
- package/lib/types/role-provider.d.ts.map +1 -1
- package/lib/types/role-tool.d.ts +3 -1
- package/lib/types/role-tool.d.ts.map +1 -1
- package/lib/types/skill-provider.d.ts +7 -0
- package/lib/types/skill-provider.d.ts.map +1 -1
- package/lib/types/video-project.d.ts +42 -0
- package/lib/types/video-project.d.ts.map +1 -0
- package/lib/types/workspace-request-trust.d.ts +6 -0
- package/lib/types/workspace-request-trust.d.ts.map +1 -1
- package/lib/types/workspace-route.d.ts +20 -0
- package/lib/types/workspace-route.d.ts.map +1 -1
- package/lib/video-recap/CHANGELOG.md +282 -0
- package/lib/video-recap/LICENSE +21 -0
- package/lib/video-recap/README.en.md +257 -0
- package/lib/video-recap/README.md +255 -0
- package/lib/video-recap/manifest.json +684 -0
- package/lib/video-recap/skills/video-assemble/SKILL.md +97 -0
- package/lib/video-recap/skills/video-assemble/references/jianying/LICENSE.duo-video +21 -0
- package/lib/video-recap/skills/video-assemble/references/jianying/SOURCE.md +15 -0
- package/lib/video-recap/skills/video-assemble/references/jianying/empty_draft_meta_info.json +69 -0
- package/lib/video-recap/skills/video-assemble/references/jianying/empty_jy_combination_segment.json +84 -0
- package/lib/video-recap/skills/video-assemble/references/jianying/empty_jy_combination_video_material.json +98 -0
- package/lib/video-recap/skills/video-assemble/references/jianying/empty_jy_draft.json +204 -0
- package/lib/video-recap/skills/video-assemble/references/jianying/empty_jy_material_video.json +83 -0
- package/lib/video-recap/skills/video-assemble/references/jianying/empty_jy_meta_material_value.json +23 -0
- package/lib/video-recap/skills/video-assemble/references/jianying/empty_jy_project_info.json +133 -0
- package/lib/video-recap/skills/video-assemble/references/jianying/empty_jy_segment.json +70 -0
- package/lib/video-recap/skills/video-assemble/references/jianying/empty_jy_text_styles.json +30 -0
- package/lib/video-recap/skills/video-assemble/references/jianying/empty_yj_material_audio.json +41 -0
- package/lib/video-recap/skills/video-assemble/references/jianying/empty_yj_material_text.json +109 -0
- package/lib/video-recap/skills/video-assemble/scripts/artifacts.py +88 -0
- package/lib/video-recap/skills/video-assemble/scripts/assemble.py +345 -0
- package/lib/video-recap/skills/video-assemble/scripts/assemble_constants.py +34 -0
- package/lib/video-recap/skills/video-assemble/scripts/assembly_contract.py +305 -0
- package/lib/video-recap/skills/video-assemble/scripts/assembly_settings.py +94 -0
- package/lib/video-recap/skills/video-assemble/scripts/audio_automation.py +205 -0
- package/lib/video-recap/skills/video-assemble/scripts/audio_mix.py +555 -0
- package/lib/video-recap/skills/video-assemble/scripts/export_jianying.py +261 -0
- package/lib/video-recap/skills/video-assemble/scripts/jianying_builders.py +767 -0
- package/lib/video-recap/skills/video-assemble/scripts/jianying_model.py +111 -0
- package/lib/video-recap/skills/video-assemble/scripts/jianying_optional.py +24 -0
- package/lib/video-recap/skills/video-assemble/scripts/jianying_schema.py +109 -0
- package/lib/video-recap/skills/video-assemble/scripts/jianying_templates.py +37 -0
- package/lib/video-recap/skills/video-assemble/scripts/jianying_timeline_contract.py +191 -0
- package/lib/video-recap/skills/video-assemble/scripts/jianying_tracks.py +75 -0
- package/lib/video-recap/skills/video-assemble/scripts/jianying_writer.py +394 -0
- package/lib/video-recap/skills/video-assemble/scripts/lib.py +239 -0
- package/lib/video-recap/skills/video-assemble/scripts/media.py +243 -0
- package/lib/video-recap/skills/video-assemble/scripts/narration_audio.py +477 -0
- package/lib/video-recap/skills/video-assemble/scripts/render_preflight.py +46 -0
- package/lib/video-recap/skills/video-assemble/scripts/source_subtitles.py +486 -0
- package/lib/video-recap/skills/video-assemble/scripts/subtitle_core.py +376 -0
- package/lib/video-recap/skills/video-assemble/scripts/subtitle_render.py +88 -0
- package/lib/video-recap/skills/video-assemble/scripts/timeline.py +248 -0
- package/lib/video-recap/skills/video-assemble/scripts/timeline_emit.py +89 -0
- package/lib/video-recap/skills/video-assemble/scripts/visual_render.py +512 -0
- package/lib/video-recap/skills/video-cut/SKILL.md +90 -0
- package/lib/video-recap/skills/video-cut/scripts/cut.py +67 -0
- package/lib/video-recap/skills/video-cut/scripts/cut_cli.py +320 -0
- package/lib/video-recap/skills/video-cut/scripts/cut_contract.py +545 -0
- package/lib/video-recap/skills/video-cut/scripts/cut_render.py +348 -0
- package/lib/video-recap/skills/video-cut/scripts/lib.py +77 -0
- package/lib/video-recap/skills/video-cut/scripts/media_geometry.py +341 -0
- package/lib/video-recap/skills/video-cut/scripts/narration_mapping.py +249 -0
- package/lib/video-recap/skills/video-cut/scripts/sentence_boundaries.py +745 -0
- package/lib/video-recap/skills/video-recap/SKILL.md +216 -0
- package/lib/video-recap/skills/video-recap/references/config-playbook.md +61 -0
- package/lib/video-recap/skills/video-recap/references/creative-editing-playbook.md +225 -0
- package/lib/video-recap/skills/video-recap/references/data-schema.md +534 -0
- package/lib/video-recap/skills/video-recap/references/research-guide.md +74 -0
- package/lib/video-recap/skills/video-recap/references/shift-left-qc-schema.md +23 -0
- package/lib/video-recap/skills/video-recap/references/timeline-and-jianying.md +251 -0
- package/lib/video-recap/skills/video-recap/scripts/doctor.py +483 -0
- package/lib/video-recap/skills/video-recap/scripts/final_qc.py +737 -0
- package/lib/video-recap/skills/video-recap/scripts/lib.py +242 -0
- package/lib/video-recap/skills/video-recap/scripts/materials.py +457 -0
- package/lib/video-recap/skills/video-recap/scripts/mimo_qc.py +95 -0
- package/lib/video-recap/skills/video-recap/scripts/mimo_qc_client.py +18 -0
- package/lib/video-recap/skills/video-recap/scripts/mimo_qc_contract.py +9 -0
- package/lib/video-recap/skills/video-recap/scripts/mimo_qc_evidence.py +371 -0
- package/lib/video-recap/skills/video-recap/scripts/mimo_qc_observations.py +201 -0
- package/lib/video-recap/skills/video-recap/scripts/mimo_qc_payload.py +227 -0
- package/lib/video-recap/skills/video-recap/scripts/mimo_qc_report.py +362 -0
- package/lib/video-recap/skills/video-recap/scripts/mimo_qc_runner.py +129 -0
- package/lib/video-recap/skills/video-recap/scripts/qc_contract.py +338 -0
- package/lib/video-recap/skills/video-recap/scripts/recap.py +9 -0
- package/lib/video-recap/skills/video-recap/scripts/recap_cli.py +140 -0
- package/lib/video-recap/skills/video-recap/scripts/recap_inspect.py +550 -0
- package/lib/video-recap/skills/video-recap/scripts/recap_review.py +77 -0
- package/lib/video-recap/skills/video-recap/scripts/recap_runner.py +654 -0
- package/lib/video-recap/skills/video-recap/scripts/recap_runtime.py +335 -0
- package/lib/video-recap/skills/video-recap/scripts/recap_stage_qc.py +217 -0
- package/lib/video-recap/skills/video-recap/scripts/recap_timeline.py +795 -0
- package/lib/video-recap/skills/video-script/SKILL.md +248 -0
- package/lib/video-recap/skills/video-script/references/creative-editing-playbook.md +225 -0
- package/lib/video-recap/skills/video-script/references/research-guide.md +75 -0
- package/lib/video-recap/skills/video-script/scripts/agent_brief.py +399 -0
- package/lib/video-recap/skills/video-script/scripts/agent_text.py +410 -0
- package/lib/video-recap/skills/video-script/scripts/brief_context.py +403 -0
- package/lib/video-recap/skills/video-script/scripts/brief_inputs.py +332 -0
- package/lib/video-recap/skills/video-script/scripts/brief_timeline.py +442 -0
- package/lib/video-recap/skills/video-script/scripts/deslop_qc.py +237 -0
- package/lib/video-recap/skills/video-script/scripts/evidence_bundle.py +492 -0
- package/lib/video-recap/skills/video-script/scripts/lib.py +327 -0
- package/lib/video-recap/skills/video-script/scripts/narration.py +12 -0
- package/lib/video-recap/skills/video-script/scripts/narration_lint.py +678 -0
- package/lib/video-recap/skills/video-script/scripts/review.py +42 -0
- package/lib/video-recap/skills/video-script/scripts/review_grounding.py +262 -0
- package/lib/video-recap/skills/video-script/scripts/review_response.py +761 -0
- package/lib/video-recap/skills/video-script/scripts/review_runner.py +200 -0
- package/lib/video-recap/skills/video-script/scripts/speech_ownership.py +204 -0
- package/lib/video-recap/skills/video-script/scripts/timeline_fusion.py +199 -0
- package/lib/video-recap/skills/video-script/scripts/validate.py +164 -0
- package/lib/video-recap/skills/video-understanding/SKILL.md +75 -0
- package/lib/video-recap/skills/video-understanding/references/data-schema.md +299 -0
- package/lib/video-recap/skills/video-understanding/references/prompt-templates.md +37 -0
- package/lib/video-recap/skills/video-understanding/references/research-guide.md +74 -0
- package/lib/video-recap/skills/video-understanding/scripts/agent_brief.py +399 -0
- package/lib/video-recap/skills/video-understanding/scripts/agent_text.py +410 -0
- package/lib/video-recap/skills/video-understanding/scripts/asr.py +260 -0
- package/lib/video-recap/skills/video-understanding/scripts/brief.py +12 -0
- package/lib/video-recap/skills/video-understanding/scripts/brief_context.py +403 -0
- package/lib/video-recap/skills/video-understanding/scripts/brief_inputs.py +332 -0
- package/lib/video-recap/skills/video-understanding/scripts/brief_timeline.py +442 -0
- package/lib/video-recap/skills/video-understanding/scripts/consolidate.py +647 -0
- package/lib/video-recap/skills/video-understanding/scripts/deslop_qc.py +237 -0
- package/lib/video-recap/skills/video-understanding/scripts/detect.py +513 -0
- package/lib/video-recap/skills/video-understanding/scripts/extract.py +62 -0
- package/lib/video-recap/skills/video-understanding/scripts/lib.py +470 -0
- package/lib/video-recap/skills/video-understanding/scripts/narration_lint.py +678 -0
- package/lib/video-recap/skills/video-understanding/scripts/speech_ownership.py +204 -0
- package/lib/video-recap/skills/video-understanding/scripts/storyboard.py +507 -0
- package/lib/video-recap/skills/video-understanding/scripts/timeline_fusion.py +199 -0
- package/lib/video-recap/skills/video-understanding/scripts/understand.py +9 -0
- package/lib/video-recap/skills/video-understanding/scripts/understanding_brief.py +216 -0
- package/lib/video-recap/skills/video-understanding/scripts/understanding_cache.py +327 -0
- package/lib/video-recap/skills/video-understanding/scripts/understanding_runner.py +367 -0
- package/lib/video-recap/skills/video-understanding/scripts/understanding_storyboard.py +162 -0
- package/lib/video-recap/skills/video-understanding/scripts/vlm.py +705 -0
- package/lib/video-recap/skills/video-voiceover/SKILL.md +81 -0
- package/lib/video-recap/skills/video-voiceover/scripts/dub.py +637 -0
- package/lib/video-recap/skills/video-voiceover/scripts/fish_audio.py +109 -0
- package/lib/video-recap/skills/video-voiceover/scripts/lib.py +421 -0
- package/lib/video-recap/skills/video-voiceover/scripts/tts_audio.py +113 -0
- package/lib/video-recap/skills/video-voiceover/scripts/voiceover.py +782 -0
- package/package.json +57 -41
- package/lib/drama/skills/short-drama/references/lifecycle-commands.md +0 -130
- package/lib/oh-story/skills/story-deslop/scripts/check-outline-copy.js +0 -241
- package/lib/oh-story/skills/story-long-write/references/format-and-structure.md +0 -169
- package/lib/oh-story/skills/story-setup/references/agent-references/genre-writing-formulas.md +0 -444
- package/lib/oh-story/skills/story-setup/references/agent-references/quality-checklist.md +0 -247
- package/lib/oh-story/skills/story-short-analyze/references/anti-ai-writing.md +0 -582
- package/lib/oh-story/skills/story-short-analyze/references/banned-words.md +0 -147
- package/lib/oh-story/skills/story-short-analyze/references/genre-catalog.md +0 -490
- package/lib/oh-story/skills/story-short-analyze/references/genre-core-mechanics.md +0 -425
- package/lib/oh-story/skills/story-short-analyze/references/genre-writing-formulas.md +0 -453
- /package/lib/oh-story/skills/{story-long-write/references/hooks-chapter.md → story-setup/references/agent-references/short-chapter-hooks.md} +0 -0
- /package/lib/oh-story/skills/{story-long-write/references/hooks-paragraph.md → story-setup/references/agent-references/short-paragraph-hooks.md} +0 -0
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
"""Canonical CLI and programmatic render entry for the self-contained video-assemble skill."""
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
import os
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
|
|
7
|
+
import artifacts
|
|
8
|
+
import assemble_constants as constants
|
|
9
|
+
import assembly_contract
|
|
10
|
+
import assembly_settings
|
|
11
|
+
import audio_mix
|
|
12
|
+
import media
|
|
13
|
+
import narration_audio
|
|
14
|
+
import render_preflight
|
|
15
|
+
import subtitle_render
|
|
16
|
+
import timeline_emit
|
|
17
|
+
import visual_render
|
|
18
|
+
import lib
|
|
19
|
+
from assembly_settings import assembly_settings_fingerprint
|
|
20
|
+
from audio_mix import final_loudnorm_filter
|
|
21
|
+
|
|
22
|
+
__all__ = [
|
|
23
|
+
"assemble_video",
|
|
24
|
+
"assembly_settings_fingerprint",
|
|
25
|
+
"final_loudnorm_filter",
|
|
26
|
+
"main",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def assemble_video(input_video, tts_segments, work_dir, output_path):
|
|
31
|
+
"""组装最终视频"""
|
|
32
|
+
if not tts_segments:
|
|
33
|
+
raise RuntimeError("tts_meta.json 没有有效解说音频,已中止以避免生成无解说视频")
|
|
34
|
+
|
|
35
|
+
video_duration = lib.get_video_duration(input_video)
|
|
36
|
+
canvas = media._probe_canvas(input_video) # drives subtitle PlayRes/scale so 竖屏 text isn't stretched
|
|
37
|
+
|
|
38
|
+
# 解说整体提速(可选)后,将所有 TTS 片段按时间位置合成到与视频等长的音轨上
|
|
39
|
+
narration_audio._apply_narration_speed(tts_segments, work_dir)
|
|
40
|
+
narration_wav = work_dir / "narration.wav"
|
|
41
|
+
narration_audio._build_timed_narration(tts_segments, narration_wav, video_duration, work_dir)
|
|
42
|
+
handoffs = audio_mix._apply_source_sentence_handoffs(tts_segments, work_dir, video_duration)
|
|
43
|
+
if handoffs:
|
|
44
|
+
lib.log(
|
|
45
|
+
"原声句末交接: "
|
|
46
|
+
+ ", ".join(
|
|
47
|
+
f"{item['end']:.2f}s→{item.get('restore_at', item['end']):.2f}s({item['status']})"
|
|
48
|
+
for item in handoffs
|
|
49
|
+
)
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
# 始终生成 SRT 字幕文件(原声留白处补烧原声字幕,传入成片时长以计算留白区间)
|
|
53
|
+
srt_path = subtitle_render._generate_srt(tts_segments, work_dir, video_duration)
|
|
54
|
+
lib.log(f"字幕文件: {srt_path}")
|
|
55
|
+
ass_path = None
|
|
56
|
+
if lib.CONFIG.get("burn_subtitles", False):
|
|
57
|
+
ass_path = subtitle_render._generate_ass(tts_segments, work_dir, video_duration, canvas)
|
|
58
|
+
lib.log(f"压制字幕文件: {ass_path}")
|
|
59
|
+
|
|
60
|
+
# 可选 BGM:作为一条独立音轨(input [2:a])混入,旁白处自动压低
|
|
61
|
+
bgm_path = lib.CONFIG.get("bgm_path", "")
|
|
62
|
+
has_bgm = bool(bgm_path) and os.path.exists(bgm_path)
|
|
63
|
+
if bgm_path and not has_bgm:
|
|
64
|
+
lib.log(f" ⚠️ BGM 文件不存在,跳过: {bgm_path}")
|
|
65
|
+
elif has_bgm:
|
|
66
|
+
lib.log(f"BGM 铺底: {bgm_path} (音量 {lib.CONFIG.get('bgm_volume', 0.18)},旁白时 {lib.CONFIG.get('bgm_ducking_volume', 0.10)})")
|
|
67
|
+
|
|
68
|
+
# 多轨时间线模型(timeline.json):canonical 渲染仍是 ffmpeg,此模型供检视/可选导出
|
|
69
|
+
timeline_emit._emit_timeline(input_video, tts_segments, work_dir, video_duration, has_bgm)
|
|
70
|
+
|
|
71
|
+
overlay_filters, overlay_qc = visual_render._visual_overlay_filters(work_dir, canvas, video_duration)
|
|
72
|
+
mask_filter = visual_render._source_subtitle_mask_filter(
|
|
73
|
+
canvas, work_dir, tts_segments, video_duration=video_duration
|
|
74
|
+
)
|
|
75
|
+
visual_qc = visual_render._build_visual_qc(
|
|
76
|
+
tts_segments,
|
|
77
|
+
work_dir,
|
|
78
|
+
video_duration,
|
|
79
|
+
canvas,
|
|
80
|
+
overlay_qc=overlay_qc,
|
|
81
|
+
mask_filter=mask_filter,
|
|
82
|
+
)
|
|
83
|
+
visual_render._write_visual_qc(work_dir, visual_qc)
|
|
84
|
+
assembly_qc_path = Path(work_dir) / constants.ASSEMBLY_QC
|
|
85
|
+
assembly_qc_path.unlink(missing_ok=True)
|
|
86
|
+
if visual_qc.get("blocking"):
|
|
87
|
+
codes = ", ".join(visual_qc.get("blocking_codes", []))
|
|
88
|
+
raise RuntimeError(f"视觉 QC 失败: {codes};详见 {Path(work_dir) / constants.VISUAL_QC}")
|
|
89
|
+
|
|
90
|
+
# 混合原始音频 + 解说音频(+ 可选 BGM)
|
|
91
|
+
source_has_audio = media._has_audio_stream(input_video)
|
|
92
|
+
if source_has_audio:
|
|
93
|
+
original_audio_input = []
|
|
94
|
+
original_audio_label = "0:a"
|
|
95
|
+
bgm_audio_label = "2:a"
|
|
96
|
+
else:
|
|
97
|
+
lib.log("源视频无音轨,使用静音原声音轨进行混音")
|
|
98
|
+
original_audio_input = [
|
|
99
|
+
"-f", "lavfi", "-t", str(video_duration),
|
|
100
|
+
"-i", "anullsrc=channel_layout=stereo:sample_rate=48000",
|
|
101
|
+
]
|
|
102
|
+
original_audio_label = "2:a"
|
|
103
|
+
bgm_audio_label = "3:a"
|
|
104
|
+
filter_complex = audio_mix._build_audio_filter_complex(
|
|
105
|
+
tts_segments,
|
|
106
|
+
has_bgm,
|
|
107
|
+
original_audio_label=original_audio_label,
|
|
108
|
+
bgm_audio_label=bgm_audio_label,
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
# BGM is input [2:a]; -stream_loop -1 loops it to cover the whole timeline (amix
|
|
112
|
+
# duration=first + -t trim it back to the video length).
|
|
113
|
+
bgm_input = ["-stream_loop", "-1", "-i", str(bgm_path)] if has_bgm else []
|
|
114
|
+
|
|
115
|
+
# 对于超长 volume 表达式(多段解说),使用 -filter_complex_script 避免命令行溢出
|
|
116
|
+
# 末端整体响度归一:ducking 只管相对平衡,这一步统一成片绝对响度
|
|
117
|
+
aout_label = "[aout]"
|
|
118
|
+
loudnorm_measurement = audio_mix._run_loudnorm_first_pass(
|
|
119
|
+
input_video,
|
|
120
|
+
narration_wav,
|
|
121
|
+
original_audio_input,
|
|
122
|
+
bgm_input,
|
|
123
|
+
filter_complex,
|
|
124
|
+
work_dir,
|
|
125
|
+
)
|
|
126
|
+
final_ln = audio_mix.final_loudnorm_filter(loudnorm_measurement)
|
|
127
|
+
if final_ln:
|
|
128
|
+
filter_complex += f";[aout]{final_ln}[aoutln]"
|
|
129
|
+
aout_label = "[aoutln]"
|
|
130
|
+
lib.log(f"成片响度归一: {final_ln}")
|
|
131
|
+
|
|
132
|
+
filter_complex_bytes = filter_complex.encode('utf-8')
|
|
133
|
+
if len(filter_complex_bytes) > constants.FILTER_SCRIPT_THRESHOLD_BYTES:
|
|
134
|
+
fc_script = Path(work_dir) / ".filter_complex.txt"
|
|
135
|
+
fc_script.write_text(filter_complex, encoding="utf-8")
|
|
136
|
+
lib.log(f"使用 filter_complex_script (表达式长度 {len(filter_complex_bytes)} bytes)")
|
|
137
|
+
cmd = [
|
|
138
|
+
"ffmpeg", "-y",
|
|
139
|
+
"-i", str(input_video),
|
|
140
|
+
"-i", str(narration_wav),
|
|
141
|
+
*original_audio_input,
|
|
142
|
+
*bgm_input,
|
|
143
|
+
"-filter_complex_script", str(fc_script),
|
|
144
|
+
# 0:v:0 (not 0:v): sources with attached cover art carry a second video stream.
|
|
145
|
+
# -vf only ever applies to the first one, so mapping all of them makes ffmpeg
|
|
146
|
+
# abort with "Could not write header (incorrect codec parameters ?)" and leave
|
|
147
|
+
# an unreadable file — after the whole pipeline has already run.
|
|
148
|
+
"-map", "0:v:0", "-map", aout_label,
|
|
149
|
+
]
|
|
150
|
+
else:
|
|
151
|
+
cmd = [
|
|
152
|
+
"ffmpeg", "-y",
|
|
153
|
+
"-i", str(input_video),
|
|
154
|
+
"-i", str(narration_wav),
|
|
155
|
+
*original_audio_input,
|
|
156
|
+
*bgm_input,
|
|
157
|
+
"-filter_complex", filter_complex,
|
|
158
|
+
# 0:v:0 (not 0:v): sources with attached cover art carry a second video stream.
|
|
159
|
+
# -vf only ever applies to the first one, so mapping all of them makes ffmpeg
|
|
160
|
+
# abort with "Could not write header (incorrect codec parameters ?)" and leave
|
|
161
|
+
# an unreadable file — after the whole pipeline has already run.
|
|
162
|
+
"-map", "0:v:0", "-map", aout_label,
|
|
163
|
+
]
|
|
164
|
+
|
|
165
|
+
# Video filter chain: mask source subtitles first (drawbox), then burn our subtitles
|
|
166
|
+
# on top. Either one forces a re-encode; with neither, the video stream is copied.
|
|
167
|
+
crf = str(lib.CONFIG.get("output_crf", 18)) # env_int already clamps to >=0; keep 0 (lossless) intact
|
|
168
|
+
preset = str(lib.CONFIG.get("output_preset", "veryfast") or "veryfast")
|
|
169
|
+
max_h = int(lib.CONFIG.get("output_max_height", 0) or 0)
|
|
170
|
+
vf_chain = []
|
|
171
|
+
if mask_filter:
|
|
172
|
+
vf_chain.append(mask_filter)
|
|
173
|
+
vf_chain.extend(overlay_filters)
|
|
174
|
+
if lib.CONFIG.get("burn_subtitles", False):
|
|
175
|
+
vf_chain.append(visual_render._subtitle_burn_filter(ass_path))
|
|
176
|
+
# Downscale LAST so the mask + burned subtitles render at native resolution and are then
|
|
177
|
+
# scaled down with the frame (crisp). The helper forces both dimensions even so an odd
|
|
178
|
+
# OUTPUT_MAX_HEIGHT can't crash libx264; 'min(ih,H)' only ever shrinks the source.
|
|
179
|
+
if max_h > 0:
|
|
180
|
+
vf_chain.append(visual_render._output_downscale_filter(max_h))
|
|
181
|
+
# yuv420p: 10-bit/4:2:2 sources re-encoded as-is play on desktop but fail on WeChat/
|
|
182
|
+
# mobile/Safari; force 8-bit 4:2:0 so every recap is universally decodable. yuv420p also
|
|
183
|
+
# needs EVEN width AND height, so normalize odd dims (4:2:2/4:4:4 permit them) before the
|
|
184
|
+
# encode — otherwise libx264 aborts to a 0-byte file. The downscale helper already evens out.
|
|
185
|
+
even = "scale=trunc(iw/2)*2:trunc(ih/2)*2"
|
|
186
|
+
notes = []
|
|
187
|
+
video_filter_script = None
|
|
188
|
+
if vf_chain:
|
|
189
|
+
if max_h <= 0: # no downscale in the chain to force even dims
|
|
190
|
+
vf_chain.append(even)
|
|
191
|
+
video_filter = ",".join(vf_chain)
|
|
192
|
+
if len(video_filter.encode("utf-8")) > constants.FILTER_SCRIPT_THRESHOLD_BYTES:
|
|
193
|
+
video_filter_script = Path(work_dir) / ".video_filter.txt"
|
|
194
|
+
video_filter_script.write_text(video_filter, encoding="utf-8")
|
|
195
|
+
cmd += ["-filter_script:v:0", str(video_filter_script)]
|
|
196
|
+
lib.log(
|
|
197
|
+
"使用 video filter script "
|
|
198
|
+
f"(表达式长度 {len(video_filter.encode('utf-8'))} bytes)"
|
|
199
|
+
)
|
|
200
|
+
else:
|
|
201
|
+
cmd += ["-vf", video_filter]
|
|
202
|
+
cmd += ["-c:v", "libx264", "-preset", preset, "-crf", crf, "-pix_fmt", "yuv420p"]
|
|
203
|
+
notes = ((["遮挡原字幕"] if mask_filter else [])
|
|
204
|
+
+ ([f"视觉叠加×{len(overlay_filters)}"] if overlay_filters else [])
|
|
205
|
+
+ (["压制解说字幕"] if lib.CONFIG.get("burn_subtitles", False) else [])
|
|
206
|
+
+ ([f"缩放≤{max_h}p"] if max_h > 0 else []))
|
|
207
|
+
lib.log(f"视频重编码: {' + '.join(notes)} (crf={crf}, preset={preset})")
|
|
208
|
+
elif lib.CONFIG.get("force_video_reencode", False):
|
|
209
|
+
notes = ["force_video_reencode"]
|
|
210
|
+
cmd += ["-vf", even, "-c:v", "libx264", "-preset", preset, "-crf", crf, "-pix_fmt", "yuv420p"]
|
|
211
|
+
else:
|
|
212
|
+
cmd += ["-c:v", "copy"]
|
|
213
|
+
|
|
214
|
+
# +faststart relocates the moov atom to the front so web/social players can start
|
|
215
|
+
# before the full file downloads; valid (and beneficial) on the copy path too.
|
|
216
|
+
cmd += ["-c:a", "aac", "-b:a", "192k", "-ar", "48000", "-movflags", "+faststart",
|
|
217
|
+
"-t", str(video_duration), str(output_path)]
|
|
218
|
+
try:
|
|
219
|
+
result = lib.run_cmd(cmd)
|
|
220
|
+
if result.returncode != 0:
|
|
221
|
+
raise RuntimeError(f"视频组装失败: {result.stderr}")
|
|
222
|
+
finally:
|
|
223
|
+
# 清理临时 filter_complex 脚本(无论 ffmpeg 是否成功)
|
|
224
|
+
if len(filter_complex_bytes) > constants.FILTER_SCRIPT_THRESHOLD_BYTES:
|
|
225
|
+
fc_script.unlink(missing_ok=True)
|
|
226
|
+
if video_filter_script is not None:
|
|
227
|
+
video_filter_script.unlink(missing_ok=True)
|
|
228
|
+
|
|
229
|
+
lib.log(f"最终视频: {output_path} ({output_path.stat().st_size / 1024 / 1024:.1f}MB)")
|
|
230
|
+
assembly_contract._write_assembly_qc(
|
|
231
|
+
work_dir,
|
|
232
|
+
assembly_contract._build_assembly_qc(
|
|
233
|
+
tts_segments,
|
|
234
|
+
video_duration,
|
|
235
|
+
output_path=output_path,
|
|
236
|
+
source_has_audio=source_has_audio,
|
|
237
|
+
loudnorm_measurement=loudnorm_measurement,
|
|
238
|
+
visual_qc=visual_qc,
|
|
239
|
+
render_delivery={
|
|
240
|
+
"video_encode_passes": 1 if (vf_chain or lib.CONFIG.get("force_video_reencode", False)) else 0,
|
|
241
|
+
"reencode_reason": notes if (vf_chain or lib.CONFIG.get("force_video_reencode", False)) else [],
|
|
242
|
+
"audio_sample_rate": 48000,
|
|
243
|
+
"final_compat_notes": ["yuv420p"] if (vf_chain or lib.CONFIG.get("force_video_reencode", False)) else ["video_copy", "aac_48000", "faststart"],
|
|
244
|
+
},
|
|
245
|
+
),
|
|
246
|
+
)
|
|
247
|
+
return output_path
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
def main():
|
|
251
|
+
import argparse
|
|
252
|
+
import shutil
|
|
253
|
+
from pathlib import Path
|
|
254
|
+
ap = argparse.ArgumentParser(
|
|
255
|
+
description="video-assemble: mux narration audio over the video, duck the original, render subtitles.")
|
|
256
|
+
ap.add_argument("video", help="source video (edited_source.mp4 in cut mode, else the original)")
|
|
257
|
+
ap.add_argument("--work-dir", required=True)
|
|
258
|
+
ap.add_argument("--tts-meta", default=None, help="tts_meta.json (default: <work-dir>/tts_meta.json)")
|
|
259
|
+
ap.add_argument("--recap-stem", default=None, help="final recap filename stem (default: video stem)")
|
|
260
|
+
ap.add_argument("--output-dir", default=None)
|
|
261
|
+
ap.add_argument("--burn-subtitles", action=argparse.BooleanOptionalAction, default=None,
|
|
262
|
+
help="burn narration subtitles into the video (default on; --no-burn-subtitles to disable)")
|
|
263
|
+
ap.add_argument("--subtitle-y-top", type=int, default=None,
|
|
264
|
+
help="inclusive top of a measured subtitle band in display-frame pixels")
|
|
265
|
+
ap.add_argument("--subtitle-y-bot", type=int, default=None,
|
|
266
|
+
help="exclusive bottom of a measured subtitle band in display-frame pixels")
|
|
267
|
+
ap.add_argument("--source-video", default=None,
|
|
268
|
+
help="original source video (cut mode) so timeline.json / 剪映 export reference the real clips")
|
|
269
|
+
ap.add_argument("--export-jianying", action="store_true",
|
|
270
|
+
help="also export an OPTIONAL 剪映/JianYing draft from timeline.json after rendering")
|
|
271
|
+
ap.add_argument("--jianying-out", default=None, help="parent dir for the 剪映 draft (default: work-dir)")
|
|
272
|
+
ap.add_argument("--jianying-bundle-media", action="store_true",
|
|
273
|
+
help="copy media into the 剪映 draft folder (default on; portable/self-contained)")
|
|
274
|
+
ap.add_argument("--jianying-no-bundle-media", action="store_true",
|
|
275
|
+
help="do NOT copy media into the draft — reference in place (only if 剪映 can read those paths; macOS 剪映 usually cannot)")
|
|
276
|
+
args = ap.parse_args()
|
|
277
|
+
work_dir = Path(args.work_dir)
|
|
278
|
+
if args.burn_subtitles is not None:
|
|
279
|
+
lib.CONFIG["burn_subtitles"] = args.burn_subtitles
|
|
280
|
+
if (args.subtitle_y_top is None) != (args.subtitle_y_bot is None):
|
|
281
|
+
ap.error("--subtitle-y-top and --subtitle-y-bot must be provided together")
|
|
282
|
+
if args.subtitle_y_top is not None:
|
|
283
|
+
if args.subtitle_y_top < 0 or args.subtitle_y_bot <= args.subtitle_y_top:
|
|
284
|
+
ap.error("subtitle Y coordinates must satisfy 0 <= top < bot")
|
|
285
|
+
lib.CONFIG["subtitle_y_top"] = args.subtitle_y_top
|
|
286
|
+
lib.CONFIG["subtitle_y_bot"] = args.subtitle_y_bot
|
|
287
|
+
lib.CONFIG["mask_source_subtitles"] = True
|
|
288
|
+
lib.CONFIG["source_subtitle_mask_policy"] = "opt_in"
|
|
289
|
+
lib.CONFIG["source_subtitle_mask_policy_declared"] = True
|
|
290
|
+
# A measured band is an explicit request to conceal the known source-caption
|
|
291
|
+
# pixels. The general 0.6 translucent look can leave white glyphs visible under
|
|
292
|
+
# the generated subtitles; use an opaque mask unless the caller deliberately
|
|
293
|
+
# chose a different opacity through the existing environment override.
|
|
294
|
+
if "SUBTITLE_MASK_OPACITY" not in os.environ:
|
|
295
|
+
lib.CONFIG["subtitle_mask_opacity"] = 1.0
|
|
296
|
+
if args.source_video:
|
|
297
|
+
lib.CONFIG["source_video"] = args.source_video
|
|
298
|
+
lib.CONFIG["source_video_explicit"] = True
|
|
299
|
+
else:
|
|
300
|
+
# SOURCE_VIDEO is an ambient env var in lib.CONFIG. Do not let a stale
|
|
301
|
+
# shell value silently bind full-mode/direct timeline.json or JianYing
|
|
302
|
+
# exports to an unrelated original; cut mode must pass --source-video.
|
|
303
|
+
lib.CONFIG["source_video"] = ""
|
|
304
|
+
lib.CONFIG["source_video_explicit"] = False
|
|
305
|
+
if args.export_jianying:
|
|
306
|
+
lib.CONFIG["export_jianying"] = True
|
|
307
|
+
if args.jianying_bundle_media:
|
|
308
|
+
lib.CONFIG["jianying_bundle_media"] = True
|
|
309
|
+
if args.jianying_no_bundle_media:
|
|
310
|
+
lib.CONFIG["jianying_bundle_media"] = False
|
|
311
|
+
render_preflight._preflight_burn_subtitles() # fail before the render if burn-in is on but ffmpeg lacks libass
|
|
312
|
+
tts_meta = Path(args.tts_meta) if args.tts_meta else work_dir / "tts_meta.json"
|
|
313
|
+
tts_segments = json.loads(tts_meta.read_text(encoding="utf-8"))["segments"]
|
|
314
|
+
output_path = work_dir / "output.mp4"
|
|
315
|
+
assemble_video(args.video, tts_segments, work_dir, output_path)
|
|
316
|
+
assembly_qc = artifacts._load_work_json(work_dir, constants.ASSEMBLY_QC) or {}
|
|
317
|
+
if assembly_qc.get("blocking"):
|
|
318
|
+
codes = ", ".join(assembly_qc.get("blocking_codes") or ["unknown"])
|
|
319
|
+
raise SystemExit(f"组装 QC 阻断交付: {codes};详见 {work_dir / constants.ASSEMBLY_QC}")
|
|
320
|
+
stem = args.recap_stem or Path(args.video).stem
|
|
321
|
+
base = Path(args.output_dir) if args.output_dir else work_dir.parent
|
|
322
|
+
base.mkdir(parents=True, exist_ok=True)
|
|
323
|
+
final_output = assembly_contract._resolve_final_output(base, stem)
|
|
324
|
+
shutil.copy2(str(output_path), str(final_output))
|
|
325
|
+
manifest = assembly_contract._assembly_manifest_payload(
|
|
326
|
+
args.video, tts_segments, work_dir, output_path,
|
|
327
|
+
tts_meta_path=tts_meta,
|
|
328
|
+
final_output=final_output,
|
|
329
|
+
settings_fingerprint=assembly_settings.assembly_settings_fingerprint,
|
|
330
|
+
)
|
|
331
|
+
assembly_contract._write_assembly_manifest(work_dir, manifest)
|
|
332
|
+
lib.log(f"组装完成: {final_output}")
|
|
333
|
+
|
|
334
|
+
# OPTIONAL, decoupled: export a 剪映 draft from the timeline (lazy import; never
|
|
335
|
+
# required by the core render path).
|
|
336
|
+
if lib.CONFIG.get("export_jianying"):
|
|
337
|
+
from jianying_optional import _maybe_export_jianying
|
|
338
|
+
_maybe_export_jianying(work_dir, args.jianying_out, stem)
|
|
339
|
+
|
|
340
|
+
print(json.dumps({"status": "assembled", "output": str(final_output), "work_dir": str(work_dir)},
|
|
341
|
+
ensure_ascii=False))
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
if __name__ == "__main__":
|
|
345
|
+
main()
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Shared constants for the self-contained video-assemble skill."""
|
|
2
|
+
|
|
3
|
+
SUBTITLE_RENDER_VERSION = 8
|
|
4
|
+
SUBTITLE_TEXT_NORMALIZE_VERSION = 1
|
|
5
|
+
ASSEMBLY_MANIFEST = "assembly_manifest.json"
|
|
6
|
+
ASSEMBLY_QC = "assembly_qc.json"
|
|
7
|
+
VISUAL_QC = "visual_qc.json"
|
|
8
|
+
VISUAL_OVERLAYS = "visual_overlays.json"
|
|
9
|
+
SEGMENT_AUDIO_SCHEMA_VERSION = 1
|
|
10
|
+
FILTER_SCRIPT_THRESHOLD_BYTES = 8000
|
|
11
|
+
|
|
12
|
+
# The default subtitle metrics were tuned in this reference canvas.
|
|
13
|
+
SUBTITLE_STYLE_REF_W = 1280
|
|
14
|
+
SUBTITLE_STYLE_REF_H = 720
|
|
15
|
+
_SUBTITLE_TERMINAL_PUNCTUATION = "。!?!?…."
|
|
16
|
+
_SUBTITLE_CLOSING_QUOTES = "」』”’))]】》〉\"'"
|
|
17
|
+
|
|
18
|
+
_MIN_GAP_TO_SUBTITLE = 0.8
|
|
19
|
+
_MIN_READABLE_SECONDS = 0.3
|
|
20
|
+
_MIN_ASR_CLIP_OVERLAP = 0.05
|
|
21
|
+
_MAX_ORIGINAL_READ_CPS = 9.0
|
|
22
|
+
_AUTO_ORIGINAL_READ_CPS = 6.0
|
|
23
|
+
|
|
24
|
+
_VISUAL_DELIVERY_FORBIDDEN_KEYS = {
|
|
25
|
+
"video_encode_passes",
|
|
26
|
+
"reencode_reason",
|
|
27
|
+
"audio_sample_rate",
|
|
28
|
+
"final_compat_notes",
|
|
29
|
+
"double_encode",
|
|
30
|
+
"delivery_compatibility",
|
|
31
|
+
"loudness_mode",
|
|
32
|
+
"loudnorm_measurement",
|
|
33
|
+
}
|
|
34
|
+
_SUPPORTED_VISUAL_OVERLAY_TYPES = {"top_title", "inline_label_or_callout"}
|