SkillsMar 29, 2026·1 min read

Remotion Rule: Transparent Videos

Remotion skill rule: Rendering transparent videos in Remotion. Part of the official Remotion Agent Skill for programmatic video in React.

TL;DR
Remotion rule for rendering transparent videos using ProRes 4444 or VP9 WebM formats.
§01

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.

§02

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.

§03

How to use

  1. Install the Remotion skills collection:
npx skills add remotion-dev/skills
  1. The transparent video rule activates automatically when your AI agent detects a task involving transparent video output in a Remotion project.
  1. Use one of the two rendering methods based on your target workflow.
§04

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',
  };
};
§05

Related on TokRepo

§06

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

When should I use ProRes vs WebM for transparent videos?+

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).

Why do I need PNG image format for transparency?+

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.

Can I set transparent rendering as the default?+

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.

What is the file size difference between ProRes and WebM?+

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.

Does this rule work with Remotion Lambda?+

Yes. The same codec and pixel format settings apply to Remotion Lambda (serverless rendering). Pass the configuration through the renderMediaOnLambda function options.

Citations (3)
🙏

Source & Thanks

Created by Remotion. Licensed under MIT. remotion-dev/skills — Rule: transparent-videos

Part of the Remotion AI Skill collection on TokRepo.

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets