video-editing
affaan-m/ECC
FFmpeg, Remotion, ElevenLabs, fal.ai 및 기존 편집기를 활용한 파이프라인을 통해 실제 영상 자료를 편집하여, 원본 촬영 영상을 자르고, 구조를 구성하며, 효과를 추가합니다.
...모든 것을 확장하십시오영상 편집
실제 영상 자료를 대상으로 한 AI 지원 편집 기능입니다. 프롬프트를 기반으로 영상을 생성하는 것이 아닙니다. 기존 영상을 빠르게 편집할 수 있습니다.
사용 시점
- 사용자가 영상 자료를 편집, 자르기 또는 구성하고자 할 때
- 긴 영상을 짧은 형식의 콘텐츠로 변환할 때
- 원본 영상 자료를 바탕으로 브이로그, 튜토리얼 또는 데모 영상 제작
- 기존 영상에 오버레이, 자막, 음악 또는 내레이션을 추가할 때
- 다양한 플랫폼(YouTube, TikTok, Instagram)에 맞게 영상 재구성
- 사용자가 “동영상 편집”, “이 영상 자르기”, “블로그 만들기” 또는 “동영상 워크플로”라고 말합니다
핵심 주장
AI 동영상 편집은 AI에게 동영상 전체를 생성해 달라고 요구하는 것을 그만두고, 실제 영상을 압축하고, 구조를 정리하며, 내용을 보강하는 데 활용하기 시작할 때 유용합니다. 그 가치는 생성 자체가 아닙니다. 그 가치는 압축에 있습니다.
작업 흐름
Screen Studio / 원본 영상
→ Claude / Codex
→ FFmpeg
→ Remotion
→ ElevenLabs / fal.ai
→ Descript 또는 CapCut
각 단계는 특정 역할을 담당합니다. 단계를 건너뛰지 마십시오. 하나의 도구로 모든 작업을 처리하려고 하지 마십시오.
1단계: 캡처 (Screen Studio / 원본 영상)
소스 자료를 수집합니다:
- Screen Studio: 앱 데모, 코딩 세션, 브라우저 워크플로우를 위한 정제된 화면 녹화 영상
- 원본 카메라 영상: 브이로그 영상, 인터뷰, 이벤트 녹화
- VideoDB를 통한 데스크톱 캡처: 실시간 컨텍스트가 포함된 세션 녹화 (
videodb스킬 참조)
출력물: 정리가 가능한 원본 파일.
2단계: 정리 (Claude / Codex)
Claude Code 또는 Codex를 사용하여:
- 전사 및 라벨링: 대본 생성, 주제 및 테마 식별
- 구조 계획: 어떤 부분을 남기고, 어떤 부분을 삭제하며, 어떤 순서가 적절한지 결정
- 불필요한 부분 식별: 말 끊김, 주제에서 벗어난 내용, 반복된 테이크 찾기
- 편집 결정 목록 생성: 편집 지점의 타임스탬프 및 유지할 세그먼트 지정
- FFmpeg 및 Remotion 코드 초안 작성: 명령어 및 구성 생성
예시 프롬프트:
"다음은 4시간 분량의 녹음 대본입니다. 24분 분량의 브이로그에 포함할 가장 인상적인 8개 구간을
선별해 주세요. 각 구간에 대한 FFmpeg 편집 명령어를 제공해 주세요."
이 단계는 구조에 관한 것이지, 최종적인 창작적 취향에 관한 것이 아닙니다.
3단계: 결정론적 편집 (FFmpeg)
FFmpeg은 분할, 트리밍, 연결, 전처리 등 지루하지만 필수적인 작업을 처리합니다.
타임스탬프별로 세그먼트 추출
ffmpeg -i raw.mp4 -ss 00:12:30 -to 00:15:45 -c copy segment_01.mp4
편집 결정 목록(EDL)을 기반으로 일괄 자르기
#!/bin/bash
# cuts.txt: 시작, 끝, 레이블
while IFS=, read -r start end label; do
ffmpeg -i raw.mp4 -ss "$start" -to "$end" -c copy "segments/${label}.mp4"
done < cuts.txt
세그먼트 연결
# 파일 목록 생성
for f in segments/*.mp4; do echo "파일 '$f'"; done > concat.txt
ffmpeg -f concat -safe 0 -i concat.txt -c copy assembled.mp4
더 빠른 편집을 위한 프록시 생성
ffmpeg -i raw.mp4 -vf "scale=960:-2" -c:v libx264 -preset ultrafast -crf 28 proxy.mp4
자막 작성을 위해 오디오 추출
ffmpeg -i raw.mp4 -vn -acodec pcm_s16le -ar 16000 audio.wav
오디오 레벨 정규화
ffmpeg -i segment.mp4 -af loudnorm=I=-16:TP=-1.5:LRA=11 -c:v copy normalized.mp4
레이어 4: 프로그래밍 가능한 편집 (Remotion)
Remotion은 편집 문제를 조합 가능한 코드로 변환합니다. 기존 편집기로는 처리하기 힘든 작업에 활용하세요:
Remotion을 사용할 때
- 오버레이: 텍스트, 이미지, 브랜딩, 하단 자막
- 데이터 시각화: 차트, 통계, 애니메이션 숫자
- 모션 그래픽: 전환 효과, 설명용 애니메이션
- 조합 가능한 장면: 여러 영상에 걸쳐 재사용 가능한 템플릿
- 제품 데모: 주석이 달린 스크린샷, UI 하이라이트
기본 Remotion 구성
import { AbsoluteFill, Sequence, Video, useCurrentFrame } from "remotion";
export const VlogComposition: React.FC = () => {
const frame = useCurrentFrame();
return (
{/* 메인 영상 */}
{/* 제목 오버레이 */}
AI 편집 스택
{/* 다음 세그먼트 */}
);
};
렌더링 결과
npx remotion render src/index.ts VlogComposition output.mp4
자세한 패턴 및 API 참조는 Remotion 문서를 참조하세요.
레이어 5: 생성된 자산 (ElevenLabs / fal.ai)
필요한 부분만 생성하세요. 전체 동영상을 생성하지 마세요.
ElevenLabs를 사용한 보이스오버
import os
import requests
resp = requests.post(
f"https://api.elevenlabs.io/v1/text-to-speech/{voice_id}",
headers={
"xi-api-key": os.environ["ELEVENLABS_API_KEY"],
"Content-Type": "application/json"
},
json={
"text": "여기에 나레이션 텍스트를 입력하세요",
"model_id": "eleven_turbo_v2_5",
"voice_settings": {"stability": 0.5, "similarity_boost": 0.75}
}
)
with open("voiceover.mp3", "wb") as f:
f.write(resp.content)
fal.ai를 활용한 음악 및 효과음
fal-ai-media 스킬을 사용하여 다음을 수행할 수 있습니다:
- 배경 음악 생성
- 음향 효과 (동영상을 오디오로 변환하는 ThinkSound 모델)
- 전환 효과음
fal.ai를 활용한 시각 효과 생성
존재하지 않는 삽입 샷, 썸네일 또는 B-롤에 사용:
generate(app_id: "fal-ai/nano-banana-pro", input_data: {
"prompt": "기술 관련 브이로그용 전문적인 썸네일, 어두운 배경, 화면에 코드 표시",
"image_size": "landscape_16_9"
})
VideoDB 생성형 오디오
VideoDB가 설정된 경우:
voiceover = coll.generate_voice(text="여기에 내레이션", voice="alloy")
music = coll.generate_music(prompt="코딩 브이로그용 로파이 배경 음악", duration=120)
sfx = coll.generate_sound_effect(prompt="은은한 슝 소리가 나는 전환 효과")
6단계: 최종 마무리 (Descript / CapCut)
마지막 레이어는 사람이 담당합니다. 다음 작업을 위해 기존 편집기를 사용하세요:
- 템포: 너무 빠르거나 느리게 느껴지는 편집 지점을 조정
- 자막: 자동 생성 후 수동으로 정리
- 컬러 그레이딩: 기본적인 보정 및 분위기 조절
- 최종 오디오 믹싱: 음성, 음악, 효과음(SFX)의 음량 균형 맞추기
- 내보내기: 플랫폼별 포맷 및 화질 설정
바로 여기에 창의성이 발휘되는 순간입니다. AI가 반복적인 작업을 처리해 주니, 최종 결정은 여러분이 내리시면 됩니다.
소셜 미디어 재구성
플랫폼마다 필요한 화면 비율이 다릅니다:
| 플랫폼 | 화면비 | 해상도 |
|---|---|---|
| YouTube | 16:9 | 1920x1080 |
| 틱톡 / 릴스 | 9:16 | 1080x1920 |
| 인스타그램 피드 | 1:1 | 1080x1080 |
| X / 트위터 | 16:9 또는 1:1 | 1280x720 또는 720x720 |
FFmpeg을 사용하여 화면 비율 조정하기
# 16:9를 9:16으로 (중앙 자르기)
ffmpeg -i input.mp4 -vf "crop=ih*9/16:ih,scale=1080:1920" vertical.mp4
# 16:9에서 1:1로 (중앙 자르기)
ffmpeg -i input.mp4 -vf "crop=ih:ih,scale=1080:1080" square.mp4
VideoDB를 이용한 리프레임
from videodb import ReframeMode
# 스마트 리프레임 (AI 기반 피사체 추적)
reframed = video.reframe(start=0, end=60, target="vertical", mode=ReframeMode.smart)
장면 감지 및 자동 컷
FFmpeg 장면 감지
# 장면 변경 감지 (임계값 0.3 = 중간 수준의 감도)
ffmpeg -i input.mp4 -vf "select='gt(scene,0.3)',showinfo" -vsync vfr -f null - 2>&1 | grep showinfo
자동 편집을 위한 무음 감지
# 무음 구간 찾기 (무음 구간 편집에 유용)
ffmpeg -i input.mp4 -af silencedetect=noise=-30dB:d=2 -f null - 2>&1 | grep silence
하이라이트 추출
Claude를 사용하여 대본 및 장면 타임스탬프 분석:
"타임스탬프가 포함된 이 대본과 이 장면 전환 지점을 바탕으로,
소셜 미디어에 게시할 가장 흥미로운 30초 분량의 클립 5개를 선정해 주세요."
각 도구의 가장 큰 장점
| 도구 | 강점 | 단점 |
|---|---|---|
| Claude / Codex | 체계화, 계획 수립, 코드 생성 | 창의적인 감각 측면은 아님 |
| FFmpeg | 결정론적 편집, 일괄 처리, 형식 변환 | 시각적 편집 UI 없음 |
| Remotion | 프로그래밍 가능한 오버레이, 조합 가능한 장면, 재사용 가능한 템플릿 | 비개발자의 경우 학습 곡선 |
| Screen Studio | 완벽하게 다듬어진 화면 녹화 결과물 즉시 제공 | 화면 캡처 전용 |
| ElevenLabs | 음성, 내레이션, 음악, 효과음 | 워크플로우의 핵심은 아님 |
| Descript / CapCut | 최종 편집, 자막, 마무리 작업 | 수동 작업이며 자동화 불가 |
핵심 원칙
- 생성하지 말고 편집하세요. 이 워크플로는 프롬프트를 바탕으로 콘텐츠를 생성하는 것이 아니라 실제 영상을 편집하기 위한 것입니다.
- 스타일보다 구조를 우선시하라. 시각적 요소를 손대기 전에 레이어 2에서 스토리를 제대로 잡으라.
- FFmpeg은 핵심입니다. 지루하지만 필수적입니다. 긴 영상을 다루기 쉽게 만들어 줍니다.
- 반복성을 위해 Remotion을 활용하세요. 한 번 이상 수행할 작업이라면 Remotion 컴포넌트로 만드세요.
- 선택적으로 생성하세요. AI 생성은 존재하지 않는 자산에만 사용하세요. 모든 것에 적용해서는 안 됩니다.
- 취향은 마지막 단계입니다. AI는 반복적인 작업을 덜어줍니다. 최종적인 창의적 결정은 여러분이 내립니다.
관련 기술
fal-ai-media— AI 이미지, 동영상 및 오디오 생성videodb— 서버 측 동영상 처리, 색인 생성 및 스트리밍content-engine— 플랫폼 네이티브 콘텐츠 배포
---
name: video-editing
description: Edit real video footage using a pipeline of FFmpeg, Remotion, ElevenLabs, fal.ai, and traditional editors for cutting, structuring, and augmenting raw captures.
---
# Video Editing
AI-assisted editing for real footage. Not generation from prompts. Editing existing video fast.
## When to Activate
- User wants to edit, cut, or structure video footage
- Turning long recordings into short-form content
- Building vlogs, tutorials, or demo videos from raw capture
- Adding overlays, subtitles, music, or voiceover to existing video
- Reframing video for different platforms (YouTube, TikTok, Instagram)
- User says "edit video", "cut this footage", "make a vlog", or "video workflow"
## Core Thesis
AI video editing is useful when you stop asking it to create the whole video and start using it to compress, structure, and augment real footage. The value is not generation. The value is compression.
## The Pipeline
```
Screen Studio / raw footage
→ Claude / Codex
→ FFmpeg
→ Remotion
→ ElevenLabs / fal.ai
→ Descript or CapCut
```
Each layer has a specific job. Do not skip layers. Do not try to make one tool do everything.
## Layer 1: Capture (Screen Studio / Raw Footage)
Collect the source material:
- **Screen Studio**: polished screen recordings for app demos, coding sessions, browser workflows
- **Raw camera footage**: vlog footage, interviews, event recordings
- **Desktop capture via VideoDB**: session recording with real-time context (see `videodb` skill)
Output: raw files ready for organization.
## Layer 2: Organization (Claude / Codex)
Use Claude Code or Codex to:
- **Transcribe and label**: generate transcript, identify topics and themes
- **Plan structure**: decide what stays, what gets cut, what order works
- **Identify dead sections**: find pauses, tangents, repeated takes
- **Generate edit decision list**: timestamps for cuts, segments to keep
- **Scaffold FFmpeg and Remotion code**: generate the commands and compositions
```
Example prompt:
"Here's the transcript of a 4-hour recording. Identify the 8 strongest segments
for a 24-minute vlog. Give me FFmpeg cut commands for each segment."
```
This layer is about structure, not final creative taste.
## Layer 3: Deterministic Cuts (FFmpeg)
FFmpeg handles the boring but critical work: splitting, trimming, concatenating, and preprocessing.
### Extract segment by timestamp
```bash
ffmpeg -i raw.mp4 -ss 00:12:30 -to 00:15:45 -c copy segment_01.mp4
```
### Batch cut from edit decision list
```bash
#!/bin/bash
# cuts.txt: start,end,label
while IFS=, read -r start end label; do
ffmpeg -i raw.mp4 -ss "$start" -to "$end" -c copy "segments/${label}.mp4"
done < cuts.txt
```
### Concatenate segments
```bash
# Create file list
for f in segments/*.mp4; do echo "file '$f'"; done > concat.txt
ffmpeg -f concat -safe 0 -i concat.txt -c copy assembled.mp4
```
### Create proxy for faster editing
```bash
ffmpeg -i raw.mp4 -vf "scale=960:-2" -c:v libx264 -preset ultrafast -crf 28 proxy.mp4
```
### Extract audio for transcription
```bash
ffmpeg -i raw.mp4 -vn -acodec pcm_s16le -ar 16000 audio.wav
```
### Normalize audio levels
```bash
ffmpeg -i segment.mp4 -af loudnorm=I=-16:TP=-1.5:LRA=11 -c:v copy normalized.mp4
```
## Layer 4: Programmable Composition (Remotion)
Remotion turns editing problems into composable code. Use it for things that traditional editors make painful:
### When to use Remotion
- Overlays: text, images, branding, lower thirds
- Data visualizations: charts, stats, animated numbers
- Motion graphics: transitions, explainer animations
- Composable scenes: reusable templates across videos
- Product demos: annotated screenshots, UI highlights
### Basic Remotion composition
```tsx
import { AbsoluteFill, Sequence, Video, useCurrentFrame } from "remotion";
export const VlogComposition: React.FC = () => {
const frame = useCurrentFrame();
return (
<AbsoluteFill>
{/* Main footage */}
<Sequence from={0} durationInFrames={300}>
<Video src="/segments/intro.mp4" />
</Sequence>
{/* Title overlay */}
<Sequence from={30} durationInFrames={90}>
<AbsoluteFill style={{
justifyContent: "center",
alignItems: "center",
}}>
<h1 style={{
fontSize: 72,
color: "white",
textShadow: "2px 2px 8px rgba(0,0,0,0.8)",
}}>
The AI Editing Stack
</h1>
</AbsoluteFill>
</Sequence>
{/* Next segment */}
<Sequence from={300} durationInFrames={450}>
<Video src="/segments/demo.mp4" />
</Sequence>
</AbsoluteFill>
);
};
```
### Render output
```bash
npx remotion render src/index.ts VlogComposition output.mp4
```
See the [Remotion docs](https://www.remotion.dev/docs) for detailed patterns and API reference.
## Layer 5: Generated Assets (ElevenLabs / fal.ai)
Generate only what you need. Do not generate the whole video.
### Voiceover with ElevenLabs
```python
import os
import requests
resp = requests.post(
f"https://api.elevenlabs.io/v1/text-to-speech/{voice_id}",
headers={
"xi-api-key": os.environ["ELEVENLABS_API_KEY"],
"Content-Type": "application/json"
},
json={
"text": "Your narration text here",
"model_id": "eleven_turbo_v2_5",
"voice_settings": {"stability": 0.5, "similarity_boost": 0.75}
}
)
with open("voiceover.mp3", "wb") as f:
f.write(resp.content)
```
### Music and SFX with fal.ai
Use the `fal-ai-media` skill for:
- Background music generation
- Sound effects (ThinkSound model for video-to-audio)
- Transition sounds
### Generated visuals with fal.ai
Use for insert shots, thumbnails, or b-roll that doesn't exist:
```
generate(app_id: "fal-ai/nano-banana-pro", input_data: {
"prompt": "professional thumbnail for tech vlog, dark background, code on screen",
"image_size": "landscape_16_9"
})
```
### VideoDB generative audio
If VideoDB is configured:
```python
voiceover = coll.generate_voice(text="Narration here", voice="alloy")
music = coll.generate_music(prompt="lo-fi background for coding vlog", duration=120)
sfx = coll.generate_sound_effect(prompt="subtle whoosh transition")
```
## Layer 6: Final Polish (Descript / CapCut)
The last layer is human. Use a traditional editor for:
- **Pacing**: adjust cuts that feel too fast or slow
- **Captions**: auto-generated, then manually cleaned
- **Color grading**: basic correction and mood
- **Final audio mix**: balance voice, music, and SFX levels
- **Export**: platform-specific formats and quality settings
This is where taste lives. AI clears the repetitive work. You make the final calls.
## Social Media Reframing
Different platforms need different aspect ratios:
| Platform | Aspect Ratio | Resolution |
|----------|-------------|------------|
| YouTube | 16:9 | 1920x1080 |
| TikTok / Reels | 9:16 | 1080x1920 |
| Instagram Feed | 1:1 | 1080x1080 |
| X / Twitter | 16:9 or 1:1 | 1280x720 or 720x720 |
### Reframe with FFmpeg
```bash
# 16:9 to 9:16 (center crop)
ffmpeg -i input.mp4 -vf "crop=ih*9/16:ih,scale=1080:1920" vertical.mp4
# 16:9 to 1:1 (center crop)
ffmpeg -i input.mp4 -vf "crop=ih:ih,scale=1080:1080" square.mp4
```
### Reframe with VideoDB
```python
from videodb import ReframeMode
# Smart reframe (AI-guided subject tracking)
reframed = video.reframe(start=0, end=60, target="vertical", mode=ReframeMode.smart)
```
## Scene Detection and Auto-Cut
### FFmpeg scene detection
```bash
# Detect scene changes (threshold 0.3 = moderate sensitivity)
ffmpeg -i input.mp4 -vf "select='gt(scene,0.3)',showinfo" -vsync vfr -f null - 2>&1 | grep showinfo
```
### Silence detection for auto-cut
```bash
# Find silent segments (useful for cutting dead air)
ffmpeg -i input.mp4 -af silencedetect=noise=-30dB:d=2 -f null - 2>&1 | grep silence
```
### Highlight extraction
Use Claude to analyze transcript + scene timestamps:
```
"Given this transcript with timestamps and these scene change points,
identify the 5 most engaging 30-second clips for social media."
```
## What Each Tool Does Best
| Tool | Strength | Weakness |
|------|----------|----------|
| Claude / Codex | Organization, planning, code generation | Not the creative taste layer |
| FFmpeg | Deterministic cuts, batch processing, format conversion | No visual editing UI |
| Remotion | Programmable overlays, composable scenes, reusable templates | Learning curve for non-devs |
| Screen Studio | Polished screen recordings immediately | Only screen capture |
| ElevenLabs | Voice, narration, music, SFX | Not the center of the workflow |
| Descript / CapCut | Final pacing, captions, polish | Manual, not automatable |
## Key Principles
1. **Edit, don't generate.** This workflow is for cutting real footage, not creating from prompts.
2. **Structure before style.** Get the story right in Layer 2 before touching anything visual.
3. **FFmpeg is the backbone.** Boring but critical. Where long footage becomes manageable.
4. **Remotion for repeatability.** If you'll do it more than once, make it a Remotion component.
5. **Generate selectively.** Only use AI generation for assets that don't exist, not for everything.
6. **Taste is the last layer.** AI clears repetitive work. You make the final creative calls.
## Related Skills
- `fal-ai-media` — AI image, video, and audio generation
- `videodb` — Server-side video processing, indexing, and streaming
- `content-engine` — Platform-native content distribution
모든 파일
1개 파일video-editing 설치
스킬 파일을 다운로드하여 .claude/skills/ 디렉터리에 압축을 풀어주세요.
ZIP 다운로드저장소를 클론하고 스킬 파일을 프로젝트에 복사하세요.
git clone https://github.com/affaan-m/ECC/tree/main/skills/video-editing # Copy SKILL.md to your .claude/skills/ directory
복사





집
