Initial commit: ADO2 Hookit — 8초 후킹 숏폼 생성 파이프라인

3-엔진 오케스트레이션(Claude → Higgsfield → Remotion) PoC + 셀프 웹앱.
백엔드 개발자 핸드오프 문서(HANDOFF.md) 포함.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
o2oadminandClaude Opus 4.7 committed 2026-05-29 12:03:48 +09:00
commit 4deefff061
50 files changed
+5962

No files matched your search

+58
View File
@@ -0,0 +1,58 @@
# Prompt Templates
Higgsfield Image-to-Video API에 전달할 프롬프트 빌더.
## 구조
Higgsfield 프롬프트는 다음 4부로 구성:
1. **Subject Description** — 사진 내용 (자동 생성, Claude Vision 사용)
2. **Camera Motion** — 컨셉 프리셋에서 가져옴
3. **Style Modifiers** — 컨셉의 `style_keywords` 결합
4. **Negative Prompt** — 펜션 마케팅 가드레일
## 템플릿 예시
```jinja
# Cinematic Trailer 프롬프트
[SUBJECT]: {{ photo_caption }}
[MOTION]: {{ concept.camera_move }}, motion strength {{ concept.motion_strength }}
[STYLE]: {{ concept.style_keywords | join(", ") }}
[NEGATIVE]: distorted faces, extra fingers, fake text, brand logos,
structural deformation, watermarks, low quality
```
## 가드레일 (모든 컨셉 공통 Negative Prompt)
```
distorted human faces,
extra fingers, malformed hands,
fake text or signs,
competitor brand logos,
structural deformation of building,
fake amenities (pool, jacuzzi if not in source),
celebrities or recognizable people,
star ratings, fake reviews,
watermarks, low quality, blurry
```
## 펜션 사진 캡션 생성 (Claude Vision)
각 입력 사진에 대해 Claude Vision으로 다음 메타데이터를 추출:
```yaml
scene_type: "interior" | "exterior" | "nature" | "detail"
time_of_day: "day" | "golden_hour" | "night" | "dawn"
focal_element: "bed | window | view | texture | ..."
mood_keywords: ["cozy", "spacious", "wooden", ...]
structural_features: ["wooden_beams", "floor_to_ceiling_window", ...] # 보존 필수
```
이 메타데이터를 기반으로 프롬프트 빌더가 컨셉 매칭 점수를 계산 + 프롬프트 구성.
## TBD (W2 작성 예정)
- 컨셉별 jinja 템플릿 파일 5개 (`01_cinematic-trailer.j2` 등)
- 한글 자막 자동 생성 프롬프트 (Claude API)
- 음악 매칭 메타데이터 스키마
+90
View File
@@ -0,0 +1,90 @@
---
title: Camera Vocabulary & Keyframe Templates
status: v0.1 (2026-05-28)
note: Higgsfield 시그니처 카메라 프리셋은 웹 UI 전용. CLI에선 프롬프트 시네마토그래피 동사로 유도.
---
# Camera Vocabulary & Keyframe Templates
## 1. 카메라 무브 어휘 (CLI 프롬프트 동사)
각 무브의 영문 프롬프트 조각 + 모델 안정성 + 적합 Profile.
| 무브 | 프롬프트 조각 | 안정성 | Profile |
|---|---|---|---|
| `push_in_slow` | "very slow cinematic dolly push-in, smooth and steady" | ★★★★★ | A,B,C |
| `push_crash` (크래시줌) | "sudden fast crash zoom-in toward [subject], punchy and energetic" | ★★★ | A(액센트),B,C |
| `pull_back` | "slow dolly pull-back revealing the wider space" | ★★★★ | A,B |
| `orbit_L` / `orbit_R` | "smooth camera orbit moving [left/right] around [subject], parallax depth" | ★★★★ | B,C (A는 짧게) |
| `arc` | "gentle arc movement sweeping past [subject]" | ★★★ | B |
| `crane_up` / `crane_down` | "slow cinematic crane [up/down], revealing [from/to]" | ★★★ | A(미세),B |
| `dolly_through` | "camera dollying through [doorway/window/frame], entering the space" | ★★★ | A(Hook),B |
| `rack_focus` | "shallow depth of field rack focus shifting from foreground to background" | ★★★★ | A,B |
| `tilt_reveal` | "slow vertical tilt revealing [ceiling beams / full height]" | ★★★ | A,B |
| `dolly_zoom` (버티고) | "dolly zoom vertigo effect, background warping while subject stays" | ★★ | C |
| `fpv_drone` | "fast FPV drone fly-through, dynamic immersive motion" | ★★ | B,C |
| `handheld_drift` | "subtle handheld drift, organic micro-movement" | ★★★★ | A,B |
| `speed_ramp` | "speed ramp from slow motion snapping to real time" | ★★★ | A(액센트),B,C |
**안정성 ★★★ 이하는 키프레임(start/end)과 병행** 권장 → 모델이 궤적을 잡도록.
---
## 2. 키프레임 보간 기법 (`--start-image` / `--end-image`)
`generate create`는 두 키프레임을 받아 그 사이를 보간 → 방향성 있는 카메라무브·씬 모핑.
### 패턴 A — 방향성 무브 (한 씬 내 줌/앵글 변화)
```bash
higgsfield generate create <model> \
--prompt "smooth dolly push-in from wide shot to tight close-up of the shell pendant lamp" \
--start-image "wide_kitchen.jpg" \
--end-image "closeup_shelllamp.png" # 이미지모델로 생성한 클로즈업 스틸
--aspect_ratio "9:16" --duration 5
```
→ 와이드에서 클로즈로 빨려드는 의도된 무브. 단순 push보다 훨씬 정교.
### 패턴 B — 씬 모핑 트랜지션 (컷 N → 컷 N+1)
```bash
# 컷2의 마지막 프레임 = 컷3의 첫 프레임으로 연결
--start-image "cut2_lastframe.png" --end-image "cut3_firstframe.png"
```
→ 두 공간이 매끄럽게 모핑. Remotion 컷 트랜지션과 별개로 "생성형 트랜지션".
### end-frame 생성 (이미지 모델)
목표 프레임이 원본에 없을 때 이미지 모델로 제작:
```bash
higgsfield generate create nano_banana_2 \
--prompt "extreme close-up of the glowing shell-shaped pendant lamp, same room, same light" \
--image "스테이 머뭄 02.jpeg" --wait --json
# 또는 seedream_v4_5
```
→ 반환된 이미지 id를 video 생성의 `--end-image`로 사용.
---
## 3. 프롬프트 조립 공식
```
[CAMERA MOVE] + [SUBJECT/SCENE] + [LIGHT/MOOD] + [STYLE/LUT] + [GRAIN/DOF]
```
예 (Profile A, orbit+crash 액센트):
```
"smooth camera orbit-left around a glowing sculptural shell pendant lamp under
wooden vaulted ceiling beams, then a subtle crash zoom toward the lamp,
warm amber interior light, modern Korean stay kitchen, cinematic teal and
orange grade, shallow depth of field, subtle film grain, slow cinema"
```
### Negative(프롬프트 내 자연어로 — CS 계열은 negative 파라미터 없음)
구조 왜곡·가짜 텍스트·인물·없는 어메니티 회피를 프롬프트 끝에 명시하거나, negative 지원 모델(일부)만 별도 사용.
---
## 4. Profile별 컷 카메라 배정 가이드
- **A. Still Cinema**: [push_in_slow] ×2~3 + [push_crash 또는 speed_ramp] ×1~2 + [crane_down/rack_focus] 마감
- **B. Rhythm Reveal**: [orbit/arc/dolly_through] 교차 + [fpv/crane] 히어로 + [push] 연결
- **C. Maximum Viral**: [push_crash/dolly_zoom] 연타 + [fpv_drone] 1~2 + 하드컷
> 원칙: **연속 두 컷이 같은 무브를 반복하지 않는다.** (단조로움 방지 1순위 규칙)