> ## Documentation Index
> Fetch the complete documentation index at: https://docs.videodb.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Subtitle Generation Workflow

> Generate and embed professional subtitles in videos, then save to Google Drive using n8n and VideoDB.

This workflow takes video URLs, uploads them to VideoDB, indexes spoken content, adds subtitle overlays directly to the video, and saves the subtitled videos to Google Drive. It creates professional subtitle overlays that are permanently embedded in the video.

The workflow is useful for creating accessible video content with professional subtitle styling that works across all platforms, unlike platform-specific auto-generated subtitles.

<iframe className="w-full aspect-video rounded-xl" src="https://www.youtube.com/embed/lUP0XmNOXtA" title="Subtitle Generation Workflow" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

## Prerequisites

1. **n8n Instance**: Running n8n automation platform (cloud or self-hosted)
2. **VideoDB API Key**: Obtain from [VideoDB Console](https://console.videodb.io)
3. **Google Drive Account**: With API access for file uploads
4. **Video URLs**: Access to video content that needs subtitles

## Workflow Steps

### Step 1: Video Input and Upload

1. Form trigger collects YouTube video URL for subtitle processing
2. Upload video content to VideoDB for processing
3. Wait for upload completion before proceeding

### Step 2: Spoken Content Indexing

1. Monitor upload status via HTTP request polling
2. Index spoken words from the video content
3. Generate timestamped transcript for subtitle creation

### Step 3: Subtitle Generation and Overlay

1. Use VideoDB subtitle operation to add subtitle overlays
2. Create professional subtitle styling embedded in video
3. Process video with precisely timed subtitle overlays

### Step 4: Google Drive Storage

1. Download subtitled video from VideoDB
2. Upload subtitled video to Google Drive folder
3. Store video with subtitles permanently embedded

## Conclusion

This workflow creates professional subtitled videos with embedded subtitle overlays, making content accessible across all platforms while maintaining consistent subtitle styling and timing.
