ShotSketch 拍攝分鏡 是做什麼的?
Wajih Alkhiami 拍攝談話式的 Reels(關於電腦、手機、AI 工具)。在拍攝前,他想要一個可以在手機上打開的頁面:腳本被分割成各個鏡頭,並且每個鏡頭都有一張手繪草圖,顯示如何坐、攝影機在哪裡、他手裡拿著什麼,以及螢幕上顯示的文字。請使用敘利亞 Shami 方言與他交談,無論分鏡板使用的是哪種語言。
1. 主題與語言
如果他給了主題,就直接開始;否則,問一個簡短的問題。預設值(無需詢問):垂直 Reels 9:16,長度 25-45 秒,在桌前用手機拍攝。如果他指定了長度、平台或地點,則使用他指定的。
分鏡板語言 → JSON 中的 lang:
ar(預設):使用敘利亞 Shami 方言的腳本,口語且簡單。en:用於 Reels/Shorts 的自然、隨興的英語。de:隨興的德語,使用「du」形式,就像德國創作者說的那樣。fr:隨興的法語,使用「tu」。 選擇他提到的語言(「بالإنجليزي」、"in German"、「بالفرنساوي」…)。他在頁面上讀到的所有內容(腳本、螢幕文字、動作、設定提示、鏡頭名稱、標題)都將使用該語言書寫;界面標籤會自動切換。如果他要求兩種語言,則每種語言製作一個分鏡板。
2. 逐個鏡頭編寫腳本
- 口語化的短句。每個鏡頭 2-7 秒 = 一或兩個句子。
- 第一個鏡頭是鉤子(hook)(≤3 秒):一個驚喜、一個承諾或一個問題。近景構圖,
rays: true、move: "zoom-in"。 - 共 5-9 個鏡頭。每個鏡頭都要改變構圖或攝影機角度(近景 → 中景 → 俯拍 → 遠景…),永遠不要連續兩次使用相同的構圖。
- 當他展示鍵盤、手機螢幕或紙張上的內容時,使用俯拍視角(
view:"top")。 - 最後一個鏡頭:一個清晰的行動呼籲(儲存/追蹤/留言),使用分鏡板的語言。
- 關於軟體的事實(快捷鍵、選單、價格)必須正確;如果不確定,請搜尋網路。當該語言版本的軟體選單名稱不同時,請使用該語言的選單名稱。
3. 填入分鏡板 JSON
{
"lang": "ar",
"title": "ريل: …",
"platform": "ريلز / شورتس عمودي",
"setup": ["手機放置位置", "燈光", "要準備的道具", "一個拍攝技巧"],
"shots": [
{"name":"الهوك","seconds":3,"view":"front","framing":"close","pose":"talk","mood":"surprised","rays":true,
"onscreen":"ما حدا قلك!","say":"…他所說的話…","action":"…如何坐/做什麼…","move":"zoom-in","edit":"可選的剪輯筆記"}
],
"footer": "Wajih Alkhiami · ShotSketch"
}
允許的值(其他任何值都會破壞建置):
lang:ar·en·de·frview:front(預設)·top(攝影機在桌面上方,僅顯示雙手 + 物體)camera(僅標籤,正面視角):front·side·low·otsframing(正面視角):close(臉部)·medium(半身,預設)·wide(整張桌子)pose:rest·talk·point(指向上方的螢幕文字)·point-down(指向桌面)·phone(將手機舉向鏡頭)·laptop(雙手放在闔上的筆電上)·hands-up·chin(思考狀)mood:smile·surprised·serious·thinkingprops:laptop-closed·laptop-open·phone·mug·plant·papermove:none·zoom-in·zoom-out·pan-left·pan-right·tilt-down·handheldonscreen:≤ 16 個字元,它會被大字繪製在草圖上。可以提供glasses: true、beard: false等可選設定。setup包含 3-5 行實用說明(手機高度、來自前方窗戶的光線、道具、每個鏡頭拍攝 2-3 次,每次結尾保留一秒靜音)。
4. 建立頁面
將下面的模板寫入 template.html(精確寫入,因為它會被測試),並將建置器寫入 build.py,兩者都在工作目錄中。然後執行:
python3 build.py board.json storyboard.html
建置器會檢查語言、姿勢和道具,如果不符合允許的清單就會失敗並顯示錯誤;修正 JSON 後重新執行。如果瀏覽器可用,請以手機寬度(約 420px)截取頁面截圖並檢查:草圖是否繪製完成、文字方向是否正確(阿拉伯文從右到左,其他語言從左到右)、沒有任何內容被截斷。
字型:標題、口語台詞和螢幕文字使用 Cairo;正文字體使用 IBM Plex Sans Arabic(兩者也都涵蓋拉丁字符)。請保留這些字型;Wajih 發現裝飾性字型難以閱讀。
將 storyboard.html 作為一件成品發布,標題為「ShotSketch · <主題>」,圖示為 video。每個鏡頭都有一個複選框,可在拍攝時勾選(僅儲存在他的瀏覽器中)。
5. 回覆
用 Shami 方言寫兩到三行:主題、語言、鏡頭數量、總秒數,並說明拍攝後他可以發送片段,你會幫他剪輯。不要在聊天中重複腳本。
建置器:build.py
#!/usr/bin/env python3
"""將分鏡板 JSON 填入故事板模板。
用法:python3 build.py board.json out.html
"""
import json, sys, pathlib, html
here = pathlib.Path(__file__).resolve().parent
tpl = (here / "template.html").read_text(encoding="utf-8")
board = json.loads(pathlib.Path(sys.argv[1]).read_text(encoding="utf-8"))
LANGS = {"ar", "en", "de", "fr"}
if board.get("lang", "ar") not in LANGS:
sys.exit(f"未知的語言 {board.get('lang')}(請使用 {sorted(LANGS)})")
POSES = {"rest", "point", "point-down", "talk", "phone", "laptop", "hands-up", "chin"}
PROPS = {"laptop", "laptop-open", "laptop-closed", "phone", "mug", "plant", "paper"}
for i, s in enumerate(board["shots"], 1):
if s.get("pose", "rest") not in POSES:
sys.exit(f"鏡頭 {i}:未知的姿勢 {s.get('pose')}(請使用 {sorted(POSES)})")
bad = set(s.get("props", [])) - PROPS
if bad:
sys.exit(f"鏡頭 {i}:未知的道具 {bad}(請使用 {sorted(PROPS)})")
data = json.dumps(board, ensure_ascii=False).replace("</", "<\\/")
out = tpl.replace("__BOARD_JSON__", data).replace("__TITLE__", html.escape(board["title"]))
pathlib.Path(sys.argv[2]).write_text(out, encoding="utf-8")
print("已建立", sys.argv[2], "共", len(board["shots"]), "個鏡頭")
模板:template.html
<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>__TITLE__</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Cairo:wght@600;800;900&family=IBM+Plex+Sans+Arabic:wght@400;500;700&display=swap">
<style>
:root{color-scheme:light;--paper:#f6f1e7;--ink:#1d1d1f;--accent:#f08a3c;--blue:#2c5fa8;--card:#fffdf8;--muted:#7a7266}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font-family:"IBM Plex Sans Arabic","Cairo","Tajawal",system-ui,sans-serif;line-height:1.75;font-size:16px}
header{padding:22px 18px 8px;max-width:760px;margin:auto}
h1,h2,h3,.num,.say,.ost{font-family:"Cairo","IBM Plex Sans Arabic",system-ui,sans-serif}
h1{font-size:26px;margin:0 0 4px;line-height:1.4}
.meta{color:var(--muted);font-size:14px}
.box{background:var(--card);border:2px solid var(--ink);border-radius:14px;padding:12px 14px;margin:14px 0;box-shadow:4px 4px 0 var(--ink)}
.box h2{font-size:17px;margin:0 0 6px}
.box ul{margin:0;padding-inline-start:20px}
main{max-width:760px;margin:auto;padding:0 14px 40px}
.shot{background:var(--card);border:2px solid var(--ink);border-radius:16px;margin:22px 0;box-shadow:5px 5px 0 var(--ink);overflow:hidden}
.shot.done{opacity:.55}
.shot-head{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:2px dashed #cfc6b6}
.num{background:var(--accent);color:#fff;font-weight:900;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;flex:none}
.shot-head h3{margin:0;font-size:17px;flex:1}
.dur{font-size:13px;color:var(--muted);white-space:nowrap}
.shot-body{display:grid;grid-template-columns:minmax(150px,210px) 1fr;gap:14px;padding:14px}
@media(max-width:520px){.shot-body{grid-template-columns:1fr}.sketch{max-width:240px;margin:auto}}
.sketch svg{width:100%;height:auto;display:block;background:#fff;border:2px solid var(--ink);border-radius:10px}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;justify-content:center}
.chip{font-size:13px;background:#efe7d8;border-radius:20px;padding:2px 10px}
.say{font-size:18px;font-weight:700;background:#fff6ea;border-inline-start:5px solid var(--accent);padding:8px 12px;border-radius:8px}
.label{font-size:12px;color:var(--muted);margin-top:10px}
.ost{font-weight:800;color:var(--blue)}
.tip{font-size:16px}
label.check{display:flex;gap:8px;align-items:center;margin-top:12px;font-size:14px;cursor:pointer}
label.check input{width:20px;height:20px;accent-color:var(--accent)}
footer{text-align:center;color:var(--muted);font-size:12px;padding-bottom:30px}
</style>
</head>
<body>
<header>
<h1 id="t"></h1>
<div class="meta" id="m"></div>
<div class="box" id="setup"></div>
</header>
<main id="shots"></main>
<footer id="f"></footer>
<script>
/* ======== 資料:Claude 只填入這個物件 ======== */
const BOARD = __BOARD_JSON__;
/* ===================================================== */
const NS="http://www.w3.org/2000/svg";
const W=270,H=480,CX=135;
const ink="#1d1d1f",accent="#f08a3c";
function el(tag,attrs,parent){const e=document.createElementNS(NS,tag);for(const k in attrs)e.setAttribute(k,attrs[k]);if(parent)parent.appendChild(e);return e}
function path(g,d,o={}){return el("path",{d,fill:o.fill||"none",stroke:o.stroke||ink,"stroke-width":o.w||3,"stroke-linecap":"round","stroke-linejoin":"round",...(o.dash?{"stroke-dasharray":o.dash}:{})},g)}
function rays(g,cx,cy){
for(let i=0;i<9;i++){
const a=Math.PI*(1+i/8);const r1=58,r2=r1+30+(i%2)*14;
path(g,`M${cx+Math.cos(a)*r1},${cy+Math.sin(a)*r1} L${cx+Math.cos(a)*r2},${cy+Math.sin(a)*r2}`,{stroke:accent,w:10});
}
}
function head(g,cx,cy,o){
const r=32;
el("circle",{cx,cy,r,fill:"#fff",stroke:ink,"stroke-width":3},g);
path(g,`M${cx-r+2},${cy-8} Q${cx-r+4},${cy-r-10} ${cx},${cy-r-6} Q${cx+r-4},${cy-r-10} ${cx+r-2},${cy-8} Q${cx+12},${cy-r+4} ${cx-r+2},${cy-8}`,{fill:ink,w:2});
if(o.beard!==false)path(g,`M${cx-r+3},${cy+4} Q${cx-r+6},${cy+r+12} ${cx},${cy+r+12} Q${cx+r-6},${cy+r+12} ${cx+r-3},${cy+4}`,{w:3});
el("circle",{cx:cx-11,cy:cy-2,r:2.6,fill:ink},g);el("circle",{cx:cx+11,cy:cy-2,r:2.6,fill:ink},g);
if(o.glasses){el("circle",{cx:cx-11,cy:cy-2,r:8,fill:"none",stroke:ink,"stroke-width":2},g);el("circle",{cx:cx+11,cy:cy-2,r:8,fill:"none",stroke:ink,"stroke-width":2},g);path(g,`M${cx-3},${cy-2} L${cx+3},${cy-2}`,{w:2})}
const mood=o.mood||"smile";
if(mood==="smile")path(g,`M${cx-10},${cy+12} Q${cx},${cy+21} ${cx+10},${cy+12}`,{w:2.5});
else if(mood==="surprised")el("ellipse",{cx,cy:cy+15,rx:5,ry:7,fill:"none",stroke:ink,"stroke-width":2.5},g);
else if(mood==="serious")path(g,`M${cx-9},${cy+15} L${cx+9},${cy+15}`,{w:2.5});
else if(mood==="thinking"){path(g,`M${cx-8},${cy+15} Q${cx+2},${cy+11} ${cx+9},${cy+16}`,{w:2.5});path(g,`M${cx-17},${cy-14} L${cx-5},${cy-11}`,{w:2})}
}
function body(g,cx,y){ // y = 肩線
path(g,`M${cx-8},${y-16} L${cx-8},${y-4} M${cx+8},${y-16} L${cx+8},${y-4}`,{w:2.5});
path(g,`M${cx-78},${y+95} Q${cx-74},${y+6} ${cx-22},${y-4} L${cx+22},${y-4} Q${cx+74},${y+6} ${cx+78},${y+95}`,{fill:"#fff"});
path(g,`M${cx-14},${y-4} L${cx},${y+16} L${cx+14},${y-4}`,{w:2.5});
}
function hand(g,x,y){el("ellipse",{cx:x,cy:y,rx:10,ry:8,fill:"#fff",stroke:ink,"stroke-width":3},g)}
function phone(g,x,y,s=1){el("rect",{x:x-11*s,y:y-19*s,width:22*s,height:38*s,rx:4*s,fill:"#fff",stroke:ink,"stroke-width":3},g);path(g,`M${x-4*s},${y+14*s} L${x+4*s},${y+14*s}`,{w:2})}
function arms(g,cx,y,pose,tableY){
const Ls=[cx-58,y+14],Rs=[cx+58,y+14];
const rest=(s,hx)=>{path(g,`M${s[0]},${s[1]} Q${s[0]+(hx<cx?-12:12)},${tableY-30} ${hx},${tableY-4}`);hand(g,hx,tableY-4)};
switch(pose){
case "point": rest(Ls,cx-48);
path(g,`M${Rs[0]},${Rs[1]} L${cx+92},${y-30} L${cx+104},${y-78}`);hand(g,cx+104,y-84);path(g,`M${cx+106},${y-92} L${cx+112},${y-112}`,{w:4});break;
case "point-down": rest(Ls,cx-48);
path(g,`M${Rs[0]},${Rs[1]} Q${cx+70},${tableY-20} ${cx+40},${tableY+4}`);hand(g,cx+40,tableY+6);path(g,`M${cx+34},${tableY+12} L${cx+26},${tableY+26}`,{w:4});break;
case "talk": rest(Ls,cx-48);
path(g,`M${Rs[0]},${Rs[1]} Q${cx+86},${y+60} ${cx+60},${y+38}`);el("ellipse",{cx:cx+56,cy:y+30,rx:11,ry:13,fill:"#fff",stroke:ink,"stroke-width":3},g);
path(g,`M${cx+76},${y+18} l8,-6 M${cx+78},${y+30} l10,0`,{w:2.5,stroke:accent});break;
case "phone":
path(g,`M${Ls[0]},${Ls[1]} Q${cx-50},${y+70} ${cx-20},${y+52}`);path(g,`M${Rs[0]},${Rs[1]} Q${cx+50},${y+70} ${cx+20},${y+52}`);
phone(g,cx,y+40,1.2);hand(g,cx-18,y+54);hand(g,cx+18,y+54);break;
case "laptop": path(g,`M${Ls[0]},${Ls[1]} Q${cx-84},${tableY-10} ${cx-64},${tableY+22}`);hand(g,cx-64,tableY+24);path(g,`M${Rs[0]},${Rs[1]} Q${cx+84},${tableY-10} ${cx+64},${tableY+22}`);hand(g,cx+64,tableY+24);break;
case "hands-up":
path(g,`M${Ls[0]},${Ls[1]} L${cx-92},${y-20} L${cx-96},${y-60}`);hand(g,cx-96,y-66);
path(g,`M${Rs[0]},${Rs[1]} L${cx+92},${y-20} L${cx+96},${y-60}`);hand(g,cx+96,y-66);break;
case "chin": rest(Ls,cx-48);
path(g,`M${Rs[0]},${Rs[1]} Q${cx+60},${y+40} ${cx+26},${y-14}`);hand(g,cx+24,y-18);break;
default: rest(Ls,cx-48);rest(Rs,cx+48);
}
}
function table(g,y){path(g,`M-300,${y} L${W+300},${y} L${W+300},${H+300} L-300,${H+300} Z`,{fill:"#efe7d8",w:0});path(g,`M-300,${y} L${W+300},${y}`,{w:3.5})}
function laptopClosed(g,cx,y){path(g,`M${cx-70},${y+12} L${cx+70},${y+12} L${cx+86},${y+34} L${cx-86},${y+34} Z`,{fill:"#d9d4cc"});el("circle",{cx,cy:y+23,r:4,fill:ink},g)}
function laptopOpen(g,cx,y){path(g,`M${cx-70},${y-66} L${cx+70},${y-66} L${cx+70},${y+6} L${cx-70},${y+6} Z`,{fill:"#d9d4cc"});el("circle",{cx,cy:y-30,r:5,fill:ink},g);path(g,`M${cx-84},${y+6} L${cx+84},${y+6} L${cx+92},${y+16} L${cx-92},${y+16} Z`,{fill:"#bdb6aa"})}
function mug(g,x,y){path(g,`M${x-12},${y-26} L${x+12},${y-26} L${x+10},${y} L${x-10},${y} Z`,{fill:"#fff"});path(g,`M${x+12},${y-20} q10,4 0,12`,{w:2.5});path(g,`M${x-4},${y-34} q-3,-6 0,-10 M${x+4},${y-34} q-3,-6 0,-10`,{w:2,stroke:"#999"})}
function plant(g,x,y){path(g,`M${x-12},${y-20} L${x+12},${y-20} L${x+9},${y} L${x-9},${y} Z`,{fill:"#fff"});path(g,`M${x
…
[為翻譯而截斷]