The problem
A college team is building a CRM for a real-estate agency. For every listing, the agents need short videos and posts for Instagram, WhatsApp and property portals, in the right shape for each one: 9:16 for Reels and Stories, 4:5 and 1:1 for the feed, 16:9 for YouTube and the portals.
Generative video tools charge per second of video and often need several attempts per scene. The brief was almost no budget and no GPU, so the videos had to be made on an ordinary CPU, at no cost per video.
What I built
A service that takes a listing (title, price, location, features, highlights) and its photos, and returns videos and posts ready to publish.
- Video engine. Smooth camera movement over each photo with easing, cross-fade or push transitions, and animated text: an opening card with title and price, room labels, a features panel and a closing card with the agency's logo and contact. The clean style shows each photo whole over a blurred copy of itself instead of cropping it. Frames are composed in NumPy and OpenCV in parallel and piped to FFmpeg in order.
- 4 formats, 3 styles. 9:16, 4:5, 1:1 and 16:9 from the same photos. The elegant, modern and clean styles each set the fonts, colors, motion and transitions. Videos run 15, 30, 45 or 60 s.
- Posts and caption. A 4:5 carousel (cover, labeled photos, highlights, contact), a square post, a story and a caption with emojis and hashtags, all as a ZIP.
- Music without licensing issues. The project synthesizes its own background tracks, and users can upload their own.
- API and queue. FastAPI with SQLite and a worker pool, progress per job and retry. One call,
POST /api/generate, creates or updates the listing from the CRM's ID, downloads the photos, queues the renders and posts the results to a callback URL when the batch finishes. - Web interface. Upload and reorder photos, pick the cover, set the agency's logo and colors, choose style and formats, and watch each render's progress.
Key decisions
- Deterministic rendering instead of generative video. No GPU and no paid API per video, the same input always gives the same output, and the video never shows a room or a view that the property doesn't have.
- Integration through the API, not inside the CRM. The CRM needs one endpoint and one callback. The video service can run and scale on its own machine.
- Nothing to install but Python. FFmpeg ships as a Python package, fonts are open-licensed and the music is generated, so
uv syncis the whole setup. - Tested end to end. 153 automated tests cover the timeline, motion, overlays, posts, caption, API and queue, plus real low-resolution renders.
Results
- One set of listing photos becomes 4 video formats, a carousel, a story and a caption.
- A 30 s 1080p video renders in about two minutes on a busy 8-core laptop CPU, with no GPU.
- No cost per video.
- Built as an MVP for the CRM project; connecting it to the CRM is the next step.





