Goals
- Automate the process of generating subtitles for uploaded videos
- Store the subtitled videos in a designated Google Drive folder
- Improve accessibility for audiences who need captions
Prerequisites
- A Zapier account to create and manage workflows
- Access to VideoDB with an active API key
- A configured Google Drive account with a folder (e.g., “Videos with Subtitles”) for storing processed videos
- A Zapier Interface form to collect video name and video URL submissions
- Basic understanding of Zapier workflows (Zaps) and triggers
Workflow 1: Form Submission and Upload
Step 1: Form Creation (Zapier Interfaces)
- Create a blank form titled Subtitle Video
- Add two fields:
- Video Name (short text, required)
- Video URL (valid URL field, required)
- Share the form link for submissions
Step 2: Trigger Setup
- In Zapier, set the trigger to Form Submission Created from Interfaces
- Select the subtitle video form and page
Step 3: Upload and Index with VideoDB
- Add an action to upload and index the video via VideoDB
- Authenticate using your VideoDB API key
- Map video name and URL from the form data
- Set a target label (e.g.,
subtitle video) to connect with the second workflow - Test to confirm a Job ID is returned, indicating the task has started
Step 4: Publish Workflow 1
Activate the workflow so form submissions trigger video uploads automatically.Workflow 2: Subtitle Generation and Storage
Step 1: Trigger Setup
- Create a new Zap with trigger New Video Uploaded Job from VideoDB
- Filter by target label
subtitle videoto ensure only relevant jobs trigger this workflow
Step 2: Subtitle Generation
- Add an action to Generate Subtitles using VideoDB
- Select dynamic video ID from the trigger event
- Configure subtitle style (e.g., supersize animation to enlarge the spoken word)
- Test to confirm the output returns a stream URL, download URL, and new video ID
Step 3: Google Drive Storage
- Add an action to Upload File to Google Drive
- Authenticate with your Google account and select the designated folder (e.g., Videos with Subtitles)
- Use the downloadable URL from VideoDB as the input file
- Set the file name dynamically from the form submission with “.mp4” extension
- Test to confirm the subtitled video is stored in the correct folder