Remotion Rule: Transparent Videos
Remotion skill rule: Rendering transparent videos in Remotion. Part of the official Remotion Agent Skill for programmatic video in React.
What it is
This is an official Remotion agent skill rule that provides guidance for rendering transparent videos in Remotion projects. It covers two methods: ProRes (for importing into video editing software) and WebM VP9 (for web playback). The rule ensures AI coding agents apply the correct codec settings, pixel formats, and configuration options.
The rule is designed for developers creating motion graphics, overlays, lower thirds, and animated elements that need alpha channel transparency.
How it saves time or tokens
Transparent video rendering requires specific codec and pixel format combinations that are easy to get wrong. Without this rule, AI agents may generate configurations that produce opaque videos or use incompatible format combinations. The rule provides exact CLI flags and config settings for both ProRes 4444 (video editing) and WebM VP9 (web), eliminating trial-and-error debugging of codec settings.
How to use
- Install the Remotion skills collection:
npx skills add remotion-dev/skills
- The transparent video rule activates automatically when your AI agent detects a task involving transparent video output in a Remotion project.
- Use one of the two rendering methods based on your target workflow.
Example
Rendering transparent ProRes for video editing:
# CLI command for transparent ProRes 4444
npx remotion render \
--image-format=png \
--pixel-format=yuva444p10le \
--codec=prores \
--prores-profile=4444 \
MyComp out.mov
Rendering transparent WebM for web playback:
# CLI command for transparent WebM VP9
npx remotion render \
--image-format=png \
--codec=vp9 \
MyComp out.webm
Setting defaults in remotion.config.ts:
import { Config } from '@remotion/cli/config';
// ProRes 4444 transparent defaults
Config.setVideoImageFormat('png');
Config.setPixelFormat('yuva444p10le');
Config.setCodec('prores');
Config.setProResProfile('4444');
Using calculateMetadata for per-composition defaults:
import { CalculateMetadataFunction } from 'remotion';
const calculateMetadata: CalculateMetadataFunction<Props> = async () => {
return {
defaultCodec: 'prores',
defaultVideoImageFormat: 'png',
defaultPixelFormat: 'yuva444p10le',
defaultProResProfile: '4444',
};
};
Related on TokRepo
- Featured workflows — Discover more AI skills and developer tools.
- Coding tools — Browse developer tools for video creation.
Common pitfalls
- Using JPEG image format instead of PNG. PNG supports alpha channels; JPEG does not. Always set --image-format=png for transparent videos.
- Forgetting to set the pixel format to yuva444p10le for ProRes results in opaque output. The 'a' in yuva indicates alpha channel support.
- WebM VP9 transparent videos are not supported in all browsers. Safari has limited VP9 support. Use ProRes for editing workflows and WebM for Chrome/Firefox web playback.
Frequently Asked Questions
Use ProRes 4444 when you need to import the transparent video into video editing software (After Effects, DaVinci Resolve, Final Cut Pro). Use WebM VP9 for web playback in browsers that support it (Chrome, Firefox).
Remotion renders each frame as an image before encoding to video. JPEG does not support alpha channels, so frames rendered as JPEG lose transparency. PNG preserves the alpha channel through the rendering pipeline.
Yes. Use remotion.config.ts to set defaults for the entire project, or use calculateMetadata to set defaults per composition. This way the Remotion Studio renders previews with the correct settings.
ProRes 4444 files are significantly larger than WebM VP9 because ProRes uses minimal compression for editing quality. WebM VP9 applies lossy compression, producing smaller files suitable for web delivery.
Yes. The same codec and pixel format settings apply to Remotion Lambda (serverless rendering). Pass the configuration through the renderMediaOnLambda function options.
Citations (3)
- Remotion Documentation— Remotion transparent video rendering
- Remotion Skills GitHub— Remotion skills collection
- Apple ProRes— ProRes codec specifications
Related on TokRepo
Source & Thanks
Created by Remotion. Licensed under MIT. remotion-dev/skills — Rule:
transparent-videos
Part of the Remotion AI Skill collection on TokRepo.
Discussion
Related Assets
Claude-Flow — Multi-Agent Orchestration for Claude Code
Layers swarm and hive-mind multi-agent orchestration on top of Claude Code with 64 specialized agents, SQLite memory, and parallel execution.
SuperClaude — Workflow Framework for Claude Code
Adds 16+ slash commands, 9 cognitive personas, and a smart flag system to Claude Code in one pipx install.
Claudia — Tauri Desktop GUI for Claude Code
Open-source Tauri/Rust desktop app for managing Claude Code sessions, custom agents, sandboxed execution, and checkpoints.