Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / Image, Video & Audio

Image, Video & Audio

Burn word-highlighted karaoke captions into videos with FFmpeg and FFprobe

Runs on form submission to burn word-by-word highlighted captions into an uploaded video using FFmpeg, with no paid API or account required.

What it does

## Burn word-highlighted karaoke captions onto any video with FFmpeg (free, no API) Upload a video that already has narration in it - your own voiceover, a downloaded clip, output from another tool - plus the script of what's said, and get back the same video with word-by-word highlighted captions burned in. No API key, no account, no paid service: FFmpeg's ASS subtitle renderer does the real work, running for free on your own machine. This is a standalone captioning step, distinct from this creator's other karaoke template (that one only outputs a subtitle file and MP3 - it never touches video). This one burns captions straight into picture for any video you already have, regardless of how the narration was recorded. Customization built in: pick from 4 caption styles - classic bottom captions, a bold high-contrast highlight style for punchy shorts, top-of-frame placement for videos that already have something important at the bottom (like a UI demo or a face-cam), or plain burned-in lines with no per-word highlight at all - a genuinely different render path for anyone who wants standard subtitles instead of karaoke. ### How it works 1. A form takes a video file, the exact script spoken in it, and a caption style. 2. The video is saved to a per-run temp folder and its real duration and resolution are read with FFprobe. 3. The script's words are distributed across that duration by character length (an estimate - there's no per-word timing signal for arbitrary narration), then grouped into readable lines. For the 3 karaoke styles, each line is written with per-word \k timing tags; for Plain burned-in, the same lines are written as static text with no timing tags at all. Either way the ASS file is sized to the video's own resolution, using the colors/weight/position of the chosen style. 4. FFmpeg burns that subtitle file directly into the video and the result is read back off disk. ### Setup Self-hosted n8n only - this uses Execute Command, which n8n Cloud disables. Install FFmpeg with libass support on the PATH of the process running n8n (plain brew install ffmpeg on macOS does NOT include libass - use brew install ffmpeg-full instead, or check with ffmpeg -filters | grep subtitles). Start n8n with NODES_EXCLUDE="[]" and N8N_RESTRICT_FILE_ACCESS_TO="/tmp".

The steps

  1. Video and caption text form
  2. Prepare Run
  3. Create the temp folder
  4. Restore the uploaded video
  5. Save the video to disk
  6. Read video duration and resolution (FFprobe)
  7. Build the karaoke captions (.ass)
  8. Save the captions file to disk
  9. Burn the captions into the video (FFmpeg)
  10. Verify the burn succeeded
  11. Read the captioned video back
  12. Attach the caption report to the file

Similar automations