Remotion Rule: Transparent Videos
Remotion skill rule: Rendering transparent videos in Remotion. Part of the official Remotion Agent Skill for programmatic video in React.
Installation agent prête
Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.
npx -y tokrepo@latest install 7eef8da9-746e-4941-b3cc-f5f2110d59e2 --target codexÀ exécuter après confirmation du plan en dry-run.
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.
Questions fréquentes
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.
Sources citées (3)
- Remotion Documentation— Remotion transparent video rendering
- Remotion Skills GitHub— Remotion skills collection
- Apple ProRes— ProRes codec specifications
En lien sur TokRepo
Source et remerciements
Created by Remotion. Licensed under MIT. remotion-dev/skills — Rule:
transparent-videos
Part of the Remotion AI Skill collection on TokRepo.
Fil de discussion
Actifs similaires
Remotion Rule: Measuring Dom Nodes
Remotion skill rule: Measuring DOM element dimensions in Remotion. Part of the official Remotion Agent Skill for programmatic video in React.
Remotion Rule: Videos
Remotion skill rule: Embedding videos in Remotion - trimming, volume, speed, looping, pitch. Part of the official Remotion Agent Skill for programmatic video in React.
Remotion Rule: Text Animations
Remotion skill rule: Typography and text animation patterns for Remotion.. Part of the official Remotion Agent Skill for programmatic video in React.
Remotion Rule: Timing
Remotion skill rule: Interpolation curves in Remotion - linear, easing, spring animations. Part of the official Remotion Agent Skill for programmatic video in React.