Loading...
Loading...
Compare original and translation side by side
/remotion-composition/remotion-component-gen/remotion-animation/remotion-asset-coordinator/remotion-composition/remotion-component-gen/remotion-animation/remotion-asset-coordinatorRender for YouTube at high quality with H.264 codecundefinedRender for YouTube at high quality with H.264 codecundefinedundefinedundefinedundefinedundefinednpx remotion render \
src/index.tsx \
ProductDemo \
output.mp4 \
--codec=h264 \
--crf=18 \
--pixel-format=yuv420p \
--audio-codec=aac \
--audio-bitrate=320knpx remotion render \
src/index.tsx \
ProductDemo \
output.mp4 \
--codec=h264 \
--crf=18 \
--pixel-format=yuv420p \
--audio-codec=aac \
--audio-bitrate=320knpx remotion render \
src/index.tsx \
ProductDemo \
output.mp4 \
--codec=h264 \
--crf=23 \
--audio-bitrate=192knpx remotion render \
src/index.tsx \
ProductDemo \
output.mp4 \
--codec=h264 \
--crf=23 \
--audio-bitrate=192knpx remotion render \
src/index.tsx \
ProductDemo \
output.mp4 \
--codec=h264 \
--crf=15 \
--audio-bitrate=320k \
--preset=slowernpx remotion render \
src/index.tsx \
ProductDemo \
output.mp4 \
--codec=h264 \
--crf=15 \
--audio-bitrate=320k \
--preset=slowernpx remotion render \
src/index.tsx \
ProductDemo \
preview.mp4 \
--crf=28 \
--preset=ultrafastnpx remotion render \
src/index.tsx \
ProductDemo \
preview.mp4 \
--crf=28 \
--preset=ultrafastnpx remotion render src/index.tsx ProductDemo test.mp4 --frames=0-90npx remotion render src/index.tsx ProductDemo output.mp4 --codec=h264 --crf=18npx remotion render src/index.tsx ProductDemo test.mp4 --frames=0-90npx remotion render src/index.tsx ProductDemo output.mp4 --codec=h264 --crf=18undefinedundefined--codec=h264
--crf=18 # Quality (lower = better, 15-28 typical)
--pixel-format=yuv420p
--audio-codec=aac
--audio-bitrate=320k--codec=h264
--crf=18 # Quality (lower = better, 15-28 typical)
--pixel-format=yuv420p
--audio-codec=aac
--audio-bitrate=320k--codec=h265
--crf=23
--pixel-format=yuv420p10le--codec=h265
--crf=23
--pixel-format=yuv420p10le--codec=vp9
--crf=30
--pixel-format=yuv420p--codec=vp9
--crf=30
--pixel-format=yuv420p--codec=prores
--prores-profile=3 # HQ profile--codec=prores
--prores-profile=3 # HQ profile| 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 |
| 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=320knpx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=18 \
--pixel-format=yuv420p \
--audio-codec=aac \
--audio-bitrate=320knpx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=20 \
--audio-bitrate=192knpx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=20 \
--audio-bitrate=192knpx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=20 \
--audio-bitrate=192knpx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=20 \
--audio-bitrate=192knpx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=20 \
--audio-bitrate=192knpx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=20 \
--audio-bitrate=192knpx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=20 \
--audio-bitrate=192knpx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=20 \
--audio-bitrate=192knpx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=20 \
--audio-bitrate=192knpx remotion render src/index.tsx VideoName output.mp4 \
--codec=h264 \
--crf=20 \
--audio-bitrate=192k--concurrency=8 # Use 8 CPU cores--concurrency=8 # Use 8 CPU cores--sequence
--image-format=png--sequence
--image-format=png--frames=30-90 # Render frames 30-90 only--frames=30-90 # Render frames 30-90 only--scale=0.5 # Render at 50% resolution (960x540)--scale=0.5 # Render at 50% resolution (960x540)--overwrite--overwritenpx remotion render src/index.tsx VideoName "output/final-video.mp4"npx remotion render src/index.tsx VideoName "output/final-video.mp4"undefinedundefinedundefinedundefinedremotion.config.tsimport { 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 renderremotion.config.tsimport { 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 renderpackage.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:youtubepackage.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:youtuberemotion-render-config (this skill)
↓ outputs: RENDER_CONFIG.md
↓ used after: All implementation is complete
↓ produces: Final video file/remotion-scaffold/remotion-composition/remotion-component-gen/remotion-spec-translatorremotion-render-config (this skill)
↓ outputs: RENDER_CONFIG.md
↓ used after: All implementation is complete
↓ produces: Final video file/remotion-scaffold/remotion-composition/remotion-component-gen/remotion-spec-translator