Word by word captions for vertical videos with faster-whisper, ASS and ffmpeg

2026-11-25来源 dev.to OpenSourceEnglish

Hi dev.to, we are Huss Huss Creation. We make short vertical videos in the huss huss format, and the captions are the part people ask about the most: one big word at a time, landing on the syllable, in white, yellow or red.

Here is how we build them with open source tools only.

1. A timestamp for every word. We time the words on the final narration, after any speed or pitch processing, never on the raw take. faster-whisper returns a start and an end for each word when you pass word_timestamps=True.

2. One ASS file with a fixed style. Montserrat ExtraBold, 120 px on a 1080 x 1920 frame, 13 px black outline, centered at 64 % of the height. Each word appears 0.03 s before it is spoken and stays until the next one, so there is never a blank frame.

3. One ffmpeg command to burn the subtitles into the video.

Why 0.03 s early? The eye needs a frame to find the word, and a caption that lands exactly on the sound feels late.

The full guide, with the code and the exact style values, is here: https://husshusscreation.com/word-by-word-captions/

husshusscreation.com

原文:https://www.a8q9.cn/en/article/word-by-word-captions-for-vertical-videos-with-faster-whisper-ass-and-ffmpeg-34c6ab.html

相关文章