remotion-captions

Transcribe, import, and display animated captions in Remotion videos.

Updated Sep 21, 2026
Ready to run
npx skills add https://github.com/tangyixiao/tangyixiao-skills --skill remotion-captions-tangyixiao
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: remotion-captions
Source: https://github.com/tangyixiao/tangyixiao-skills/tree/main/remotion-captions
Command: npx skills add https://github.com/tangyixiao/tangyixiao-skills --skill remotion-captions-tangyixiao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @remotion/captions, @remotion/install-whisper-cpp, and includes assets (resource) components.

What problem does it solve? Adding synchronized, word-highlighted captions to programmatic videos requires manual transcription, subtitle parsing, and frame-accurate timing logic, which is tedious and error-prone in Remotion projects. ## Core Features & Use Cases - Audio Transcription: Generate word-level timestamped captions from audio or video files using Whisper.cpp via the @remotion/install-whisper-cpp package. - SRT Import: Parse existing .srt subtitle files into the Remotion Caption JSON format with parseSrt() from @remotion/captions. - TikTok-Style Display: Group captions into pages with createTikTokStyleCaptions() and highlight the currently spoken word using token timestamps and Sequences. - Use Case: You have a talking-head video and want animated captions that highlight each word as it is spoken. Transcribe the audio to a captions JSON file, then render TikTok-style caption pages synced to the video. ## Quick Start Use the remotion-captions skill to transcribe my video's audio and display word-highlighted captions in my Remotion composition.

Frequently Asked Questions about remotion-captions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I transcribe audio to captions in Remotion?▼

Use the transcribe() function from @remotion/install-whisper-cpp in a Node.js script. Install Whisper.cpp, download a model like medium.en, transcribe a 16KHz wav file with tokenLevelTimestamps enabled, then convert the output with toCaptions() and save it as JSON.

How to display TikTok-style captions with word highlighting in Remotion?▼

Use createTikTokStyleCaptions() from @remotion/captions to group captions into pages, then render each page in a Sequence. Highlight the active word by comparing each token's fromMs and toMs against the current absolute time derived from useCurrentFrame().

Can I import .srt subtitle files into Remotion?▼

Yes, parseSrt() from @remotion/captions converts .srt file text into the Caption format. Fetch the file via staticFile() from the public folder or a remote URL, parse it, and use the result with all caption utilities.

What audio format does Whisper.cpp transcription require in Remotion?▼

The audio input should be a 16KHz wav file. Convert other formats first using ffmpeg, for example with the command ffmpeg -i input.mp4 -ar 16000 output.wav, before passing the file to transcribe().

Why do my Remotion captions lose spacing between words?▼

Captions are whitespace sensitive and expect a leading space in each word's text field. Apply whiteSpace: "pre" to the caption container style so the preserved whitespace renders correctly in the video.