重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
remotion-render-config by ncklrs/startup-os-skills
npx skills add https://github.com/ncklrs/startup-os-skills --skill remotion-render-config生成渲染配置文档,用于定义 Remotion 视频渲染的视频输出设置、编解码器参数、格式选项和质量设置。此技能专门关注渲染/导出配置。
为以下内容生成渲染配置:
范围内:
范围外:
/remotion-composition)/remotion-component-gen)/remotion-animation)/remotion-asset-coordinator)广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
接受渲染目标规格说明:
自然语言:
使用 H.264 编解码器以高质量渲染用于 YouTube
结构化格式:
## 渲染要求
**目标平台:** YouTube
**质量等级:** 高
**格式:** MP4 (H.264)
**分辨率:** 1920x1080
**帧率:** 30 fps
**附加要求:** 准备上传,优化文件大小
生成完整的渲染配置文档:
# 渲染配置:ProductDemo
## 状态
✅ 渲染设置已定义
⏳ 准备进行视频渲染
## 渲染命令
```bash
npx remotion render \
src/index.tsx \
ProductDemo \
output.mp4 \
--codec=h264 \
--crf=18 \
--pixel-format=yuv420p \
--audio-codec=aac \
--audio-bitrate=320k
针对 YouTube 上传优化:
预估文件大小: ~45-60 MB
npx remotion render \
src/index.tsx \
ProductDemo \
output.mp4 \
--codec=h264 \
--crf=23 \
--audio-bitrate=192k
文件大小:~25-35 MB
npx remotion render \
src/index.tsx \
ProductDemo \
output.mp4 \
--codec=h264 \
--crf=15 \
--audio-bitrate=320k \
--preset=slower
文件大小:~80-100 MB
npx remotion render \
src/index.tsx \
ProductDemo \
preview.mp4 \
--crf=28 \
--preset=ultrafast
文件大小:~15-20 MB
测试渲染 (前 3 秒):
npx remotion render src/index.tsx ProductDemo test.mp4 --frames=0-90
完整渲染 并显示进度:
npx remotion render src/index.tsx ProductDemo output.mp4 --codec=h264 --crf=18
验证输出:
* 检查文件大小
* 在视频播放器中播放
* 验证音频同步
* 检查质量
4. 上传到平台 (YouTube 等)
文件过大:
质量问题:
渲染速度慢:
最佳用途:YouTube、网络交付、社交媒体
--codec=h264
--crf=18 # 质量 (数值越低越好,典型范围 15-28)
--pixel-format=yuv420p
--audio-codec=aac
--audio-bitrate=320k
质量等级:
最佳用途:现代平台、更小文件、4K 视频
--codec=h265
--crf=23
--pixel-format=yuv420p10le
注意: 并非普遍支持,但在相同质量下文件大小减少约 50%
最佳用途:WebM 格式、网络交付、Chrome/Firefox
--codec=vp9
--crf=30
--pixel-format=yuv420p
最佳用途:视频编辑、最高质量、无压缩
--codec=prores
--prores-profile=3 # HQ 配置文件
警告: 文件非常大 (~1-2 GB/分钟)
对于 30 秒 1080p 视频,30fps:
| CRF | 质量 | 文件大小 | 使用场景 |
|---|---|---|---|
| 15 | 极佳 | 80-100 MB | 存档、编辑 |
| 18 | 高 | 45-60 MB | YouTube、高质量 |
| 21 | 良好 | 30-40 MB | 网络、社交媒体 |
| 23 | 可接受 | 20-30 MB | 网络交付 |
| 28 | 预览 | 10-15 MB | 草稿、测试 |
npx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=18 \
--pixel-format=yuv420p \
--audio-codec=aac \
--audio-bitrate=320k
规格:
npx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=20 \
--audio-bitrate=192k
规格:
npx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=20 \
--audio-bitrate=192k
规格:
npx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=20 \
--audio-bitrate=192k
规格:
npx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=20 \
--audio-bitrate=192k
规格:
npx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=20 \
--audio-bitrate=192k
规格:
--concurrency=8 # 使用 8 个 CPU 核心
--sequence
--image-format=png
输出 PNG 序列用于 After Effects、Premiere 等。
--frames=30-90 # 仅渲染第 30 到 90 帧
--scale=0.5 # 以 50% 分辨率渲染 (960x540)
用于快速预览。
--overwrite
npx remotion render src/index.tsx VideoName "output/final-video.mp4"
# 要使用的 CPU 核心数
export REMOTION_CONCURRENCY=8
# 禁用浏览器沙盒 (Docker)
export REMOTION_DISABLE_CHROMIUM_SANDBOX=true
# 设置自定义 Chromium 路径
export REMOTION_CHROMIUM_PATH=/path/to/chromium
创建 remotion.config.ts:
import { Config } from "@remotion/cli/config";
Config.setCodec("h264");
Config.setCrf(18);
Config.setPixelFormat("yuv420p");
Config.setAudioBitrate("320k");
Config.setAudioCodec("aac");
Config.setConcurrency(8);
Config.setOverwriteOutput(true);
然后使用以下命令渲染:
npx remotion render
添加到 package.json:
{
"scripts": {
"render:preview": "remotion render src/index.tsx VideoName preview.mp4 --crf=28 --preset=ultrafast",
"render:draft": "remotion render src/index.tsx VideoName draft.mp4 --crf=23",
"render:final": "remotion render src/index.tsx VideoName output.mp4 --codec=h264 --crf=18",
"render:youtube": "remotion render src/index.tsx VideoName youtube.mp4 --codec=h264 --crf=18 --audio-bitrate=320k"
}
}
用法:
npm run render:youtube
渲染后:
此技能是流水线中的最后一步:
remotion-render-config (此技能)
↓ 输出:RENDER_CONFIG.md
↓ 使用时机:所有实现完成后
↓ 产生:最终视频文件
与以下技能配合使用:
/remotion-scaffold — 渲染已完成项目的输出/remotion-composition — 渲染结构化合成/remotion-component-gen — 渲染已实现的场景/remotion-spec-translator — 将此作为最后一步进行编排此技能提供生产就绪的渲染配置,确保针对目标平台优化的高质量视频输出。
每周安装次数
52
仓库
GitHub 星标数
9
首次出现
2026年1月27日
安全审计
安装在
opencode50
gemini-cli48
codex48
github-copilot48
claude-code46
cursor46
Generates render configuration documents that define video output settings, codec parameters, format options, and quality settings for Remotion video renders. This skill focuses exclusively on render/export configuration.
Generates render configurations for:
IN SCOPE:
OUT OF SCOPE:
/remotion-composition)/remotion-component-gen)/remotion-animation)/remotion-asset-coordinator)Accepts render target specifications:
Natural Language:
Render for YouTube at high quality with H.264 codec
Structured Format:
## Render Requirements
**Target Platform:** YouTube
**Quality Level:** High
**Format:** MP4 (H.264)
**Resolution:** 1920x1080
**Frame Rate:** 30 fps
**Additional:** Upload-ready, optimized file size
Generates complete render configuration document:
# Render Configuration: ProductDemo
## Status
✅ Render settings defined
⏳ Ready for video render
## Render Command
```bash
npx remotion render \
src/index.tsx \
ProductDemo \
output.mp4 \
--codec=h264 \
--crf=18 \
--pixel-format=yuv420p \
--audio-codec=aac \
--audio-bitrate=320k
Optimized for YouTube upload:
Estimated File Size: ~45-60 MB
npx remotion render \
src/index.tsx \
ProductDemo \
output.mp4 \
--codec=h264 \
--crf=23 \
--audio-bitrate=192k
File size: ~25-35 MB
npx remotion render \
src/index.tsx \
ProductDemo \
output.mp4 \
--codec=h264 \
--crf=15 \
--audio-bitrate=320k \
--preset=slower
File size: ~80-100 MB
npx remotion render \
src/index.tsx \
ProductDemo \
preview.mp4 \
--crf=28 \
--preset=ultrafast
File size: ~15-20 MB
Test render (first 3 seconds):
npx remotion render src/index.tsx ProductDemo test.mp4 --frames=0-90
Full render with progress:
npx remotion render src/index.tsx ProductDemo output.mp4 --codec=h264 --crf=18
Verify output :
Upload to platform (YouTube, etc.)
File too large:
Quality issues:
Rendering slow:
Codec selected
Quality settings defined
Platform optimized
Render command generated
Test render completed
Full render completed
Output verified
Best for: YouTube, web delivery, social media
--codec=h264
--crf=18 # Quality (lower = better, 15-28 typical)
--pixel-format=yuv420p
--audio-codec=aac
--audio-bitrate=320k
Quality Levels:
Best for: Modern platforms, smaller files, 4K video
--codec=h265
--crf=23
--pixel-format=yuv420p10le
Note: Not universally supported, but ~50% smaller files at same quality
Best for: WebM format, web delivery, Chrome/Firefox
--codec=vp9
--crf=30
--pixel-format=yuv420p
Best for: Video editing, maximum quality, no compression
--codec=prores
--prores-profile=3 # HQ profile
Warning: Very large files (~1-2 GB/minute)
For 30-second 1080p video at 30fps:
| CRF | Quality | File Size | Use Case |
|---|---|---|---|
| 15 | Excellent | 80-100 MB | Archive, editing |
| 18 | High | 45-60 MB | YouTube, high quality |
| 21 | Good | 30-40 MB | Web, social media |
| 23 | Acceptable | 20-30 MB | Web delivery |
| 28 | Preview | 10-15 MB | Draft, testing |
npx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=18 \
--pixel-format=yuv420p \
--audio-codec=aac \
--audio-bitrate=320k
Specifications:
npx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=20 \
--audio-bitrate=192k
Specifications:
npx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=20 \
--audio-bitrate=192k
Specifications:
npx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=20 \
--audio-bitrate=192k
Specifications:
npx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=20 \
--audio-bitrate=192k
Specifications:
npx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=20 \
--audio-bitrate=192k
Specifications:
--concurrency=8 # Use 8 CPU cores
--sequence
--image-format=png
Outputs PNG sequence for After Effects, Premiere, etc.
--frames=30-90 # Render frames 30-90 only
--scale=0.5 # Render at 50% resolution (960x540)
Useful for quick previews.
--overwrite
npx remotion render src/index.tsx VideoName "output/final-video.mp4"
# Number of CPU cores to use
export REMOTION_CONCURRENCY=8
# Disable browser sandbox (Docker)
export REMOTION_DISABLE_CHROMIUM_SANDBOX=true
# Set custom Chromium path
export REMOTION_CHROMIUM_PATH=/path/to/chromium
Create remotion.config.ts:
import { Config } from "@remotion/cli/config";
Config.setCodec("h264");
Config.setCrf(18);
Config.setPixelFormat("yuv420p");
Config.setAudioBitrate("320k");
Config.setAudioCodec("aac");
Config.setConcurrency(8);
Config.setOverwriteOutput(true);
Then render with:
npx remotion render
Add to package.json:
{
"scripts": {
"render:preview": "remotion render src/index.tsx VideoName preview.mp4 --crf=28 --preset=ultrafast",
"render:draft": "remotion render src/index.tsx VideoName draft.mp4 --crf=23",
"render:final": "remotion render src/index.tsx VideoName output.mp4 --codec=h264 --crf=18",
"render:youtube": "remotion render src/index.tsx VideoName youtube.mp4 --codec=h264 --crf=18 --audio-bitrate=320k"
}
}
Usage:
npm run render:youtube
After rendering:
This skill is the FINAL STEP in the pipeline:
remotion-render-config (this skill)
↓ outputs: RENDER_CONFIG.md
↓ used after: All implementation is complete
↓ produces: Final video file
Works with:
/remotion-scaffold — Render outputs completed project/remotion-composition — Renders structured composition/remotion-component-gen — Renders implemented scenes/remotion-spec-translator — Orchestrates this as final stepThis skill provides production-ready render configurations that ensure high-quality video output optimized for target platforms.
Weekly Installs
52
Repository
GitHub Stars
9
First Seen
Jan 27, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode50
gemini-cli48
codex48
github-copilot48
claude-code46
cursor46
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
52,700 周安装