Grid Videos Creation
Use this skill whenever creating or updating a Grid Portfolio / Intro Motion Graphics Video (1080x1350, 30 fps, 36.0s, H.264 video + AAC audio) modeled on a reference video (ref video/ref video.mp4) and custom image/text assets (My Data/).
1. How Instructions Are Given (User's Workflow Method)
Understanding how the user structures the project and gives instructions is essential to executing this workflow smoothly:
Phase 1: Folder Setup & Initial Prompt
ref video/Folder: Contains the target motion graphics reference video (ref video.mp4,1080x1350,30 fps,36.0s). Its exact frame timings, easing curves, sound effects (-c:a copy), and transitions are used as the master blueprint.My Data/Folder: Contains the person's custom assets:Grid Background.jpg— Dark olive-brown grid background used in Scene 1 and Scene 3.Character.jpg— Portrait with a solid dark background and a crisp white cutout outline around the subject.Plain Background.jpg— Solid olive-green background used for the Scene 1 → Scene 2 zoom transition.Bar.jpg— Olive-green background with a centered glassmorphic search bar (y = 646).Outro example.jpg&Outro example 2.jpg— Reference layouts for the social pills (in,Bē) and the bottom"Let's Connect."typography.Name and age and role.txt— Text file specifying the person's Name, primary Role, and specialty badge text.
- Initial Prompt Style:
"Analyse the 'ref video' completely and carefully and 100% and After that use data from 'My Data' folder and create exact same to same video in same style and format like 'ref video'"
Phase 2: Fast Iterative Visual Refinements
After inspecting the first generated Final Video.mp4, the user gives short, targeted refinement instructions one step at a time. Typical refinement instructions include:
- Speed & Task Handling: "Do not kill the task 'Render and encode Final Video.mp4' make This process fast" → Always use the fast static-frame caching script (
scripts/generate_video_fast.py) which renders and encodes all 1,080 frames in ~12–16 seconds. - Right-Side Text Stack Customizations: "remove the Age and Instead of 'Jobless' Add 'Your'" and "Bold the start text 'Your'" → Omit the age line, start directly with bold
"Your", then type the primary role ("Sr UI/UX"), slide in bold"Designer", and bounce in the tilted"Graphics Expert ❤"pill badge. - Character Cutout Outline Color: "I want Character outline white not olive" → Preserve the original crisp white sticker outline around the character cutout in Scene 1 (
Character.jpg), and zoom into the character's olive hijab during the transition into Scene 2. - Animated Search Bar Role Text Color: "Instead of white make animated role text to the same color as 'Lets Connect' text has" → Render the cycling middle role text (
Creative,Brand,UI/UX,Web Graphics,Social Media,Creative Ads,Book Cover,One) in the signature cream-lime color (#E7F3D0/RGB(231, 243, 208)), while keeping"Your"and"Designer"/"Design"/"partner"in dark charcoal (RGB(35, 38, 22)). - Adding Contact Pills in the Outro: "create area for gmail and add this Gmail '[email protected]' on the end below the behance" → Clone the pill container below Behance, place a matching circular mail icon badge on the left, and render the email address inside the third pill.
2. Visual Reference & Content Screenshots
A. Input Assets (My Data/ Folder)

B. Scene 1: Animated "Helloo" Intro, White-Outlined Character, Bold "Your", & Badge (00:00 – 00:18)

C. Scene 2: Search Bar Role Cycling (#E7F3D0 Cream-Lime) & "Let's Connect" (00:19 – 00:32)

D. Scene 3: Radial Grid-Mosaic Transition & Final 3-Pill Outro (00:33 – 00:36)

3. Complete Technical Specification (1080x1350 @ 30 fps, 1,080 Frames)
Color Palette & Fonts
| Element | RGB Value | Hex | Usage |
|---|---|---|---|
CREAM (Let's Connect Color) | (231, 243, 208) | #E7F3D0 | "Helloo", Scene 1 text, Scene 2 animated role titles (Creative .. One), "Let's Connect", Outro pills & "Let's Connect." |
DARK_TEXT | (35, 38, 22) | #232616 | "Your", "Designer", "Design", and cursive "partner" in Scene 2 |
OLIVE_BG | (105, 101, 63) | #69653F | Plain olive background (Plain Background.jpg) and "Graphics Expert ❤" pill fill |
DARK_CIRCLE_ICON | (48, 51, 34) | #303322 | Cutout icons (in, Bē, ✉) inside the cream circles in Scene 3 |
| Character Outline | (255, 255, 255) | #FFFFFF | Crisp white sticker outline around the character portrait |
- Fonts (
Poppinsfamily):Poppins-Regular.ttf(28pxfor"I am <Name>",34pxfor typed"Sr UI/UX",40pxfor animated bar roles &"Let's ",48pxsupersampled 2x for"Graphics Expert"badge)Poppins-SemiBold.ttf(36pxfor right-side bold"Your"and"Designer",40pxfor bar"Your "," Designer", and"Connect")Poppins-Light.ttf+Poppins-Regular.ttf(35pxblended for the Gmail address inside the 3rd outro pill)
Aspect Ratio Mapping (3:4 Source Images → 4:5 Video Canvas)
The source images in My Data/ are 896x1200 or 1792x2400 (3:4 aspect ratio), while the target video canvas is 1080x1350 (4:5 aspect ratio).
- Never stretch
3:4directly to4:5(which squashes circles and faces vertically by 6.6%). - Always resize width to
1080(1080x1446,Image.Resampling.LANCZOS) and crop1350pxvertically:Grid Background.jpg:.resize((1080, 1446)).crop((0, 48, 1080, 1398))Plain Background.jpg&Bar.jpg:.resize((1080, 1446)).crop((0, 37, 1080, 1387))
Scene-by-Scene Frame Breakdown
F0001 – F0159(0.00s – 5.30s) —"Helloo"Eye Animation & Slide-Up:- Extract the
"Helloo"alpha mask fromref video.mp4framesf_0001..f_0159via green-channel matting (np.clip((g - 42.0) / (240.0 - 42.0), 0.0, 1.0)) and compositeCREAMontoGrid Background.jpg.
- Extract the
F0159 – F0190(5.30s – 6.33s) — Character Pop-Up & Smile Curve:- Remove the outer dark background of
Character.jpgusing connected-component labeling (scipy.ndimage.label) from(0, 0)so interior dark regions (eyes/eyebrows) remain untouched and the white outline is preserved. - Animate the character rising from
y_offset = 1050to0(CHAR_X = 58, CHAR_Y = 306) overF0159..F0187usingPchipInterpolator. - Extract the animated smile curve beneath the first
"o"strictly withiny=[402, 445], x=[818, 910](avoiding any lower pixels from the reference video's character head).
- Remove the outer dark background of
F0204 – F0220(6.80s – 7.33s) — Left Text"I am <Name>":- Slide up
"I ","am ", and"<Name>"sequentially at(71, 418)inCREAM(Poppins-Regular,28px).
- Slide up
F0270 – F0547(9.00s – 18.23s) — Right-Side Stack (Your→Sr UI/UX→Designer→ Badge):F0270 – F0286: Bold"Your"(Poppins-SemiBold,36px, right-aligned atx = 1038) slides in aty = 770.F0307 – F0334: Animated pointer cursor moves in and clicks at(1032, 795)onF0324..F0330.F0330 – F0345: Bold"Your"smoothly shifts up by52px(y = 718) as the typing caret|appears on line 2 (y = 770).F0354 – F0465: Typewriter animation types"Sr UI/UX"character-by-character synced to the keyboard audio clicks.F0466 – F0480: Bold"Designer"(Poppins-SemiBold,36px) slides down into place aty = 820.F0499 – F0524: Tilted olive pill badge"Graphics Expert ❤"(-4°angle, with a supersampled parametric vector heart) bounces up from the bottom, pushing the 3-line text stack up with an elastic physics bounce (dy = -90pxpeak settling atdy = -28px).
F0547 – F0574(18.23s – 19.13s) — Exponential Camera Zoom Transition:- Zoom exponentially (
scale = 45.0 ** (ease_in_out_cubic(t) ** 0.95)) into the olive hijab (fx = 445, fy = 360) and cross-fade (F0556..F0574) intoPlain Background.jpg.
- Zoom exponentially (
F0582 – F0836(19.40s – 27.87s) — Search Bar Role Cycling:- Fade in
Bar.jpg(F0582..F0605) and"Your Creative Designer"centered aty = 646. - Cycle through all 8 roles (
Creative,Brand,UI/UX,Web Graphics,Social Media,Creative Ads,Book Cover,One) at frames619, 651, 679, 706, 736, 770, 799. - Render
"Your "and" Designer"inDARK_TEXT((35, 38, 22),Poppins-SemiBold) and the animated middle role inCREAM((231, 243, 208),Poppins-Regular).
- Fade in
F0840 – F0995(28.00s – 33.17s) —"Your One Design partner"&"Let's Connect":F0840 – F0887:"Your One Designer"changes to"Your One Design", shifts left, and cursive"partner"(extracted fromf_0875.jpg[620:682, 680:860]) slides in from the right.F0888 – F0913:"Your One Design partner"rises above the search bar (y = 646 → 542) while"Let's Connect"(CREAM) fades in inside the search bar.F0953 – F0970: Cursor moves to"Let's Connect", clicks (F0958..F0960), and exits right.F0964 – F0995: Huge"Let's Connect."(Outro example 2.jpg) rises from the bottom of the canvas (y = 1350 → 975).
F0996 – F1080(33.20s – 36.00s) — Radial Grid-Mosaic Reveal & 3-Pill Outro:F0996 – F1014: Radial wave (cx0 = 540, cy0 = 580) reveals the dark grid background cell-by-cell (20x23grid cells) with highlighted cell borders.F1015 – F1080: Holds the final Outro screen with 3 evenly spaced contact pills (y_top = 270, vertical center spacing179px) above"Let's Connect.":- LinkedIn:
inbadge + handle (imsyedamuskan) - Behance:
Bēbadge + handle (syedamuskan902) - Gmail:
✉envelope badge + email ([email protected])
- LinkedIn:
4. Fast Rendering & Encoding (~12–16 Seconds)
To render or update the video in ~12–16 seconds:
- Run
scripts/generate_video_fast.py:python "C:\Users\WayWe Work-Station\Downloads\Make video\Skills\scripts\generate_video_fast.py" - Why it is fast and never hangs:
- No FFmpeg Pipe Deadlock: Invokes
ffmpeg -loglevel errorwithoutstderr=subprocess.PIPEso OS pipe buffers never blockstdin.write(). - Static-Frame Byte Caching (
STATIC_RANGES): Reuses the rawrgb24byte buffer (prev_bytes) on all 509 static frames whereframe[fn] == frame[fn - 1], reducing unique frame renders from1,080to571. - Target-Resolution Cutout Matting: Computes the
scipy.ndimagecharacter alpha matte at target scale (779x1044) instead of full1792x2400resolution, cutting initialization time to0.38s.
- No FFmpeg Pipe Deadlock: Invokes



