
Weekend Annoying Task Challenge: ClipForge
AI app that turns long YouTube videos into ready-to-upload Shorts automatically, using Amazon Bedrock and EC2. Saves 2–3 hours of manual clipping weekly.
Vision & What the App Does
I record a lot of long-form videos - tutorials, live sessions, and screen recordings that often run 1–3 hours. The most annoying, repetitive part of my week? Turning those long videos into Shorts.
Every week the ritual is the same: rewatch the video, hunt for the 30–60 second moments that would work as standalone clips, note the timestamps, cut them in an editor, add captions manually, and export in vertical 9:16 format. For a single long video, this easily eats 2–3 hours. Do that every week and it becomes a genuine tax on actually making content.
ClipForge removes that entire chore. It's a self-hosted YouTube-to-Shorts generator: paste a YouTube URL, and ClipForge downloads the video, transcribes it, uses AI to identify the most engaging clip-worthy segments, cuts them into vertical Shorts with burned-in captions, and hands you ready-to-upload files. One clear job - long video in, Shorts out - done automatically.
From a user's perspective the flow is dead simple: paste a URL into the web UI, hit Generate, watch the pipeline progress (download → transcribe → analyze → render), and download the finished clips.
📸 SCREENSHOT 1 - The ClipForge home screen with a YouTube URL pasted in, just before hitting Generate.

How You Built It
ClipForge is a pipeline of four stages behind a FastAPI backend with a React-style frontend:
- Download -
yt-dlpfetches the source video from YouTube.
- Transcribe -
faster-whispergenerates a word-level timestamped transcript locally on the EC2 instance. Running Whisper locally instead of a paid transcription API keeps the cost profile close to zero.
- Analyze - The transcript goes to Amazon Bedrock (Claude Sonnet) with a carefully engineered prompt that asks the model to identify self-contained, high-engagement segments: a hook, a complete thought, and a natural ending, each within Shorts-friendly duration limits. The model returns structured JSON with start/end timestamps and a suggested title for each clip.
- Render -
ffmpegcuts each segment, converts it to 9:16 vertical format, and burns in styled captions generated from the word-level transcript.
📸 SCREENSHOT 2 - The pipeline in progress: the UI showing stage-by-stage status (download → transcribe → analyze → render) for a real video.

Key decisions: I deliberately chose a single EC2 instance over a Lambda-based architecture. Video processing is long-running, CPU-heavy, and needs ffmpeg plus Whisper models on disk - a poor fit for Lambda's timeout and package-size limits, but a perfect fit for one always-on instance I fully control.
Challenges: The hardest problem was getting Claude to return clip boundaries that don't cut people off mid-sentence. Raw timestamp selection produced awkward clips. The fix was two-fold: feeding the model word-level timestamps (not just sentence-level) so it can pick precise boundaries, and adding a strict JSON output schema with validation and a retry loop on the backend, so a malformed response never breaks the pipeline. Caption rendering was the second battle - synchronizing burned-in subtitles with speech required mapping faster-whisper's word timings directly into ffmpeg subtitle filters.
📸 SCREENSHOT 3 - The structured JSON response from Bedrock (Claude) showing the selected clip segments with timestamps and titles. This is the "brain" of the app in action.

AWS Services Used / Architecture Overview
- Amazon EC2 - hosts the entire application: FastAPI backend, the frontend, yt-dlp, faster-whisper, and ffmpeg. This is where the pipeline is triggered and executed.
- Amazon Bedrock (Claude Sonnet) - the intelligence layer that reads the transcript and decides which segments become Shorts.
- IAM - an instance role grants the EC2 machine least-privilege access to invoke Bedrock, so no API keys are stored on the box.
Flow: The user submits a YouTube URL through the frontend → FastAPI receives the request and kicks off a background job on EC2 → yt-dlp downloads → faster-whisper transcribes → the backend calls Bedrock's InvokeModel API with the transcript → Claude returns clip segments as JSON → ffmpeg renders each vertical Short with captions → finished files are served back to the user through the web UI.
The agent is triggered on-demand by the user's request, and the whole loop - from URL to downloadable Shorts - runs without any manual editing step.
📸 SCREENSHOT 4 - Architecture diagram: User → Frontend → FastAPI on EC2 → (yt-dlp / faster-whisper / ffmpeg) + Bedrock, with the IAM role connecting EC2 to Bedrock.

📸 SCREENSHOT 5 - The final result: generated Shorts listed in the UI with download buttons, and/or a frame from a finished vertical clip with burned-in captions visible.

What You Learned
Three big takeaways from this build:
- Prompt engineering for structured output is a real engineering discipline. Getting Bedrock to reliably return valid, well-bounded JSON timestamps took as much iteration as any code in the project. Schema validation plus retries turned an unreliable step into a dependable one.
- Word-level timestamps change everything. The difference between sentence-level and word-level transcription is the difference between clips that feel machine-cut and clips that feel human-edited.
- Right-size the architecture to the workload. Serverless is a default reflex for many builders, but long-running media pipelines taught me to evaluate the workload first. One EC2 instance with an IAM role talking to Bedrock is simpler, cheaper, and easier to debug for this job.
ClipForge now saves me 2–3 hours every single week. It's also the most satisfying kind of project: a real AI pipeline on AWS, built in a weekend, that permanently deletes one annoying task from my life.
Link to App or Repo
#apps #productivity #challenge #aws-free-tier #application
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article