#!/usr/bin/env python3
# 生成 源15（47.4s，10 段）逐段提示词：共享 header + 各段动作描述
from pathlib import Path

BASE = Path('/home/zyw/Downloads/dl-hub/10-视频生成流水线/20261007_0450_H3换人_源15武家坡_新人物_含二采')
header = (BASE / 'prompt_header.txt').read_text(encoding='utf-8')

TAIL = """
overall_soundscape:
Stage sound runs through the whole shot: the soft scuff and tap of sneakers on the hollow wooden stage, the light rustle of the pleated skirt and the knit top, a faint hum of the hall, and a quiet, distant auditorium beyond the front edge of the stage.

non_diegetic_music:
A warm modern score at a flowing dance tempo: a soft string pad and plucked strings under a light electronic beat, with a simple melodic phrase that repeats and grows slightly through the take.
"""

ACTIONS = [
# seg1 0 - 124  (0.00 - 5.17s)
"""At 0.00 seconds <Subject 2> is already in motion on the stage of <Subject 3>, framed in the same medium shot as <Video 1>, standing with her weight on her right leg, her right hand resting flat across her chest and her left arm relaxed beside the red shoulder bag, her chin level and a small closed-lip smile on her face as she looks towards the camera. She is already mid-routine instead of starting from the beginning. She takes one driving step forward and drops into a long low lunge, the front knee bent deep over the polished wood, her torso pitched forward and her right arm sweeping back and up behind her while the pleated skirt flares and the bag swings forward on its strap. She rises out of the lunge in one smooth turn, both arms lifting above her head with the hands crossing at the wrists and the skirt hem spinning out around her thighs. She finishes the turn facing the camera again with her arms still raised and her hair settling back onto her shoulders, her smile widening for a beat and her eyebrows lifting. Her white sneakers grip and pivot on the boards, warm spotlight beams from above catch the haze around her, and the crimson curtain behind her stays softly out of focus throughout. Warm light rakes across her left side and cool light fills her right, and the camera keeps the same slow drifting move as <Video 1>.""",
# seg2 124 - 248 (5.17 - 10.33s)
"""At 0.00 seconds <Subject 2> is already in the second part of the routine on the stage of <Subject 3>, framed in the same continuous shot as <Video 1>, her arms still lifted above her head from the previous turn and her weight rocking onto her toes, and she continues the sequence without starting over from the beginning. She sweeps both arms down and forward and folds from the hips into a deep forward bend, the back rounded and long, her hair hanging straight down and brushing past her knees while the pleated skirt drops over her thighs and the bag slides forward against her ribs. She stays low for a moment with her eyes lifted towards the camera, her lips curving into a small silent laugh, and one eyebrow lifting for a beat. She then rolls up through the spine, opens both arms out to the sides at shoulder height with the palms open, and takes two light steps sideways across the stage, the skirt swinging with each step and the bag bumping against her hip. She settles into a soft plié with both hands drawn in to her chest and her elbows out, chin slightly tipped down, eyes bright and a soft closed-lip smile on her face. Her sneakers squeak faintly on the wood, haze drifts through the beams above her, and the camera keeps the same smooth drifting move as <Video 1>.""",
# seg3 248 - 372 (10.33 - 15.50s)
"""At 0.00 seconds <Subject 2> is already turning again on the stage of <Subject 3>, framed in the same continuous shot as <Video 1>, both arms lifted high above her head with the hands tracing a wide arc and her hips leading the rotation, and she continues the sequence without starting over from the beginning. As the turn slows she comes back to face the camera, brings both arms down and folds them across her chest with the hands resting on opposite shoulders, and settles onto both feet with her weight even. She stands there for a breath with her head tipped slightly to one side, gives the camera a quick playful wink with one eye while the corner of her mouth lifts, then steps sideways with light quick feet, the pleated skirt flicking out and the red bag swinging on its long strap. She lifts one hand to flick her hair back over her shoulder, and her smile softens into an easy grin that reaches her eyes. Warm spotlights from above carve bright pools on the boards around her sneakers, cool light edges her shoulders, faint haze glows in the beams, and the camera keeps the same slow drifting move as <Video 1>.""",
# seg4 372 - 496 (15.50 - 20.67s)
"""At 0.00 seconds <Subject 2> is already opening into the next phrase on the stage of <Subject 3>, framed in the same continuous shot as <Video 1>, stepping onto her left foot with her chest lifting, and she continues the sequence without starting over from the beginning. She arches backwards into a long backbend, the chest open and the chin lifted, one arm sweeping up and over her head in a wide arc while the other trails down behind her waist; the pleated skirt presses against the front of her thighs and the bag slides around her hip. Her eyes narrow with pleasure and a low, quiet laugh shows on her face as she holds the arch for a moment. She unwinds out of the arch and sinks down into a low crouch, both hands coming together in front of her chest with the elbows tucked, knees bent wide over the wood, the skirt fanning out around her hips and her hair falling forward over one shoulder as she looks up at the camera with a bright, slightly mischievous smile. Warm light catches the top of her head and shoulders, the crimson curtain glows softly behind her, and the camera keeps the same smooth drifting move as <Video 1>.""",
# seg5 496 - 620 (20.67 - 25.83s)
"""At 0.00 seconds <Subject 2> is already rising out of the low pose on the stage of <Subject 3>, framed in the same continuous shot as <Video 1>, and she continues the sequence without starting over from the beginning. She takes two unhurried steps across the stage with both arms folded across her chest, the hands resting near the opposite collar, her hips swaying with the walk and the pleated skirt swinging in time, the bag knocking lightly against her side. She opens the arms into a relaxed pose with the elbows out and the hands still close to her chest, tips her head to one side and gives the camera a small, pleased smile, then lets the smile widen as she turns a quarter step to her right. She gathers herself, pushes off the boards and begins another slow turn with her hair lifting away from her shoulders and the skirt pleats opening like a fan. Her sneakers pivot softly on the wood, warm spotlights pool around her feet, and the camera keeps the same smooth drifting move as <Video 1>.""",
# seg6 620 - 744 (25.83 - 31.00s)
"""At 0.00 seconds <Subject 2> is already stepping long and low on the stage of <Subject 3>, framed in the same continuous shot as <Video 1>, one arm raised high above her head and the other reaching down and back behind her, and she continues the sequence without starting over from the beginning. Her front knee bends deep over the boards, the skirt hanging in clean pleats and the bag swinging out on its strap, and she holds the reach for a beat with her eyes on the camera and a small determined smile. She draws the raised arm down and recovers to profile, both hands coming together near her chest, shoulders square, chin level, her expression softening into an easy open smile. She then lifts one arm in a clean arc over her head while the other hand settles at her waist, weight shifting onto her back foot, and pauses there with her head tipped towards the raised shoulder. Warm and cool stage lights cross on her from both sides, haze drifts slowly through the beams, and the camera keeps the same smooth drifting move as <Video 1>.""",
# seg7 744 - 868 (31.00 - 36.17s)
"""At 0.00 seconds <Subject 2> is already walking forward across the stage of <Subject 3>, framed in the same continuous shot as <Video 1>, one arm extended out in front of her and the other hand resting at her waist, and she continues the sequence without starting over from the beginning. She opens both arms wide at shoulder height, the left one crossing lightly in front of her body, and lets her weight settle onto one leg so that the pleated skirt swings across her thighs and the bag slips to the front of her hip. Her chin lifts, her eyes brighten and she gives the camera a quick playful wink, the corner of her mouth pulling up, then lets her expression open into a warm grin. She pushes off into a clean side kick, the leg extending out to the side with a pointed foot while both arms swing up into a long diagonal, the skirt lifting and settling, and she lands softly back onto both sneakers. Warm light catches the moving pleats, the crimson curtain hangs still behind her, and the camera keeps the same smooth drifting move as <Video 1>.""",
# seg8 868 - 992 (36.17 - 41.33s)
"""At 0.00 seconds <Subject 2> is already holding a tall open pose on the stage of <Subject 3>, framed in the same continuous shot as <Video 1>, one arm raised diagonally above her head and the other reaching down and out to the side, weight on her front foot, and she continues the sequence without starting over from the beginning. She lets the pose settle with a soft exhale, her chest open, chin level and a calm smile on her face, eyes on the camera. She then folds forward from the hips into a deep bend, reaching both hands down towards the boards in front of her sneakers, back long and rounded, hair falling forward and the skirt dropping over her hips; she stays folded for a moment with her eyes lifted towards the lens and a small amused smile. She rolls up slowly through the spine, sweeping her arms out to the sides as she rises, and finishes standing tall with her shoulders back. Warm downlight glows along her arms, the polished boards reflect a soft sheen under her feet, and the camera keeps the same smooth drifting move as <Video 1>.""",
# seg9 992 - 1065 (41.33 - 44.38s) 73f
"""At 0.00 seconds <Subject 2> is already standing with both arms out to the sides on the stage of <Subject 3>, framed in the same continuous shot as <Video 1>, her weight soft and her torso leaning very slightly, and she continues the sequence without starting over from the beginning. Her head turns to follow her right hand as she begins to sweep that arm up and across her body, the pleated skirt shifting with the lean and the red bag resting against her hip. She keeps her eyes on the camera with a light, expectant smile and her eyebrows lifted for a beat, her hair sliding across her shoulder as she turns. Warm stage light picks out the edge of her raised arm and the moving pleats of the skirt, the crimson curtain and black masking stay softly out of focus behind her, and the camera keeps the same smooth drifting move as <Video 1>.""",
# seg10 1065 - 1138 (44.38 - 47.42s) 73f
"""At 0.00 seconds <Subject 2> is already carrying the last phrase of the routine on the stage of <Subject 3>, framed in the same continuous shot as <Video 1>, her right arm sweeping high overhead in a wide arc while her left hand stays open at her waist, and she continues the sequence without starting over from the beginning. She steps through the sweep and finishes in a graceful closing pose, both arms curved above her head with the hands open and the elbows softly rounded, chest lifted, chin slightly raised, one knee relaxed in front of the other on the boards. Her hair settles back over her shoulders, the pleated skirt falls still around her thighs and the red bag hangs quietly at her hip. She looks straight into the camera with a warm, relaxed smile that reaches her eyes, gives one small nod, and holds the pose as the take ends. Warm key light falls on her face, the haze in the beam softens the crimson curtain behind her, and the camera completes its drift and comes gently to rest."""
]

for i, act in enumerate(ACTIONS, 1):
    (BASE / f'prompt_seg{i}.txt').write_text(header + act + '\n' + TAIL, encoding='utf-8')
(BASE / 'prompt.txt').write_text(header + ACTIONS[0] + '\n' + TAIL, encoding='utf-8')
print('wrote', len(ACTIONS), 'segment prompts')
