Back to Blog
Case Studies

How I Built My Own Opus Clip Alternative With Claude Code

I wanted a clipping tool where I choose what the AI looks for. So I built one with Claude Code. Here is the full pipeline, the parts that were hard, and what broke.

DS
Danish Sofi
October 17, 2026
SHARE
How I Built My Own Opus Clip Alternative With Claude Code

Opus Clip, Submagic and Vidyo all work the same way: you upload a long video, the AI scores every moment for "virality", and you get the clips it likes. That is fine until you want something specific. When I am clipping a podcast for a client I don't want "the most viral 30 seconds". I want "every time they talk about pricing" or "the strongest hook in the first ten minutes".

So I built my own Opus Clip alternative, called Hive Clips AI, with Claude Code. You give it a long video and a plain English prompt, and it transcribes the video, uses an LLM to find the moments that match your prompt, reframes each clip to keep the speaker in shot, burns in word-by-word captions and renders vertical clips ready to post. The prompt drives the selection, not a fixed score. That is the whole difference.

Update, November 2026: Hive Clips AI is now a finished Windows app. You can download it free from hiveclips.pro and make 3 clips with every feature switched on, no card needed. This post is the build log of the first version, and I've added what changed since the first build further down.

Hive Clips AI home screen with a YouTube link field and a video upload area
The Hive Clips AI home screen today. Paste a YouTube link or drop in a long video.

Here is how it works, stage by stage, and what I would tell you before you try building one.

What does an AI clipping tool actually do?

Strip the marketing away and every clipping tool is the same nine-step pipeline. I built mine so each step runs on its own and saves its result, which matters later.

StageWhat happensWhat I used
1. IngestUpload a file or paste a YouTube linkyt-dlp, FFmpeg
2. TranscribeSpeech to text with a timestamp on every wordWhisper API, or faster-whisper locally
3. SelectFind moments that match your promptGPT-4o with structured JSON output
4. ReviewYou pick which candidates to keepNext.js UI
5. ConfigureChoose aspect ratio and caption styleNext.js UI
6. ReframeTrack the face and move a virtual cameraOpenCV, PySceneDetect
7. CaptionBuild animated word-level captionsASS subtitles, libass
8. RenderCrop, burn captions, encodeFFmpeg
9. DeliverPlay, download or regenerateFastAPI + Next.js

The backend is Python with a FastAPI wrapper. The frontend is Next.js 15 with TypeScript and Tailwind. There is also a command line version, which is where I proved the whole pipeline worked before touching the UI.

Diagram of the nine Hive Clips AI pipeline stages from ingest to deliver
The nine stages. Select and Reframe are where most of the work went.

How does the AI pick the right moments?

This is the part people assume is magic. It is mostly careful plumbing.

A one hour podcast transcript is tens of thousands of tokens. Sending all of it in one request gives you worse picks, so the transcript is split into 9 minute windows with a 15 second overlap. The overlap is there so a great moment that sits across a window boundary doesn't get cut in half.

Each window goes to GPT-4o with the creator's prompt and a strict instruction: return 2 to 5 clips, each between 20 and 90 seconds, and only clips that genuinely match the intent. The model also rates each clip's hook from 1 to 10, judged on the first three seconds, because that is what decides whether someone stops scrolling.

The output is forced into a JSON schema, so I never have to parse loose text:

{
  "clips": [
    {
      "start_time": 412.3,
      "end_time": 468.9,
      "title": "Why he stopped charging hourly",
      "reasoning": "Direct answer about pricing with a strong opening line",
      "hook_strength": 8
    }
  ]
}

After every window is done, the candidates get merged and re-ranked, and you see them in the review screen. Nothing renders until you pick. That review step is the thing I missed most in the paid tools.

That was the first version. The current app reads the whole transcript at once and can stitch one clip together from parts anywhere in the video. I cover that in what changed since the first build.

Why is auto-reframing the hardest part?

Turning a 16:9 video into a 9:16 clip means cropping a narrow window out of a wide frame and moving that window to follow the speaker. The obvious way is to detect the face on every frame and centre the crop on it.

That looks terrible. Face detection is noisy, so the crop shakes constantly, and when the video cuts to a different camera the crop slides across the cut like a drunk camera operator.

The fix is to treat the crop as a virtual camera with physics, not a box that snaps to the face:

  • A critically damped spring. The camera moves toward the face but never overshoots. I ported Unity's SmoothDamp function for this. Smooth time is 0.55 seconds, which feels calm without lagging behind.
  • A deadzone. If the face moves less than 6% of the crop width, the camera ignores it. This alone kills most of the jitter.
  • A speed limit. Pans have a maximum speed, so a false detection can't whip the frame across the screen.
  • Scene cut resets. PySceneDetect finds the hard cuts. At a cut the camera drops its speed and repositions instead of carrying a pan across the edit. Between cuts it must move smoothly.
  • Headroom. The subject sits about 10% above centre, the way a real camera operator would frame a person.

The camera path becomes a crop track that FFmpeg applies during the render. Face detection itself is a basic OpenCV detector that needs no model download. I kept the smoothing separate from detection on purpose, so I can swap in a better detector later without touching the part that makes it look good.

Chart comparing noisy face detection points with the smooth virtual camera path
Real output from the Hive Clips smoother on noisy test data. The camera ignores small jitter and makes one calm pan when the speaker moves.
Hive Clips AI style screen with output canvas options 9:16, 1:1, 4:5, 16:9 and 4:3 and a live phone preview
Picking the output canvas. 9:16 for Reels, Shorts and TikTok, with a live preview of the finished clip on the right.

If you build one of these, spend your time on the smoothing, not the detector. The smoothing is what makes it look professional.

How do the word-by-word captions work?

Most tutorials use SRT subtitles. SRT can't do the captions people actually want on Shorts and Reels, where each word lights up as it is spoken.

I used ASS subtitles instead. ASS supports per-word timing, colours and animation, and FFmpeg burns it into the video through libass. Because the transcript has a timestamp for every word, each word can change colour exactly when it is said.

The first build shipped with 24 caption presets. The original 8 cover the basics: a karaoke style, a minimal style, a news bar and an outline style. Then I added 16 styles based on what is working on short-form right now, including a Hormozi-style highlight where the full line shows and the active word recolours, a one-word-at-a-time punch style, and a word reveal where words pop in and stay. The app now has more than 25, and you can drag captions anywhere on the screen and save your own style.

Hive Clips AI Caption Styles page with presets including Bold Pop, Karaoke Classic, Hive Yellow and Hormozi Green
The Caption Styles page. Each preset is a starting point you can fine tune per clip, and any of them can be your default.

What broke while building it?

A few honest notes, because build logs that only show the happy path aren't useful.

The web app broke when the CLI didn't. When I added caption overrides (custom colours and sizes per clip), the command line kept working but the web API failed. The database was missing the new column. The fix was a one-line migration, but it taught me to test both entry points every time the data model changes.

Saving every stage paid off. Each of the nine stages writes its result and a job record to the database. So when a render fails, I re-run the render only. I don't wait for the transcription again or pay for the AI selection twice. On a long podcast that is the difference between seconds and many minutes.

Mock mode made testing free. Without an OpenAI key, the tool runs with a stand-in transcript and a simple moment picker, but reframing, captions and rendering are fully real. I could test the hardest parts of the pipeline all day without spending anything on API calls. The UI labels mock mode clearly so stand-in output is never mistaken for real picks.

How did Claude Code fit in?

I wrote a product spec first: the nine stages, the five screens, and the rules for each step. Then I built it with Claude Code one stage at a time, starting from the command line and proving each stage worked before moving on.

Two habits made the biggest difference:

  1. Interfaces before infrastructure. Storage, the job queue, the database and the AI provider each sit behind a simple interface. Right now it runs on SQLite, local files and a local queue. Moving to Postgres, Cloudflare R2 and a proper job queue means swapping one piece at a time, not rewriting the app.
  2. Pure maths in its own file. The camera smoother has no video code in it at all. That made it fast to test and easy for Claude Code to reason about, which is exactly where you want precision.

If you are new to building with Claude Code, my beginner's guide to building an app with Claude Code covers the setup, and Claude Code pricing and free options covers what it costs to run.

What has changed since the first build?

Hive Clips AI started as a web app I ran on my own machine. It is now a Windows desktop app with a free trial and paid plans, and a good part of my old to-do list got built along the way:

  • It runs on your PC. Videos are cut and rendered on your own computer and never uploaded. Only the transcript text goes to Hive Cloud so the AI can read it.
  • Stitched clips. Instead of reading the transcript in 9 minute windows, the AI now reads the whole thing and returns exactly the number of clips you ask for. One clip can join parts from anywhere in the video, for example a strong line from minute seven as the hook, followed by the setup from minute one.
  • Clips from videos with no speech. Music, ASMR and gameplay videos get clips picked from the sound and picture instead of the transcript.
  • Speaker-following reframe. It works out who is talking and moves the vertical crop to follow them, which matters most on podcasts and interviews.
  • Live progress. You see a percentage for upload, analysis and render, and Hive tells you roughly how long a video will take on your PC before you start.
  • Brand kits. Save your logo, title style, end card and background music once (the music dips when people talk) and reuse them on every clip, plus 15 colour looks.
  • Exact clip lengths and edits. Pick Auto or 15 to 90 seconds, and edit captions on a finished clip without rebuilding everything.
Hive Clips AI review screen listing picked moments, each with why it was picked, a hook score and the parts it was stitched from
The review screen. Every pick shows why it was chosen, a hook score, and the timestamps of the parts it was joined from.
Hive Clips AI results screen showing the finished vertical clips with captions and a Download all button
Finished clips. This 9 minute podcast took just over 2 minutes from upload to 5 captioned clips.

At the time of writing, the free trial gives you 3 finished clips with no card. Creator is $10 a month (₹199 in India) with 20 hours of AI credits, and Pro is $15 a month (₹800) with 50 hours of AI credits and use on 2 PCs. An hour of AI credit means the AI reading one hour of video to find clips; re-rendering and exporting don't use credits. The Hive Clips pricing page has the current plans.

What is next for the tool?

Still on the list:

  • A Mac version (Hive is Windows only for now)
  • Split-screen layouts for two-person podcasts
  • Auto-posting finished clips to TikTok, Instagram and YouTube Shorts

Frequently asked questions

Is there a free Opus Clip alternative?

Yes, if you are willing to run it yourself. Open-source pieces like Whisper (transcription), FFmpeg (rendering) and PySceneDetect (scene cuts) are free, and that is most of a clipping tool. The paid part is usually the AI moment selection, and you can run that on a local model to bring the cost close to zero. If you'd rather not build anything, Hive Clips AI has a free trial (3 finished clips, no card), and I compared 6 free, open-source Opus Clip alternatives you can run yourself.

How does Opus Clip choose which moments to clip?

Opus Clip and similar tools score moments with their own virality model and give you the top picks. You can't tell them what to look for beyond basic settings. A prompt-driven tool like mine lets you describe the moment you want in plain English.

Can GPT-4o pick good clips from a transcript?

Yes, if you give it structure. Split long transcripts into overlapping windows, ask for a fixed number of clips with strict start and end times, and force a JSON schema. Then review the picks yourself before rendering. It is good at finding topics, less reliable at judging delivery, which is why the review step matters.

What is the hardest part of building an AI clipping tool?

Reframing. Detecting a face is easy. Making the crop move smoothly, without jitter, without overshooting and without sliding across scene cuts, is where most of the work goes.

Do I need a GPU to run it?

No. Hive runs on normal Windows 10 and 11 laptops. Transcription uses faster-whisper, which runs on a CPU, finding the moments happens on Hive Cloud, and the face detector is lightweight. A GPU makes rendering faster, and the renderer will use one if you have it.

Can I download Hive Clips AI?

Yes. Hive Clips AI is a Windows app, and you can download it from hiveclips.pro. The free trial makes 3 finished clips with every feature on, no card needed. There's no Mac version yet.


Want to try it? Download Hive Clips AI for Windows and make your first 3 clips free. If you want a clipping pipeline like this built for your channel or agency, get in touch.

DS

Danish Sofi

|AI Automation Consultant & Systems Strategist

I help businesses generate more leads through smarter websites and AI automation systems. Expert in n8n workflows, custom software, and growth-focused development.

Need help building systems like this for your business?

Book a Discovery Call
Weekly Insights

Enjoyed the read?

Join operators getting actionable automation playbooks and systems thinking every week. Free.