Seedance 2 skill added

This commit is contained in:
Anil Matcha
2026-03-03 12:03:54 +05:30
parent eaaa750b4a
commit f88f5a9e79
3 changed files with 199 additions and 4 deletions
+73
View File
@@ -0,0 +1,73 @@
---
name: muapi-seedance-2
description: Expert Cinema Director skill for Seedance 2.0 (ByteDance) — high-fidelity video generation using technical camera grammar and multimodal references.
---
# 🎬 Seedance 2.0 Cinema Expert
**The definitive skill for "Director-Level" AI video orchestration.**
Seedance 2.0 is not a descriptive model; it is an *instructional* model. It responds best to technical cinematography, physics directives, and precise camera grammar.
## Core Competencies
1. **Instructional Framework**: Moving away from "what it looks like" to "how to shoot it."
2. **Multimodal Referencing**: Utilizing the `@tag` system (`@image1`, `@video1`, `@audio1`) for style, motion, and rhythm locking.
3. **Temporal Consistency**: Maintaining character, clothing, and environment stability through instructional "persistence" prompts.
4. **Audio-Visual Sync**: Native high-fidelity sound generation synchronized with visual motion.
---
## 🏗️ Technical Specification: The Director Brief
To get professional results, ALWAYS structure the prompt using this hierarchy:
| Component | Instruction Type | Example |
| :--- | :--- | :--- |
| **Scene** | Environment + Lighting | "A rain-soaked cyberpunk street, magenta neon reflections on wet asphalt." |
| **Subject** | Identity + Detail | "A woman in a black trenchcoat, determined focus, cinematic skin textures." |
| **Action** | Fluid Interaction | "Walking forward through the crowd, coat billowing slightly in the wind." |
| **Camera** | Movement + Lens | "Medium tracking shot, 35mm lens, slow dolly backward. Subtle handheld jitter." |
| **Style** | Mood + Intent | "Cinematic epic, warm color grade, shallow DOF, rack focus to subject's face." |
---
## 🧠 Prompt Optimization Protocol (Agent Instruction)
**The Agent MUST transform user intent into a technical "Director Brief" before execution.**
1. **Technical Grammar**: Use camera terms: *Dolly In/Out, Crane Shot, Whip Pan, Tracking Shot, Anamorphic Lens, Shallow Depth of Field*.
2. **Physics Directives**: Describe light behavior: Use "caustic patterns," "volumetric rays," or "subsurface scattering" instead of "good lighting."
3. **注文 references (Tags)**: If files are provided, refer to them explicitly: *"Replicate the camera movement trajectory of @video1 while maintaining the visual style of @image1."*
4. **ORDER MATTERS**: Tokens at the start define composition; tokens at the end define texture and micro-motion.
---
## 🚀 Protocol: Using Seedance 2
### Step 1: Initialize the Brief
Identify the cinematography style (e.g., *Epic Reveal*, *Tense Close-up*, *Slow Narrative*).
### Step 2: Invoke the Expert Script
Use the specialized script to ensure all technical metadata is passed correctly.
```bash
# Example: Generating an 'Epic Reveal' for a concept
bash scripts/generate-seedance.sh \
--subject "a hidden temple in the Andes" \
--intent "epic" \
--aspect "16:9" \
--view
```
---
## ⚠️ Constraints & Guardrails
- **No Keyword Soup**: DO NOT use "8k, masterpiece, trending." Use technical descriptions: "High-fidelity production grade, 24fps, cinematic grain."
- **Continuous Action**: Describe *one fluid motion*. Avoid "The man runs and then he stops and then he eats." Use "The man gradually transitions from a sprint to a sudden stop, chest heaving."
- **Face Stability**: If consistency is critical, include: *"Maintain high character consistency, zero facial flicker, persistent clothing details."*
---
## ⚙️ Implementation Details
This skill acts as a **Cinematographic Wrapper** for the `seedance-v2.0-t2v` model via the `muapi` core. It translates low-level creative intent into high-fidelity technical instructions.
@@ -0,0 +1,88 @@
#!/bin/bash
# Expert Skill: Seedance 2 Cinema Expert
# Translates creative intent into 'Director-Level' technical directives for Seedance 2.0.
SUBJECT=""
INTENT="cinematic"
ASPECT="16:9"
DURATION=5
QUALITY="basic"
AUDIO_FLAG=""
VIEW_FLAG=""
while [[ $# -gt 0 ]]; do
case $1 in
--subject) SUBJECT="$2"; shift 2 ;;
--intent) INTENT="$2"; shift 2 ;;
--aspect) ASPECT="$2"; shift 2 ;;
--duration) DURATION="$2"; shift 2 ;;
--quality) QUALITY="$2"; shift 2 ;;
--no-audio) AUDIO_FLAG="--no-audio"; shift ;;
--view) VIEW_FLAG="--view"; shift ;;
--help|-h)
echo "Seedance 2 Cinema Expert"
echo "Usage: bash generate-seedance.sh --subject 'description' [options]"
echo "Options:"
echo " --intent reveal|tense|epic|narrative (default: cinematic)"
echo " --aspect 16:9|9:16|1:1"
echo " --duration 5|10|15"
echo " --quality basic|high"
echo " --no-audio"
echo " --view"
exit 0 ;;
*) shift ;;
esac
done
if [ -z "$SUBJECT" ]; then
echo "Error: --subject is required."
exit 1
fi
# Director's Logistics & Grammar
case $INTENT in
"reveal")
MOVEMENT="Slow crane up and tilt down, wide shot."
LIGHTING="Volumetric god rays, golden hour atmosphere."
OPTICS="Deep focus, high clarity lens."
;;
"tense")
MOVEMENT="Handheld jittery movement, dutch angle close-up."
LIGHTING="Low key, harsh shadows, flickering magenta neon."
OPTICS="Shallow depth of field, anamorphic flare."
;;
"epic")
MOVEMENT="Dolly in with circular orbit, low angle."
LIGHTING="Dramatic rim lighting, high contrast cinematic grade."
OPTICS="Anamorphic 35mm, sharp focus on subject."
;;
"narrative")
MOVEMENT="Smooth tracking shot, following subject walking."
LIGHTING="Natural soft light, blue hour tones."
OPTICS="Standard 50mm, realistic bokeh."
;;
*)
MOVEMENT="Smooth cinematic pan, balanced framing."
LIGHTING="Natural studio lighting, balanced highlights."
OPTICS="Standard cinematic lens."
;;
esac
# Construct the technical Director Brief
DIRECTOR_PROMPT="[SCENE] $SUBJECT. [LIGHTING] $LIGHTING [ACTION] Fluid continuous motion. [CAMERA] $MOVEMENT [STYLE] $OPTICS High-fidelity production grade, 24fps. Maintain high character consistency, zero flicker."
# Call the Core primitive
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
CORE_SCRIPT="$SCRIPT_DIR/../../../../core/media/generate-video.sh"
if [ ! -f "$CORE_SCRIPT" ]; then
echo "Error: Core script not found at $CORE_SCRIPT"
exit 1
fi
bash "$CORE_SCRIPT" \
--prompt "$DIRECTOR_PROMPT" \
--model "seedance-v2.0-t2v" \
--aspect-ratio "$ASPECT" \
--duration "$DURATION" \
$AUDIO_FLAG $VIEW_FLAG --async --json
+38 -4
View File
@@ -18618,9 +18618,8 @@
}
},
{
"name": "seedance-2.0",
"category": "Image to Video",
"isComingSoon": true,
"name": "seedance-v2.0-t2v",
"category": "Text to Video",
"variant": "Seedance 2.0",
"family": "bytedance",
"group_of": "video",
@@ -18634,12 +18633,47 @@
"type": "string",
"title": "Prompt",
"description": "The prompt to generate the video"
},
"aspect_ratio": {
"enum": [
"16:9",
"9:16",
"1:1"
],
"title": "Aspect Ratio",
"name": "aspect_ratio",
"type": "string",
"description": "Aspect ratio of the output video.",
"default": "16:9"
},
"duration": {
"enum": [
5,
10,
15
],
"title": "Duration",
"name": "duration",
"type": "int",
"description": "The duration of the generated video in seconds",
"default": 5
},
"quality": {
"enum": [
"basic",
"high"
],
"title": "Quality",
"name": "quality",
"type": "string",
"description": "The quality of the generated video.",
"default": "basic"
}
},
"required": [
"prompt"
],
"endpoint_url": "seedance-2.0"
"endpoint_url": "seedance-v2.0-t2v"
}
}
}