انتقل إلى المحتوى

انسى Claude ومنتج فيديوهاتك بالأداة المجانية دي

البرومت الكامل اللي منتجت بيه انترو يوتيوب باستخدام OpenCode ونموذج مجاني مع HyperFrames، مع روابط الأدوات وخطوات التشغيل.

البرومت المستخدم في الفيديو

نفس البرومت اللي استخدمته مع Claude ومع OpenCode. هتشوف معاينة قصيرة بس، وزر النسخ بينسخ النص كامل، وتقدر تحمّله كملف.

opencode-hyperframes-intro-prompt.txt

You are a senior video editor, motion designer and HyperFrames engineer working on my machine. Turn the talking-head clip `intromanustest.mp4` (I'll give you its path) into a premium Arabic (Egyptian) YouTube intro, about 31–32 s.

The headline feature: while I talk about AI apps, their official logos appear one by one and float BEHIND me (between me and the room).

Work autonomously. The only pause is the Studio preview for my approval before the final render.

## 0. Setup — check first, install whatever is missing

Check each item. If it's missing, install it (use winget/choco/scoop on Windows, brew on macOS, apt on Linux, or pip/npm), then confirm it runs:

- **Node.js ≥ 22** + npm/npx (`node -v`).
- **ffmpeg + ffprobe**, a full build with libx264, libx265, libvpx-vp9 (`ffmpeg -encoders`).
- **Python 3.10+** with numpy (`pip install numpy`).
- **HyperFrames CLI**, pinned so the project stays reproducible: `npx --yes hyperframes@latest --version`. Use that exact version (`npx hyperframes@<ver>`) for every command.
- **HyperFrames skills.** Run:

  ```
  npx hyperframes skills update general-video
  npx hyperframes skills update hyperframes-core hyperframes-animation hyperframes-keyframes media-use hyperframes-audio hyperframes-cli hyperframes-registry
  ```

  Read `/hyperframes`, `/general-video` and `/hyperframes-core` before writing any composition.
- **Speech tools for Arabic word timing.** Use `npx hyperframes transcribe` (whisper) and add a forced aligner for word-level accuracy. For example:

  ```
  pip install whisperx
  ```

  or `pip install ctc-forced-aligner` (an MMS-based Arabic aligner). If `hyperframes transcribe` needs whisper.cpp, let it install its runtime. Use a large multilingual model (`large-v3`, `--language ar`), not an `.en` model.
- **Background removal.** Run `npx hyperframes remove-background --info`. Its model downloads on first use.
- **Font.** Cairo (Google Fonts, weights 500/700/900): download the TTF files into the project's `assets/fonts`. Rendering must not need the network.
- **Disk.** If the system drive has < 15 GB free, point `TMP`/`TEMP` and `HYPERFRAMES_EXTRACT_CACHE_DIR` to a folder on a drive that has space.

Then create the project:

```
npx hyperframes@<ver> init intro-edit --non-interactive --example=blank --skill=general-video
```

Copy the footage into `assets/`.

## 1. Inspect the footage yourself

- `ffprobe` the file. It should be about 1920×1080, 30000/1001 fps, HEVC, AAC 44.1 kHz, ≈32.4 s. Keep its frame rate; every cut and animation boundary must land on a frame (1 frame = 1001/30000 s).
- Make a contact sheet (1 fps) and dense frames of the first 2 s.
- Measure on real frames:
  - the face centre (camera anchor)
  - where the phone is while I hold it up (it is raised on «على الموبايل»)
  - the silhouette edges of my shoulders and arms
- Transcribe + force-align to get WORD-level onsets. Then correct the text to exactly this. Never display misheard words:

  أنا عندي على الموبايل بتاعي كذا تطبيق ذكاء اصطناعي، وكل واحد فيهم بستخدمه لحاجة مختلفة: شات جي بي تي للمهام اليومية وعمل الصور، جيميناي لتحليل الصور والفيديوهات، نوت بوك إل إم لما أكون عايز أبحث عن حاجة في مصادر معيّنة، وأخيرًا تطبيقات تانية للصور والفيديوهات والريسيرش وغيره. عشان كده في الفيديو ده حابب أختبر حاجة، وهي إن هل في تطبيق واحد بس أقدر أعمل عليه صور وفيديوهات وريسيرش وحاجات تانية كتير، وكله من مكان واحد؟ فتعالوا نعرف الإجابة على السؤال ده في الفيديو.

- Cross-check every important onset against the per-frame RMS of the audio. When the aligner groups words, find the real gap in the energy; never invent intra-phrase times.
- Save the aligned word list as JSON in `transcript/`.

## 2. Cut

- Find the pauses (per-frame RMS < −40 dB, ≥ 7 frames). Remove only the middle of the pauses that sit at idea boundaries (before ChatGPT, NotebookLM, «وأخيرًا», «عشان كده», «هل في», «بس أقدر», «أعمل عليه», «وحاجات», «فتعالوا»).
- Keep 2–4 frames of room on each side. Expect ≈ 1.2 s removed in total.
- Render ONE frame-exact A-roll `assets/aroll_edit.mp4` (ffmpeg `trim` by frame + `concat`, H.264 CRF 12). Cut the dialogue with identical ranges (sample-accurate, 4 ms fades at joins).
- Each cut must be hidden by a hard crop change (§5) or sit under the full-screen scene. No visible jump cuts.
- The clip ends right after «في الفيديو». Freeze the last frame (an `<img>` under the video) for ~12 frames. Never end on black.
- Write `TIMING_MAP.md`: kept ranges, removed ranges, and every word remapped to OUTPUT frames. Author all animation times from those output frames.

## 3. Logos BEHIND me (the key feature)

- Run `npx hyperframes@<ver> remove-background assets/aroll_edit.mp4 -o assets/presenter_cutout.webm --quality best` in the background (it's slow on CPU).
- In `index.html`, build one NON-timed camera wrapper `#cam` (transform-origin = the measured face centre). Inside it, in this order:
  1. the freeze `<img>`
  2. the A-roll `<video class="clip" data-start=0 data-media-start=0 muted>`
  3. the logo sub-composition host
  4. a non-timed `<div id="cutout-wrap">` containing the cutout `<video class="clip" data-start=0 data-media-start=0 muted>`

  Plate and cutout share one decode window, so they never drift.
- Show the cutout only while logos exist: animate the wrapper's opacity, never the video's.
- Size the videos and the freeze by id, not with a `#cam img` rule: that rule would also enlarge the logo images.
- Logos (official only, never redrawn): `npx hyperframes@<ver> media-use resolve --type logo --entity <name> --intent "<name> logo" --project .` for openai (ChatGPT), googlegemini, notebooklm, claude, perplexity, midjourney, runway, grok, deepseek.
- Show each as a phone-style app-icon tile:
  - radius 24%, mark at 58%
  - soft shadow `0 18px 38px rgba(10,12,13,.42)`
  - thin inner highlight
- Tile backgrounds: ChatGPT white mark on #0F0F0F · Gemini on white (fill the official path with a blue → purple → pink gradient) · NotebookLM white on #111 · Claude cream mark on #D97757 · Perplexity on #0B1F22 · Midjourney on #0F0F0F · Runway / Grok on black · DeepSeek on white.
- Placement: around my head and shoulders like app icons orbiting me.
  - Two big tiles (≈220px) upper-left and upper-right of my head, for ChatGPT and Gemini.
  - The rest 150–190px in the side spaces.
  - Two of them (Grok and Perplexity) tucked partly behind my shoulders so the depth reads.
  - Never over my face. Everything inside the area that stays visible at 1.12× zoom.
- Every tile has a gentle, finite float (±6px, 1.5–2.2 s, a different phase per tile).

## 4. Design system

- Colours: cream #FFFDF8 · ink #171C1E · ink-soft #31383A · orange #F56A00 · orange-dark #D85800 · cyan #1B9DB5 · yellow #F5A800 · paper-light #F7F1E8 · paper-dark #D7CCBC.
- Font: Cairo, embedded via `@font-face` with `font-display: block` in EVERY composition. Weight 900 for hero Arabic, 700 for labels/chips/Latin names. RTL; animate whole words or phrases only, never letters. No `<br>`. Keep 80/60px safe margins. Text never covers my eyes or mouth, or my hands mid-gesture.
- Hero text:
  - cream, 104–112px
  - glow `0 0 18px rgba(255,253,248,.55), 0 0 44px rgba(255,253,248,.2), 0 4px 20px rgba(23,28,30,.75)`
  - on a soft elliptical radial dark scrim, never a box
  - accent word: warm white with an orange bloom (`0 0 16px #F56A00, 0 0 42px rgba(245,106,0,.6)`)
  - entrance: masked rise (y + blur → sharp, ~0.26 s, `expo.out`)
- Cards:
  - dark glass `rgba(23,28,30,.82)`, radius 26px, 3px orange border with an orange glow
  - small orange index (01…)
  - rows = a 70px icon box with cream rounded line icons that draw on (`pathLength=1`, `strokeDashoffset` 1 → 0)
  - before a row's words are spoken, it shows a faint skeleton bar instead of empty space
- Timing rules for every graphic:
  - start 2–4 frames before the word onset, fully readable ON the onset
  - readable ≥ 0.75 s
  - cleared before the next unrelated phrase
  - no continuous subtitles
- HyperFrames determinism:
  - one paused GSAP timeline per composition, on `window.__timelines["<id>"]`
  - `fromTo` with `immediateRender:false` for later tweens of the same property
  - initial hidden states in CSS
  - no `Math.random` / `Date.now`, finite repeats
  - every scene is a sub-composition in a `<template>`, with ids prefixed per composition

## 5. Camera (animate `#cam` only; hard crop changes land exactly on frames)

- Start: smooth push 1.00 → 1.12, 0.75 s, `expo.out`, hold.
- Hard crop changes:
  - «وكل واحد» → 1.00
  - ChatGPT (on the cut) → 1.08
  - Gemini → 1.00
  - NotebookLM (cut) → 1.08
  - «وأخيرًا» (cut) → 1.00
  - «عشان كده» (cut) → 1.06
- Whip into the full screen (3 frames): scale ×1.37 + blur 22px, `power2.in`.
- Hard cut back on «فتعالوا»: 1.08, face shifted ~70px left.
- «ده في الفيديو»: punch to 1.13, then a slow linear drift to 1.145 until the end.

## 6. Scenes (each a sub-composition, timed to YOUR measured onsets)

1. **Phone hook.**
   - On «على الموبايل»: a dark-glass pill chip with a cyan border (phone icon + «على الموبايل») beside the phone, plus a cyan connector line drawing to the phone in my hand. It holds while the phone is up.
   - As I say «كذا»: four glass placeholder tiles burst out of the phone (scale 0.16 → 1, slight rotation, 3-frame stagger, `expo.out`) and settle behind me in the slots of ChatGPT, Gemini, NotebookLM and Runway.
     - The placeholders are dark glass with a cream border and line icons: chat bubble, scan-eye, document + magnifier, play frame.
   - Centre hero «كذا تطبيق ذكاء اصطناعي» («ذكاء اصطناعي» accent). It exits with a quick upward sweep + light streak.
   - Then the kicker «كل واحد فيهم» while the placeholders pulse orange one after another, and «لحاجة مختلفة» («مختلفة» accent) on its onset.

2. **App stack.** Naming an app flips its tile (3D, ~3 + 6 frames) from placeholder to the official logo. The logo glows orange and scales 1.12 while the others dim to 55%. A card beside it:
   - ChatGPT: card 01 on the left, rows «المهام اليومية» (checklist icon), «عمل الصور» (image icon).
   - Gemini: card 02 on the right, «تحليل الصور والفيديوهات» (scan icon).
   - NotebookLM: card 03 on the right, «أبحث» then «في مصادر معيّنة» on its onset (doc + magnifier icon).
   - «وأخيرًا تطبيقات تانية»: Runway flips, and Claude, Midjourney, Perplexity, Grok and DeepSeek pop in (spring, staggered). Card 04 bottom-left «تطبيقات تانية», with pill chips landing on their words: «صور» → lights Midjourney, «فيديوهات» → Runway, «ريسيرش» → Perplexity, then «+».
   - Each card leaves in the pause before the next app.

3. **The test.** The logo wall recedes (78% opacity, slight blur).
   - Kicker «في الفيديو ده» with a small orange play badge.
   - «حابب أختبر حاجة» («أختبر» accent), with a cream line-drawn flask that fills orange and bubbles.
   - On «وهي إن» every logo is pulled to one point behind my head.
   - The overlay rides the whip into the full screen.

4. **Full screen** (≈20–23% of the runtime). Paper-light world: #F7F1E8, a subtle ink dot grid, ink outlines, cyan connectors, orange emphasis. The whip lands with a short settle.
   - Top headline «هل في تطبيق واحد؟» («واحد؟» orange).
   - The nine logo tiles in a ring collapse into ONE orange app icon with a cream «؟».
   - On «بس أقدر» a phone outline draws around it.
   - Satellite tiles dock with cyan wires, each on its word: «صور», «فيديوهات», «ريسيرش», «حاجات تانية» (dark tile with +), plus 3 small icon tiles on «كتير». The app pulses on each docking.
   - On «وكله من مكان واحد»: everything is absorbed into the app, which glows, and the headline becomes «وكله من مكان واحد» («مكان واحد» orange), with one gentle camera push that keeps the phone clear of the headline.
   - No fake UI, chats or metrics.

5. **The answer = the closing shot.** Hard cut back on «فتعالوا».
   - Right column: the orange «؟» app as a badge, with «فتعالوا نعرف», then a big glowing «الإجابة».
   - On «في الفيديو»: the badge flips to ▶, «في الفيديو ده» rises, and an orange underline + two diamonds lock up.
   - Hold through the freeze to the last frame.

## 7. Audio

- Dialogue:
  1. high-pass 75 Hz
  2. −2 dB @ 250 Hz
  3. 2.5:1 gentle compression
  4. limiter
  5. two-pass linear loudnorm to −14 LUFS, TP ≤ −1.5
  - Keep it sample-aligned with the picture and continuous under the full screen.
- No music.
- Subtle SFX (via `media-use resolve --type sfx` or the bundled library), volumes 0.10–0.28, on:
  - logo burst (whoosh)
  - each app flip (pop)
  - the others popping in
  - whip (whoosh)
  - the one-app pop
  - absorption (click)
  - answer badge (pop)
  - an impact peaking on the final ▶
- Every `<audio>` needs an id.

## 8. Verify, then stop

- `npx hyperframes@<ver> check` must be 0 errors and 0 warnings. Fix warnings too (contrast included).
- Snapshot every scene boundary ±1 frame, each entrance, the whip, the full screen, the return, and the last frame. Look at each image.
- Confirm all of these:
  - logos are behind me (shoulders occlude the tucked ones)
  - no halo or doubled image
  - nothing late or stale
  - nothing on my face
  - correct Arabic shaping
  - no black frames
- Write `BRIEF.md`, `STORYBOARD.md` and `TIMING_MAP.md`.
- Start `npx hyperframes@<ver> preview --background`, give me the Studio URL, and WAIT for my approval.

## 9. Render after approval

- **Master.** `render . --format mov --quality delivery --video-frame-format png --workers 1 -o renders/master.mov`.
  - Launch it detached (Start-Process / nohup) so a shell timeout can't kill it.
  - Multi-worker can run out of RAM or disk.
- **Colour.** Check the master's colour matrix: decode one frame as 601 and as 709 and compare against the source. If it's 601, convert for delivery with `scale=in_color_matrix=bt601:out_color_matrix=bt709:in_range=tv:out_range=tv,format=yuv420p`.
- **Audio.** Rebuild the audio mix losslessly with ffmpeg (same clips, starts and volumes; `amix normalize=0`; `apad` to the full duration) instead of transcoding the master's AAC. Verify that it lines up with the master's audio.
- **Final `final_intro.mp4`.**
  - HEVC (libx265) two-pass 30 Mbps, `-tag:v hvc1`, BT.709 tags
  - AAC 320k 44.1 kHz
  - NO `-r` and NO `-shortest`, so no frame is dropped
- **ffprobe checks:**
  - 1920×1080, 30000/1001
  - frame count = the root frame count
  - hvc1 + AAC
  - −14 LUFS ±0.5
- Report the duration, removed ranges, A-roll/full-screen ratio, loudness and the output path. Delete temp folders.
عرض البرومت كاملاً
You are a senior video editor, motion designer and HyperFrames engineer working on my machine. Turn the talking-head clip `intromanustest.mp4` (I'll give you its path) into a premium Arabic (Egyptian) YouTube intro, about 31–32 s.

The headline feature: while I talk about AI apps, their official logos appear one by one and float BEHIND me (between me and the room).

Work autonomously. The only pause is the Studio preview for my approval before the final render.

## 0. Setup — check first, install whatever is missing

Check each item. If it's missing, install it (use winget/choco/scoop on Windows, brew on macOS, apt on Linux, or pip/npm), then confirm it runs:

- **Node.js ≥ 22** + npm/npx (`node -v`).
- **ffmpeg + ffprobe**, a full build with libx264, libx265, libvpx-vp9 (`ffmpeg -encoders`).
- **Python 3.10+** with numpy (`pip install numpy`).
- **HyperFrames CLI**, pinned so the project stays reproducible: `npx --yes hyperframes@latest --version`. Use that exact version (`npx hyperframes@<ver>`) for every command.
- **HyperFrames skills.** Run:

  ```
  npx hyperframes skills update general-video
  npx hyperframes skills update hyperframes-core hyperframes-animation hyperframes-keyframes media-use hyperframes-audio hyperframes-cli hyperframes-registry
  ```

  Read `/hyperframes`, `/general-video` and `/hyperframes-core` before writing any composition.
- **Speech tools for Arabic word timing.** Use `npx hyperframes transcribe` (whisper) and add a forced aligner for word-level accuracy. For example:

  ```
  pip install whisperx
  ```

  or `pip install ctc-forced-aligner` (an MMS-based Arabic aligner). If `hyperframes transcribe` needs whisper.cpp, let it install its runtime. Use a large multilingual model (`large-v3`, `--language ar`), not an `.en` model.
- **Background removal.** Run `npx hyperframes remove-background --info`. Its model downloads on first use.
- **Font.** Cairo (Google Fonts, weights 500/700/900): download the TTF files into the project's `assets/fonts`. Rendering must not need the network.
- **Disk.** If the system drive has < 15 GB free, point `TMP`/`TEMP` and `HYPERFRAMES_EXTRACT_CACHE_DIR` to a folder on a drive that has space.

Then create the project:

```
npx hyperframes@<ver> init intro-edit --non-interactive --example=blank --skill=general-video
```

Copy the footage into `assets/`.

## 1. Inspect the footage yourself

- `ffprobe` the file. It should be about 1920×1080, 30000/1001 fps, HEVC, AAC 44.1 kHz, ≈32.4 s. Keep its frame rate; every cut and animation boundary must land on a frame (1 frame = 1001/30000 s).
- Make a contact sheet (1 fps) and dense frames of the first 2 s.
- Measure on real frames:
  - the face centre (camera anchor)
  - where the phone is while I hold it up (it is raised on «على الموبايل»)
  - the silhouette edges of my shoulders and arms
- Transcribe + force-align to get WORD-level onsets. Then correct the text to exactly this. Never display misheard words:

  أنا عندي على الموبايل بتاعي كذا تطبيق ذكاء اصطناعي، وكل واحد فيهم بستخدمه لحاجة مختلفة: شات جي بي تي للمهام اليومية وعمل الصور، جيميناي لتحليل الصور والفيديوهات، نوت بوك إل إم لما أكون عايز أبحث عن حاجة في مصادر معيّنة، وأخيرًا تطبيقات تانية للصور والفيديوهات والريسيرش وغيره. عشان كده في الفيديو ده حابب أختبر حاجة، وهي إن هل في تطبيق واحد بس أقدر أعمل عليه صور وفيديوهات وريسيرش وحاجات تانية كتير، وكله من مكان واحد؟ فتعالوا نعرف الإجابة على السؤال ده في الفيديو.

- Cross-check every important onset against the per-frame RMS of the audio. When the aligner groups words, find the real gap in the energy; never invent intra-phrase times.
- Save the aligned word list as JSON in `transcript/`.

## 2. Cut

- Find the pauses (per-frame RMS < −40 dB, ≥ 7 frames). Remove only the middle of the pauses that sit at idea boundaries (before ChatGPT, NotebookLM, «وأخيرًا», «عشان كده», «هل في», «بس أقدر», «أعمل عليه», «وحاجات», «فتعالوا»).
- Keep 2–4 frames of room on each side. Expect ≈ 1.2 s removed in total.
- Render ONE frame-exact A-roll `assets/aroll_edit.mp4` (ffmpeg `trim` by frame + `concat`, H.264 CRF 12). Cut the dialogue with identical ranges (sample-accurate, 4 ms fades at joins).
- Each cut must be hidden by a hard crop change (§5) or sit under the full-screen scene. No visible jump cuts.
- The clip ends right after «في الفيديو». Freeze the last frame (an `<img>` under the video) for ~12 frames. Never end on black.
- Write `TIMING_MAP.md`: kept ranges, removed ranges, and every word remapped to OUTPUT frames. Author all animation times from those output frames.

## 3. Logos BEHIND me (the key feature)

- Run `npx hyperframes@<ver> remove-background assets/aroll_edit.mp4 -o assets/presenter_cutout.webm --quality best` in the background (it's slow on CPU).
- In `index.html`, build one NON-timed camera wrapper `#cam` (transform-origin = the measured face centre). Inside it, in this order:
  1. the freeze `<img>`
  2. the A-roll `<video class="clip" data-start=0 data-media-start=0 muted>`
  3. the logo sub-composition host
  4. a non-timed `<div id="cutout-wrap">` containing the cutout `<video class="clip" data-start=0 data-media-start=0 muted>`

  Plate and cutout share one decode window, so they never drift.
- Show the cutout only while logos exist: animate the wrapper's opacity, never the video's.
- Size the videos and the freeze by id, not with a `#cam img` rule: that rule would also enlarge the logo images.
- Logos (official only, never redrawn): `npx hyperframes@<ver> media-use resolve --type logo --entity <name> --intent "<name> logo" --project .` for openai (ChatGPT), googlegemini, notebooklm, claude, perplexity, midjourney, runway, grok, deepseek.
- Show each as a phone-style app-icon tile:
  - radius 24%, mark at 58%
  - soft shadow `0 18px 38px rgba(10,12,13,.42)`
  - thin inner highlight
- Tile backgrounds: ChatGPT white mark on #0F0F0F · Gemini on white (fill the official path with a blue → purple → pink gradient) · NotebookLM white on #111 · Claude cream mark on #D97757 · Perplexity on #0B1F22 · Midjourney on #0F0F0F · Runway / Grok on black · DeepSeek on white.
- Placement: around my head and shoulders like app icons orbiting me.
  - Two big tiles (≈220px) upper-left and upper-right of my head, for ChatGPT and Gemini.
  - The rest 150–190px in the side spaces.
  - Two of them (Grok and Perplexity) tucked partly behind my shoulders so the depth reads.
  - Never over my face. Everything inside the area that stays visible at 1.12× zoom.
- Every tile has a gentle, finite float (±6px, 1.5–2.2 s, a different phase per tile).

## 4. Design system

- Colours: cream #FFFDF8 · ink #171C1E · ink-soft #31383A · orange #F56A00 · orange-dark #D85800 · cyan #1B9DB5 · yellow #F5A800 · paper-light #F7F1E8 · paper-dark #D7CCBC.
- Font: Cairo, embedded via `@font-face` with `font-display: block` in EVERY composition. Weight 900 for hero Arabic, 700 for labels/chips/Latin names. RTL; animate whole words or phrases only, never letters. No `<br>`. Keep 80/60px safe margins. Text never covers my eyes or mouth, or my hands mid-gesture.
- Hero text:
  - cream, 104–112px
  - glow `0 0 18px rgba(255,253,248,.55), 0 0 44px rgba(255,253,248,.2), 0 4px 20px rgba(23,28,30,.75)`
  - on a soft elliptical radial dark scrim, never a box
  - accent word: warm white with an orange bloom (`0 0 16px #F56A00, 0 0 42px rgba(245,106,0,.6)`)
  - entrance: masked rise (y + blur → sharp, ~0.26 s, `expo.out`)
- Cards:
  - dark glass `rgba(23,28,30,.82)`, radius 26px, 3px orange border with an orange glow
  - small orange index (01…)
  - rows = a 70px icon box with cream rounded line icons that draw on (`pathLength=1`, `strokeDashoffset` 1 → 0)
  - before a row's words are spoken, it shows a faint skeleton bar instead of empty space
- Timing rules for every graphic:
  - start 2–4 frames before the word onset, fully readable ON the onset
  - readable ≥ 0.75 s
  - cleared before the next unrelated phrase
  - no continuous subtitles
- HyperFrames determinism:
  - one paused GSAP timeline per composition, on `window.__timelines["<id>"]`
  - `fromTo` with `immediateRender:false` for later tweens of the same property
  - initial hidden states in CSS
  - no `Math.random` / `Date.now`, finite repeats
  - every scene is a sub-composition in a `<template>`, with ids prefixed per composition

## 5. Camera (animate `#cam` only; hard crop changes land exactly on frames)

- Start: smooth push 1.00 → 1.12, 0.75 s, `expo.out`, hold.
- Hard crop changes:
  - «وكل واحد» → 1.00
  - ChatGPT (on the cut) → 1.08
  - Gemini → 1.00
  - NotebookLM (cut) → 1.08
  - «وأخيرًا» (cut) → 1.00
  - «عشان كده» (cut) → 1.06
- Whip into the full screen (3 frames): scale ×1.37 + blur 22px, `power2.in`.
- Hard cut back on «فتعالوا»: 1.08, face shifted ~70px left.
- «ده في الفيديو»: punch to 1.13, then a slow linear drift to 1.145 until the end.

## 6. Scenes (each a sub-composition, timed to YOUR measured onsets)

1. **Phone hook.**
   - On «على الموبايل»: a dark-glass pill chip with a cyan border (phone icon + «على الموبايل») beside the phone, plus a cyan connector line drawing to the phone in my hand. It holds while the phone is up.
   - As I say «كذا»: four glass placeholder tiles burst out of the phone (scale 0.16 → 1, slight rotation, 3-frame stagger, `expo.out`) and settle behind me in the slots of ChatGPT, Gemini, NotebookLM and Runway.
     - The placeholders are dark glass with a cream border and line icons: chat bubble, scan-eye, document + magnifier, play frame.
   - Centre hero «كذا تطبيق ذكاء اصطناعي» («ذكاء اصطناعي» accent). It exits with a quick upward sweep + light streak.
   - Then the kicker «كل واحد فيهم» while the placeholders pulse orange one after another, and «لحاجة مختلفة» («مختلفة» accent) on its onset.

2. **App stack.** Naming an app flips its tile (3D, ~3 + 6 frames) from placeholder to the official logo. The logo glows orange and scales 1.12 while the others dim to 55%. A card beside it:
   - ChatGPT: card 01 on the left, rows «المهام اليومية» (checklist icon), «عمل الصور» (image icon).
   - Gemini: card 02 on the right, «تحليل الصور والفيديوهات» (scan icon).
   - NotebookLM: card 03 on the right, «أبحث» then «في مصادر معيّنة» on its onset (doc + magnifier icon).
   - «وأخيرًا تطبيقات تانية»: Runway flips, and Claude, Midjourney, Perplexity, Grok and DeepSeek pop in (spring, staggered). Card 04 bottom-left «تطبيقات تانية», with pill chips landing on their words: «صور» → lights Midjourney, «فيديوهات» → Runway, «ريسيرش» → Perplexity, then «+».
   - Each card leaves in the pause before the next app.

3. **The test.** The logo wall recedes (78% opacity, slight blur).
   - Kicker «في الفيديو ده» with a small orange play badge.
   - «حابب أختبر حاجة» («أختبر» accent), with a cream line-drawn flask that fills orange and bubbles.
   - On «وهي إن» every logo is pulled to one point behind my head.
   - The overlay rides the whip into the full screen.

4. **Full screen** (≈20–23% of the runtime). Paper-light world: #F7F1E8, a subtle ink dot grid, ink outlines, cyan connectors, orange emphasis. The whip lands with a short settle.
   - Top headline «هل في تطبيق واحد؟» («واحد؟» orange).
   - The nine logo tiles in a ring collapse into ONE orange app icon with a cream «؟».
   - On «بس أقدر» a phone outline draws around it.
   - Satellite tiles dock with cyan wires, each on its word: «صور», «فيديوهات», «ريسيرش», «حاجات تانية» (dark tile with +), plus 3 small icon tiles on «كتير». The app pulses on each docking.
   - On «وكله من مكان واحد»: everything is absorbed into the app, which glows, and the headline becomes «وكله من مكان واحد» («مكان واحد» orange), with one gentle camera push that keeps the phone clear of the headline.
   - No fake UI, chats or metrics.

5. **The answer = the closing shot.** Hard cut back on «فتعالوا».
   - Right column: the orange «؟» app as a badge, with «فتعالوا نعرف», then a big glowing «الإجابة».
   - On «في الفيديو»: the badge flips to ▶, «في الفيديو ده» rises, and an orange underline + two diamonds lock up.
   - Hold through the freeze to the last frame.

## 7. Audio

- Dialogue:
  1. high-pass 75 Hz
  2. −2 dB @ 250 Hz
  3. 2.5:1 gentle compression
  4. limiter
  5. two-pass linear loudnorm to −14 LUFS, TP ≤ −1.5
  - Keep it sample-aligned with the picture and continuous under the full screen.
- No music.
- Subtle SFX (via `media-use resolve --type sfx` or the bundled library), volumes 0.10–0.28, on:
  - logo burst (whoosh)
  - each app flip (pop)
  - the others popping in
  - whip (whoosh)
  - the one-app pop
  - absorption (click)
  - answer badge (pop)
  - an impact peaking on the final ▶
- Every `<audio>` needs an id.

## 8. Verify, then stop

- `npx hyperframes@<ver> check` must be 0 errors and 0 warnings. Fix warnings too (contrast included).
- Snapshot every scene boundary ±1 frame, each entrance, the whip, the full screen, the return, and the last frame. Look at each image.
- Confirm all of these:
  - logos are behind me (shoulders occlude the tucked ones)
  - no halo or doubled image
  - nothing late or stale
  - nothing on my face
  - correct Arabic shaping
  - no black frames
- Write `BRIEF.md`, `STORYBOARD.md` and `TIMING_MAP.md`.
- Start `npx hyperframes@<ver> preview --background`, give me the Studio URL, and WAIT for my approval.

## 9. Render after approval

- **Master.** `render . --format mov --quality delivery --video-frame-format png --workers 1 -o renders/master.mov`.
  - Launch it detached (Start-Process / nohup) so a shell timeout can't kill it.
  - Multi-worker can run out of RAM or disk.
- **Colour.** Check the master's colour matrix: decode one frame as 601 and as 709 and compare against the source. If it's 601, convert for delivery with `scale=in_color_matrix=bt601:out_color_matrix=bt709:in_range=tv:out_range=tv,format=yuv420p`.
- **Audio.** Rebuild the audio mix losslessly with ffmpeg (same clips, starts and volumes; `amix normalize=0`; `apad` to the full duration) instead of transcoding the master's AAC. Verify that it lines up with the master's audio.
- **Final `final_intro.mp4`.**
  - HEVC (libx265) two-pass 30 Mbps, `-tag:v hvc1`, BT.709 tags
  - AAC 320k 44.1 kHz
  - NO `-r` and NO `-shortest`, so no frame is dropped
- **ffprobe checks:**
  - 1920×1080, 30000/1001
  - frame count = the root frame count
  - hvc1 + AAC
  - −14 LUFS ±0.5
- Report the duration, removed ranges, A-roll/full-screen ratio, loudness and the output path. Delete temp folders.

البرومت مكتوب لفيديو معين (intromanustest.mp4) وفيه النص المنطوق بتاعه. قبل ما تستخدمه، غيّر اسم الملف والنص والتطبيقات المذكورة عشان تناسب الفيديو بتاعك.

الروابط المهمة

التجربة كاملة بالفيديو

شوف إزاي OpenCode منتج نفس الفيديو اللي منتجته قبل كده بـ Claude، والمقارنة بين النتيجتين.

افتح على يوتيوب

خطوات التجربة

Claude نفسه مش برنامج مونتاج. هو بيستخدم أدوات زي FFmpeg للقص والصوت، وWhisper لتحويل الكلام لنص، وHyperFrames للموشن جرافيك والرندر. لو اديت نفس الأدوات لـ Agent مجاني زي OpenCode، يقدر يطلع نتيجة قريبة جدًا.

  1. 1حمّل OpenCode من صفحة التحميل وثبّته على جهازك زي أي برنامج.
  2. 2افتح البرنامج، واضغط على Default project ثم Add project، واختار فولدر جديد للمشروع.
  3. 3حط ملف الفيديو اللي عايز تمنتجه جوه نفس الفولدر.
  4. 4من زر الموديلات اختار موديل مجاني يدعم الرؤية ونافذة سياق كبيرة (في الفيديو استخدمت GLM 5.3 Flash Free).
  5. 5خلي مستوى التفكير (Effort) على High. الـ Max بيسحب توكنز أكتر وبياخد وقت أطول.
  6. 6انسخ البرومت من فوق، وغيّر اسم ملف الفيديو والنص المنطوق والتفاصيل بما يناسب الفيديو بتاعك، وبعدين ابعته.
  7. 7سيبه يشتغل. لما يخلص هيديك رابط معاينة (Studio) تراجع منه المونتاج، ولما توافق يعمل الرندر النهائي.

أسئلة سريعة

هل OpenCode مجاني فعلًا؟
أيوه. البرنامج نفسه مجاني، وفيه موديلات مجانية تقدر تختارها من جواه. الموديلات المجانية بتتغير كل فترة، فمتتمسكش باسم موديل معين، واختار موديل قوي في المهام الطويلة (Agentic) ويدعم الرؤية (Vision) ونافذة سياق كبيرة.
ليه الموديل لازم يدعم الرؤية؟
مش عشان يتفرج على الفيديو زي الإنسان، لكن عشان يحوّل الفيديو لصور (Frames) ويراجع نقاط معينة: هل النص في مكانه الصح؟ هل الإفكت طالع سليم؟ ده بيفرق جدًا في جودة المونتاج.
ينفع أستخدم البرومت مع Claude؟
أيوه. البرومت ده نفسه استخدمته مع Claude ومع OpenCode، والنتيجتين كانوا ممتازين. عدّل اسم الفيديو والنص المنطوق والتفاصيل بما يناسب الفيديو بتاعك.