<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Dat Dtek</title>
    <description>The latest articles on DEV Community by Dat Dtek (@vietdat).</description>
    <link>https://dev.to/vietdat</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4263041%2F4728e0fb-bfed-46a0-9f5c-5f342cfa9204.jpg</url>
      <title>DEV Community: Dat Dtek</title>
      <link>https://dev.to/vietdat</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vietdat"/>
    <language>en</language>
    <item>
      <title>How I turn still wedding photos into a cinematic AI film (with prompts that actually work)</title>
      <dc:creator>Dat Dtek</dc:creator>
      <pubDate>Thu, 26 Nov 2026 14:27:44 +0000</pubDate>
      <link>https://dev.to/vietdat/how-i-turn-still-wedding-photos-into-a-cinematic-ai-film-with-prompts-that-actually-work-45ef</link>
      <guid>https://dev.to/vietdat/how-i-turn-still-wedding-photos-into-a-cinematic-ai-film-with-prompts-that-actually-work-45ef</guid>
      <description>&lt;h1&gt;
  
  
  How I turn still wedding photos into a cinematic AI film (with prompts that actually work)
&lt;/h1&gt;

&lt;p&gt;I make wedding films from still photos. No camera crew, no reshoot day — a couple sends me their photos, and I build a 60-second film they play at the reception.&lt;/p&gt;

&lt;p&gt;The first ones I made were bad in a specific way. A photo plus a one-line prompt — "make this photo move, cinematic wedding video" — usually comes back with a warped face, flickering light, or hands that bend wrong. The model isn't being lazy. It is guessing, and a vague prompt gives it too much to guess about.&lt;/p&gt;

&lt;p&gt;What fixed it for me was writing prompts like a shot list, not like a wish. One motion per clip. One model picked for one job. A storyboard with exact timings before I generate anything. I open-sourced the kit I built for myself — 38 prompts, three storyboards, a Claude skill, and an ffmpeg script — but this post is the workflow itself, so it's useful even if you never open the repo.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with the photo, not the prompt
&lt;/h2&gt;

&lt;p&gt;A video model can only move what is in the photo. Before I write anything, each photo has to pass this list:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Faces visible and front-facing.&lt;/strong&gt; Both eyes visible. This is the safest setup, especially for close-ups.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sharp, not blurry.&lt;/strong&gt; Motion blur in the source becomes smearing in the video. If the photo is soft, pick a different one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hands complete and still.&lt;/strong&gt; All fingers visible, not mid-gesture. Hands are where these models fail most visibly — if a hand is blurred or half out of frame, crop it out or pick another photo.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One subject per shot.&lt;/strong&gt; Two people is good. A crowd is a gamble.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Aspect ratio matches the shot.&lt;/strong&gt; A 9:16 prompt needs a vertical photo. Cropping a landscape photo to vertical throws away the sides.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I throw away more photos at this step than at any other. A good prompt cannot rescue a bad source photo.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pick the model for the shot
&lt;/h2&gt;

&lt;p&gt;Different models are good at different things. This is the selector I use:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Shot&lt;/th&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Length&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Faces must stay faithful&lt;/td&gt;
&lt;td&gt;Kling 2.1&lt;/td&gt;
&lt;td&gt;10s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;One clear motion (veil, toss, gesture)&lt;/td&gt;
&lt;td&gt;Runway Gen-4&lt;/td&gt;
&lt;td&gt;10s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tiny motion or a still scene&lt;/td&gt;
&lt;td&gt;Wan 2.2&lt;/td&gt;
&lt;td&gt;5s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wide, epic, or night shot&lt;/td&gt;
&lt;td&gt;Veo 3.1&lt;/td&gt;
&lt;td&gt;8s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Change light/setting in a clip you already have&lt;/td&gt;
&lt;td&gt;Runway Aleph 2&lt;/td&gt;
&lt;td&gt;matches input, up to 30s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The rule behind the table: one motion per clip. A veil moving OR a slow orbit — never both. When you ask for two motions, the model has to choose, and it chooses wrong. That's where most of the warping comes from.&lt;/p&gt;

&lt;h2&gt;
  
  
  One prompt, explained line by line
&lt;/h2&gt;

&lt;p&gt;This is a real prompt from the kit, for the aisle walk — Kling 2.1, 10 seconds, 16:9:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The bride walks slowly down the ceremony aisle on her father's arm, guests standing and smiling on both sides. Her veil trails gently behind her; flower petals scattered on the aisle shift slightly as she passes. She looks ahead, smiling, then glances briefly toward the groom waiting at the altar. The camera tracks backward smoothly ahead of her, keeping her centred, as the altar and floral arch grow slowly larger in the background. Soft daylight, cinematic wedding film, steady and graceful pace.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It follows a five-layer formula — subject + subject movement + scene + camera + lighting and atmosphere:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Subject:&lt;/strong&gt; the bride and her father. Named, not "the couple".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Subject movement:&lt;/strong&gt; slow walk, veil trailing, petals shifting. One motion, small and slow — walking is hard for video models, so keep the walk slow and the distance short. A few steps, not the whole aisle.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scene:&lt;/strong&gt; aisle, guests on both sides, floral arch, the groom at the altar. Everything the model needs to fill the frame, so it doesn't invent people.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Camera:&lt;/strong&gt; smooth backward track, keeping her centred. The camera moves; the subject doesn't have to do anything complicated.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lighting and atmosphere:&lt;/strong&gt; soft daylight, cinematic wedding film, steady and graceful pace. This sets the look in one line instead of adjectives scattered through the prompt.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And the negative prompt, which matters as much as the prompt itself:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;faces morphing, guests' faces distorting, bride sliding instead of walking, legs bending wrong, camera wobble, people appearing or disappearing&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;"Sliding instead of walking" is in there because that is literally what the model does when the walk is too fast. If legs still glitch, I regenerate with "she takes slow, small steps" — and I cut the clip on the moment she glances at the groom, because that is the natural edit point into the vows shot.&lt;/p&gt;

&lt;p&gt;Judge each take on three things only: faces, hands, and the one motion you asked for. If all three hold, keep it. If one fails, regenerate that clip — don't rewrite the whole prompt.&lt;/p&gt;

&lt;h2&gt;
  
  
  The storyboard comes before generation
&lt;/h2&gt;

&lt;p&gt;A 60-second reception film is ten shots with exact timings, and the timings have to sum to exactly 60 seconds. Mine: a 3-second title card, then the aisle walk (6s), rings close-up (5s), holding hands (6s), a slow push-in from wide to one detail (6s), a slow orbit on the kiss (6s), an emotional close-up (6s), the balloon release (6s), a golden-hour walk (8s), and a sunset walk out (8s). Music starts sparse — solo piano — adds strings at the vows shot, peaks at the balloon release, and resolves to a single piano note under the closing shot.&lt;/p&gt;

&lt;p&gt;The point of writing timings first: you check the film before spending anything on generation. I build a motion-from-stills preview with an ffmpeg script first — slow push-ins and crossfades over the same photos, same timings — and watch it. If the story doesn't work as stills with motion, it won't work as AI clips either. And I label that preview honestly: motion-from-stills, not AI motion. The example film in the repo carries the same label.&lt;/p&gt;

&lt;h2&gt;
  
  
  What still goes wrong
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Legs during a walk.&lt;/strong&gt; Slow the walk down, shorten the distance, cut early. If it still glitches, replace the walking shot with a static close-up and let the camera do the moving.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hands.&lt;/strong&gt; The most common failure. Pick photos where hands are still and complete, and don't ask for gestures.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two motions at once.&lt;/strong&gt; Split the shot. Veil moving in one clip, orbit in the next.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Flickering light.&lt;/strong&gt; Usually a photo with mixed light sources. Pick a photo shot in one light, and say so in the prompt ("soft daylight").&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A good grade from a checklist doesn't prove a film is good — you have to watch it. But a prompt written this way fails less often, and when it fails, you know which layer to fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  The kit
&lt;/h2&gt;

&lt;p&gt;Everything above lives in one repo, MIT licensed: the 38 prompts (wedding, anniversary, proposal), the three storyboards with exact timings, a Claude skill that picks the model and adapts a prompt to your photo, and the ffmpeg preview script. You can also try the prompts without cloning anything — the prompt browser is live at &lt;a href="https://vietdat.github.io/ai-photo-to-film-kit/" rel="noopener noreferrer"&gt;https://vietdat.github.io/ai-photo-to-film-kit/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/vietdat/ai-photo-to-film-kit" rel="noopener noreferrer"&gt;https://github.com/vietdat/ai-photo-to-film-kit&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you shoot weddings or make films from photos, I'd love to know what I'm missing — especially which shot in a reception film you would most want a prompt for.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>tutorial</category>
      <category>webdev</category>
      <category>video</category>
    </item>
    <item>
      <title>Your AI-built app probably leaks secrets. I wrote a CLI that checks before you launch</title>
      <dc:creator>Dat Dtek</dc:creator>
      <pubDate>Thu, 26 Nov 2026 14:26:30 +0000</pubDate>
      <link>https://dev.to/vietdat/your-ai-built-app-probably-leaks-secrets-i-wrote-a-cli-that-checks-before-you-launch-329l</link>
      <guid>https://dev.to/vietdat/your-ai-built-app-probably-leaks-secrets-i-wrote-a-cli-that-checks-before-you-launch-329l</guid>
      <description>&lt;h1&gt;
  
  
  Your AI-built app probably leaks secrets. I wrote a CLI that checks before you launch
&lt;/h1&gt;

&lt;p&gt;I keep seeing the same thing in AI-built apps. Someone vibes an app into existence over a weekend. It works, it looks good, and then they launch it with the database password sitting in a config file. Nobody checked.&lt;/p&gt;

&lt;p&gt;I wrote a small CLI that checks. It's called vibe-code-rescue, and it reads your code and writes a plain-language report with a grade. I built it because I kept finding the same mistakes in AI-built apps, including my own, and I wanted the checker I wished existed.&lt;/p&gt;

&lt;p&gt;The fastest way to see what it does is the demo. The repo ships with a deliberately vulnerable app, and the audit takes ten seconds:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/vietdat/vibe-code-rescue.git
&lt;span class="nb"&gt;cd&lt;/span&gt; vibe-code-rescue
node bin/vibe-rescue.js audit demo/vulnerable-app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That demo scores F, 17 out of 100, with 19 findings, nine of them critical. The tool estimates 27.5 hours to fix all of it by hand. An app that works fine can still be a mess underneath, and "works fine" is a bad way to decide something is ready.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it actually catches
&lt;/h2&gt;

&lt;p&gt;The checks fall into a few families. Here is one real finding from each, from that demo run, with the file and line where it lives.&lt;/p&gt;

&lt;p&gt;Secrets. The demo commits its &lt;code&gt;.env&lt;/code&gt; file, line 1, and hardcodes a JWT secret, an API key, and a database password in &lt;code&gt;config.js&lt;/code&gt;, lines 5, 6, and 8. AI tools write secrets into code because the prompt never said not to, and the code runs fine either way. The fix is boring and non-negotiable: move them to environment variables and rotate everything that was exposed.&lt;/p&gt;

&lt;p&gt;Auth. In &lt;code&gt;auth.js&lt;/code&gt;, line 11, the demo decodes a JWT by splitting the token on dots and base64-decoding the payload by hand. That trusts any token at all, including one someone made up in a text editor. The right call is &lt;code&gt;jwt.verify()&lt;/code&gt; with the secret and an expiry check. And in &lt;code&gt;server.js&lt;/code&gt;, line 27, there is an admin route with no login check in front of it. Anyone who guesses the URL is an admin.&lt;/p&gt;

&lt;p&gt;Data access. &lt;code&gt;db.js&lt;/code&gt; builds SQL by gluing strings together, lines 5 and 11. That is textbook SQL injection. And &lt;code&gt;server.js&lt;/code&gt;, line 40, fetches a resource by ID with no ownership check, so one user can open another user's data by changing a number in the URL. The CLI calls that BOLA. It is the kind of bug that doesn't show up until someone actually tries it.&lt;/p&gt;

&lt;p&gt;Payments and platform config. The Stripe webhook handler in &lt;code&gt;server.js&lt;/code&gt;, line 76, never verifies the webhook signature, so anyone can send it fake payment events. The Supabase queries in &lt;code&gt;server.js&lt;/code&gt;, line 69, run with no Row Level Security policy file in the project. And &lt;code&gt;server.js&lt;/code&gt;, line 17, sets CORS to allow any origin.&lt;/p&gt;

&lt;p&gt;Dependencies. &lt;code&gt;package.json&lt;/code&gt; contains a package called "lodahs", lodash with the letters swapped, plus a real lodash 4.17.20 with a known CVE and minimist 1.2.5 with another one. AI tools hallucinate package names, and a typo in a dependency name is exactly how supply-chain attacks start.&lt;/p&gt;

&lt;p&gt;That is the whole list of families. The report gives you each finding with the file, the line, the exact code, and what to do about it. No jargon where plain words will do.&lt;/p&gt;

&lt;h2&gt;
  
  
  What --fix does, and what it won't
&lt;/h2&gt;

&lt;p&gt;The CLI has a &lt;code&gt;--fix&lt;/code&gt; flag. It applies only the safe, reversible fixes. On the demo it moves the score from 17 to 47 out of 100, and the finding count drops from 19 to 13. Still an F, and that's honest. The remaining 13 are the ones a tool can't fix for you: the admin route needs a real login check, the SQL needs parameterised queries, the BOLA endpoint needs an ownership check. Those are design decisions, not typos. I left them for a human on purpose. A tool that rewrites your auth logic for you is a tool that will break your app in ways you won't notice until production.&lt;/p&gt;

&lt;h2&gt;
  
  
  And --live
&lt;/h2&gt;

&lt;p&gt;There is a second mode. &lt;code&gt;--live&lt;/code&gt; probes a running app instead of reading code: it tries the admin route without logging in, asks for another user's record, sends a fake Stripe event, that sort of thing. On the demo, all five probes fail and the grade drops to F, 2 out of 100. Static checks tell you what's wrong in the code. Live probes tell you what's actually reachable. I run both, because an app can look clean in a code review and still answer requests it shouldn't.&lt;/p&gt;

&lt;p&gt;Limits, stated plainly. The checks are heuristics, and heuristics false-positive. A good grade doesn't prove an app is secure. This is not a penetration test, and I don't pretend it is. The docs say where each check can be wrong. If you run it on a real codebase, expect a few findings you'll disagree with. That's fine. The point is the conversation it starts, not a perfect score.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to run it
&lt;/h2&gt;

&lt;p&gt;Three commands, no install beyond Node 18:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/vietdat/vibe-code-rescue.git
&lt;span class="nb"&gt;cd&lt;/span&gt; vibe-code-rescue
node bin/vibe-rescue.js audit demo/vulnerable-app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There is also a Claude Code skill in the repo, if you use Claude Code: &lt;code&gt;npx skills add vietdat/vibe-code-rescue&lt;/code&gt;. And a Spring Boot profile if your backend is Java. The Spring sample in the repo scores D, 60 out of 100, with 8 findings. The test suite is 18 tests, all passing.&lt;/p&gt;

&lt;p&gt;Try it on your own vibe-coded app. Tell me what it misses. The repo is MIT licensed: &lt;a href="https://github.com/vietdat/vibe-code-rescue" rel="noopener noreferrer"&gt;https://github.com/vietdat/vibe-code-rescue&lt;/a&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>javascript</category>
      <category>opensource</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
