Claude Code video editor: turn long videos into Shorts
Watch on YouTube ↗ Subscribe on YouTube ↗
Written guide: Claude Code Video Editing: Install the video-use Skill
Use a Claude Code skill and FFmpeg to edit a long video into a vertical Short, add captions and review the result.
Video summary
Learn how to use a custom skill for automated video editing, which can be integrated into Claude Code, Codex, OpenCode, and Gemini. This video shows you how to clone the GitHub repository using the command-line interface and walks through the process of editing long-form videos into short-form videos to increase your engagement on YouTube.
The video covers 9 parts: Automating video editing with a custom Claude skill., Converting long-form content into a 9x16 YouTube Short., Processing with FFmpeg: How the AI identifies talking head vs. screen share., Integrating the skill into the Claude Code terminal., Refining the Edit: Prompting Claude to remove overlapping PIP elements., Faster Whisper Integration: Extracting audio for engagement analysis., Using ElevenLabs API for custom AI voiceovers., Burned-in Subtitles: Automatically rendering captions for shorts., and Final Result: Reviewing the AI-edited short-form clip..
What this video covers
What you build
A Claude Code skill setup that transcribes a long video with Faster Whisper, picks a clip, crops the layout with FFmpeg and renders a vertical Short with captions.
Tools used
Key steps
- Clone the skill from GitHub, install FFmpeg and place the skill under .claude/skills.
- 0:44 - Prompt for a 1080p vertical 30-second Short with the screen share on top and the webcam below.
- 1:38 - Watch FFmpeg find the webcam in the bottom right and plan the crop.
- 3:06 - Spot a second webcam at the top and ask Claude for a better prompt for a 15 to 30 second clip with no webcam in the top half.
- 4:31 - Run the skill again with Faster Whisper transcribing the audio to find the best standalone moment.
- 4:58 - Note the optional ElevenLabs voiceover, which is skipped because there is no API key.
- 6:50 - Render burned-in subtitles and verify three sample frames.
- 8:38 - Review the finished Short.
Not covered
- A polished result. Mike says the subtitles could sit better and the output could be improved.
- A fair comparison with Opus Clip. Mike says the free plan results were poor but does not run the same clip through both.
- Which model ran the work and its cost beyond a remark that it was cheap through OpenRouter.
- Automating the process with a scheduled job, which is only suggested.
In this video
- 0:00 Automating video editing with a custom Claude skill.
- 0:44 Converting long-form content into a 9x16 YouTube Short.
- 1:38 Processing with FFmpeg: How the AI identifies talking head vs. screen share.
- 2:16 Integrating the skill into the Claude Code terminal.
- 3:06 Refining the Edit: Prompting Claude to remove overlapping PIP elements.
- 4:31 Faster Whisper Integration: Extracting audio for engagement analysis.
- 4:58 Using ElevenLabs API for custom AI voiceovers.
- 6:50 Burned-in Subtitles: Automatically rendering captions for shorts.
- 8:38 Final Result: Reviewing the AI-edited short-form clip.
Questions and answers
What do I need to install?
The skill from GitHub and FFmpeg, plus a package to download videos from YouTube if you want that. Claude Code then runs it from the skills folder.
How long did the Short take to make?
The second run was still working after about five minutes of analysis, and the video render itself took about a minute and a half. The finished clip is about 17 seconds.
Did the first prompt work?
Only partly. The webcam appeared in both halves of the layout, so a second prompt was written to remove it from the top.
Keep learning
Transcript
Hey there, welcome to the channel. In this video, I'm going to be showing you how to use a custom skill which will do all of your video editing for you. You can easily integrate it into Claude Code, Codex, or also Gemini. This is the official GitHub. They currently have about 3,000 stars over here and you can see what it looks like running in the command line and also how to install it.
So, all you have to do is do a get clone into your local directory and then you're just going to install a few packages with Brew, which is a package manager. FFmpeg and then you can also automatically download videos from YouTube if you want to install that package as well. And then you're just going to CD into your directory, run Claude, and tell it what you want to do.
Read the rest of the transcript
So, as you can see right here, I'm in my videos directory in the edited folder and what I want to do specifically is to create YouTube Shorts from my long-form video content. So, what I've done is I've just put one of my latest tutorials in this folder and now I've just told it to create a YouTube video in 9 by 16 format. 1080p should be 30 seconds long-form.
The talking head should be in the lower bottom half and the screen share video should be in the upper half. Output the finished video to this directory. Now, obviously, that's not the best prompt. I could have gone over to Claude and created an entire prompt over here inside Claude, but I figured this is going to work pretty well. So, what it's doing is it's just getting the video file. You can see that it's a single stream.
It's even outputting the length of the video and the size, the resolution, also the frames per second, and it's checking to see what's in the video. It's going to grab a frame to understand the layout before planning. So, now it's running FFmpeg. This is going to do all the video processing. It's going to take that video screen share full frame with webcam PIP, which is the talking head in the bottom right, and it's going to identify exactly where to crop it.
Now, it sees that the webcam is confirmed at the bottom right, which is where my head is in all of the videos when I create these tutorials. It's going to get that crop region and it's going to build the top half and the bottom half of the video. So, you can see exactly what it's doing right here. There's the input and then it's also putting together the output here. And we'll see if this works. And again, this is completely free.
All you have to do is grab it on GitHub. You're going to put it in your local directory under the dot Claude / skills and then you can easily access it from Claude Code over here. So, you just do backslash video use and then you will enter your prompt right there. So, it looks like it got the layout looks correct. The screen half is in the top half, the talking head bottom half cropped. The face is clean and well-framed and boom, there we go.
So, it has the output file, PyCode Tutorial Short. Looks like it's 30 seconds long and it has some notes here as well. So, I'm just going to come over to my videos directory. There it is. It just created the video and let's take a look at it real quick. I don't really want the PIP on the top here as well.
So, if I wanted to fine-tune this at all, I could also just come over here to Claude and tell it to create a prompt to edit a video from long-form into short-form for YouTube. Should be 15 to 30 seconds long and I want the PIP in the bottom half and then the screen share portion in the upper half and it should not include the PIP. So, now it's going to create the entire prompt. It looks like it is actually creating a video editing skill.
So, that's not quite what I want. So, I just wanted it to create the entire prompt for me and this is what it's doing right now. So, edit the provided long-form video into a YouTube short form using exact specifications. Should be 15 to 30 seconds long. Identify and extract the most engaging, that's really important right there. Most engaging high-value clip from the source video that works as a standalone moment.
And then it's included the layout here for the YouTube short as well as the technical requirements, content guidelines, and that's all. And it says you can paste into your video editor AI tool, give it to an editor, or use it as a brief for CapCut, Adobe Premiere, Descript. I'm not going to do any of that. I'm just going to take it and put it into my custom skill over here, video use. There we go.
So, now it's taken that entire prompt and it's going to run the custom skill once again inside Claude Code. And I could also set up a cron job or something to just run this every time I post a new YouTube video, so I don't even have to screw around. It will just do it automatically. You can see that it actually installed something called Faster Whisper locally so that it can extract the audio in order to determine what are the key sections of the video, which is
really important in order to increase engagement on the YouTube Shorts. You need to make sure that you're using the right clips from the long-form video when you're converting it over to a YouTube Short. So, shouldn't take too long to finish. It's only been running for about 5 minutes now. And then it you can also integrate your ElevenLabs API key in here as well. So, I've already made videos about ElevenLabs.
It is a powerful platform to generate AI voices and they do have a free plan as well. So, I may just do this, but for most of the videos, I really don't need an AI voice because I'm already speaking in the video. So, I don't necessarily need ElevenLabs, but that is an option as well. And we can see there's now this directory called edit where it's got the transcript, which we can see over here.
This is the entire transcript of the video, which it got using Whisper. Now, the transcript is packed. It's going to read it and find the best standalone clip. So, that's what it's doing now. And then the bottom half is just going to be the webcam, so that's my talking head PIP in the bottom half. And it's just putting all of the pieces together using this completely free skill over here on GitHub.
I'll include a link in the description below where you can download it completely for free and then you can get started right away. All of the instructions are right here. Very easy to set up and run. And ultimately, this is going to save me a lot of time because I don't want to edit the YouTube Shorts manually. I'd rather just have a custom skill to do everything for me. There are tools available, as you can imagine, to do this sort of stuff as well.
There's one called Opus, which I've been using for about a year now to take my long-form videos and turn them into YouTube Shorts, but honestly, on the free plan, I'm really not impressed by the results because as you can see right here, it's just got the the screen share portion with my face in the bottom right-hand corner and it really doesn't look good.
So, I want to just take this completely out of the equation and uh use a completely free custom skill that I can integrate into Claude Code to do all of this for me. Okay, so now it looks like it was able to generate the complete video file using FFmpeg. It only took about a minute and a half, roughly, and then it's now generating the subtitles and rendering in full composite. So, it should add burned-in subtitles at the bottom, which is exactly what I want.
I didn't actually specify that in my prompt over here. It definitely takes its sweet ass time to create the the finished YouTube Short, but it looks like we are getting the individual sections over here, which we can just scroll through. You can see these are the subtitles that it's creating, which looks really nice. And then it's also got the screen share section with the PIP and also the PIP at the bottom and the screen share at the top, but I do not want to include a
second PIP at the top. So, we'll see if it can actually just crop my face out here and then just put the screen share at the top and my face at the bottom. So, now it looks like it's verifying the video content. The output's about 2.1 megabytes. It's going to verify all the frames now. And it's just going to put all of these pieces together that it has in the verified folder. And hopefully, it looks very, very similar to this with the subtitles.
I I feel like the subtitles could be a bit better positioned, but if I wanted to change any of that, I can obviously go ahead and do so as well by fixing up the prompt over here. Obviously, I could embellish this as much as I want, but overall, I think it's going to do a pretty good job. So, there we go. It says all three frames passed self-evaluation. The layout's clean, captions timed correctly, and it's 60 frames per second.
It's going to be about 17 seconds long. So, it looks like it was able to finish the video now. So, it created PyCode Tutorial Short version two. So, if we come back to the directory here, this is the finished video and here's all the information about it. Looks like the API key was not set, but that's okay because I don't need to use ElevenLabs as I explained earlier. And now I'm just going to mute this and we can open up the finished video. Hi.
So, it's really, really cost-effective and that's just through the OpenRouter model. It could be better, but overall, it's still a work in progress and you can just this is just a simple example showing how to get started using video use. I highly recommend this skill. There's probably even better ones out there available as well, but this is just the one I've been demoing in this video. So, hopefully, you found it useful.
Let me know what you're able to create with it and please subscribe to the channel if you haven't already. With that being said, take care, stay safe. Peace from Thailand. Signing off.



