Performs high-performance video editing using the powerful resources of the MiniPC node. It combines code-based video generation using Remotion with precise processing using FFmpeg.
🏗️ Environment Setup (MiniPC)
- IP:
<MINIPC_IP>(Tailscale) - Remotion project:
$HOME/remotion-videos - FFmpeg: Installed globally
🚀 Key Features
1. Remotion Component Rendering
Renders React code into MP4 video. It is excellent for data-driven personalized video production.
How to run:
# MiniPC에서 실행
cd $HOME/remotion-videos
npx remotion render <CompositionId> out/video.mp4 --props '{"title": "안녕, 미스 김!"}'
2. FFmpeg Precise Processing
A collection of the most frequently used practical commands.
| Task | Command |
|---|---|
| Cut editing | ffmpeg -y -i input.mp4 -ss 00:00:10 -to 00:00:20 -c copy output.mp4 |
| Subtitle compositing (Burn-in) | ffmpeg -y -i input.mp4 -vf "subtitles='input.srt'" output.mp4 |
| Format conversion (MOV→MP4) | ffmpeg -y -i input.mov -c:v libx264 -c:a aac output.mp4 |
| Audio extraction (MP3) | ffmpeg -y -i input.mp4 -vn -acodec libmp3lame output.mp3 |
| Mute video | ffmpeg -y -i input.mp4 -an -c:v copy output.mp4 |
| GIF conversion | ffmpeg -y -i input.mp4 -vf "fps=15,scale=480:-1" -loop 0 output.gif |
| Change resolution (720p) | ffmpeg -y -i input.mp4 -vf "scale=1280:720" -c:a copy output.mp4 |
3. AI Subtitle (Whisper) Integration Design
A workflow that converts audio to text to generate a subtitle file and overlays it onto the video.
- Audio extraction: Extract only the audio from the video using FFmpeg.
- Transcription: Use the Whisper model (Mac Studio or MiniPC) to
.srtgenerate the file. - Subtitle compositing: FFmpeg의
subtitlesUse the filter to permanently burn subtitles into the video (Burn-in).
🛠️ Practical Usage Patterns (nodes.run)
When a subagent issues commands to the MiniPC, it uses the following patterns.
// MiniPC에서 렌더링 후 결과물 확인
await nodes.run({
node: "MiniPC",
command: "cd $HOME/remotion-videos && npx remotion render MyComp out/result.mp4"
});
⚠️ Precautions
- MiniPC path: Always
$HOME/check the absolute path based on this. - Performance: Remotion rendering is CPU-intensive. If possible, run it in the background through a subagent.
- Subtitle path: FFmpeg
subtitlesWhen using the filter, escaping may be required if the path contains special characters. - Large files: Avoid transferring large files between nodes as much as possible, and bring back only the final result after completing processing inside the MiniPC.
Miss Kim's video skill prioritizes practical efficiency and the quality of the output. 💋