Make closed captions and audio description for ADA Title II and Section 508
Make an accessible training video: closed captions, subtitles for deaf and hard of hearing viewers, and audio description for blind and low vision viewers. Your agent makes a captions file your player can turn on and off, and a separate audio description track or a described version of the video. These are the parts that ADA Title II and Section 508 reviews look for.
Use invideo for this when you want the captions and the description on the same timeline as the video, so a fix to the cut, the captions or the description stays in step.
invideo makes the files. It does not certify that a video meets ADA Title II, Section 508 or WCAG. An accessibility reviewer does that.
Quickest path
Set up your agent first with invideo for AI agents. Then give it this prompt.
Make this training video <edit-url> accessible. On a branch: closedcaptions as lesson.vtt from caption slides I can check, and an audiodescription track that describes what is on screen in the pauses. Give methe clean video, the VTT, a described version of the video, and thedescription as its own audio file.In a chat app, the agent gives you the VTT text to save and the export cards. In a terminal, it writes the files into your folder.
What you need
These are the inputs and the choices.
- The video, on an invideo timeline or as a file.
- Your player or LMS, and what it takes: SRT or VTT, a second audio track, or a second video.
- Names and terms the transcript may get wrong.
- Who reviews the result for compliance.
Steps
Captions come first, then the description, then the files.
Transcribe the video
The agent prices
audio.transcriptwithdry_runand tells you the price. For a price of 1 credit or more it waits for your yes. Then it starts the transcript withmax_creditsset to that price, and calls again afterretry_after_sfor the words. It runs it on the video's sequence URL fromadd_media. It sees every word with its time and speaker.Caption on the timeline
The agent creates a branch with
timeline_historyand adds the captions withadd_captions, with speaker names and the sounds that matter to deaf viewers, like "[alarm rings]". It sees a caption clip, and you check the words.Write the closed captions file
Closed captions are a sidecar file the viewer turns on, unlike burned-in open captions. The agent reads the slides with
get_timelinemodecollection, collectioncaption_slide, and writes the SRT or VTT file itself. It sees a file with one cue per slide.Find the gaps and write the description
The agent runs
mediaaudio.contentfor the silence spans, andcaptureat each scene to see what is on screen. It writes short lines that describe what a viewer cannot hear: text on screen, actions, a chart's point. You approve the lines. It sees your yes.Voice the description lines
- The agent runs
find_modelswith "narration voice", picks one, and reads its inputs withget_model. A good pick iselevenlabs_text_to_speech.elevenlabs_tts_v4. Your agent can search for others withfind_models. It finds a voice withsearch_libraryinelevenlabs_text_to_speech_voices. - It calls
generatewithdry_run: true, each line aspromptand thevoice_id, and tells you the price. - For a price of 1 credit or more it waits for your yes. Then it calls
generatewithmax_creditsset to that price and anidempotency_keyper line. It gets a thread URL and, when the result lands, a sequence URL per line. It reads each URL withreadand never callsgenerateagain to check.
- The agent runs
Place the lines on a described copy
The agent copies the timeline with
duplicate_timeline, adds an audio track named "Audio description" withadd_track, and places each line in its gap withinsert_media. The clean timeline stays untouched. It sees the track inget_timeline.Export each file
The agent exports the files your player needs, one
exporteach.- The clean video: the clean timeline, with the captions off through
set_clip_enabled. - The described version: the described copy.
- The description alone:
exportwithmodeaudio, with the other tracks muted throughset_audio_muted.
It sees one export card per file.
- The clean video: the clean timeline, with the captions off through
The terminal version:
invideo media audio.transcript <sequence-url> --dry-runinvideo media audio.transcript <sequence-url> --max-credits <price>invideo edit show <edit-url> --jsoninvideo branch new <edit-url> --name accessible --token <state_token>invideo edit show <branch-url> --jsoninvideo edit change <branch-url> --timeline T1 --token <state_token> \ --operations @captions.jsoninvideo edit show <branch-url> --mode collection \ --collection caption_slide --json > slides.jsoninvideo media audio.content <sequence-url>invideo gen models <project-url> --query "narration voice"invideo library search <project-url> \ --library elevenlabs_text_to_speech_voices --query "clear narrator"invideo gen model <project-url> \ --model elevenlabs_text_to_speech.elevenlabs_tts_v4invideo gen run <page-url> \ --model elevenlabs_text_to_speech.elevenlabs_tts_v4 --dry-run \ -i prompt="A worker lifts the red lever." -i voice_id=<voice-id>invideo gen run <page-url> \ --model elevenlabs_text_to_speech.elevenlabs_tts_v4 \ --max-credits <price> --idempotency-key ad-line-01 \ -i prompt="A worker lifts the red lever." -i voice_id=<voice-id>invideo status <thread-url> --waitinvideo notebook show <thread-url>invideo edit show <branch-url> --jsoninvideo edit change <branch-url> --timeline T1 --token <state_token> \ --operations @track.jsoninvideo edit show <branch-url> --jsoninvideo edit change <branch-url> --timeline T1 --token <state_token> \ --operations @lines.jsoninvideo edit export <branch-url> --format video --quality 1080 --jsoninvideo status <card-url> --waitinvideo notebook show <card-url> --out ./describedinvideo edit export <branch-url> --format video --mode audio \ --audio-format wav --jsoninvideo status <audio-card-url> --waitinvideo notebook show <audio-card-url> --out ./ad-trackWhere each value comes from:
<sequence-url>is the video'surlfrominvideo asset upload, a…/notebook/seq-N.MURL.<thread-url>is theurlthe paidgen runreturns.notebook showon it lists the line's sequence URL.<price>is each dry run's.estimated_credits.<edit-url>is the video's timeline URL, frominvideo edit newor the editor.<project-url>is its project.<branch-url>is thebranch_urlthatinvideo branch newreturns.<state_token>comes frominvideo edit showon the URL the next command runs on:<edit-url>forbranch new, then<branch-url>, read again before each change.<voice-id>comes from theelevenlabs_text_to_speech_voicessearch. It works only withelevenlabs_text_to_speech.elevenlabs_tts_v4.<page-url>is a notebook page of the project, listed byinvideo notebook show <project-url>.@captions.json,@track.jsonand@lines.jsoneach read a bare JSON list of ops, like the two lists below.<card-url>and<audio-card-url>are.sequences[0]of each export answer.invideo statuswaits but saves nothing.invideo notebook showsaves each file in its folder, and the agent renames them, for example tolesson-described. The--file-nameexport option does not name the saved file.
The file behind @track.json adds the description track and turns off the burned-in captions. c22 is the caption clip's id from invideo edit show.
[ { "op": "add_track", "kind": "audio", "name": "Audio description" }, { "op": "set_clip_enabled", "clip": "c22", "enabled": false }]The file behind @lines.json places the first line, in the next call. A4 is the new track's id from invideo edit show. The asset is the voice line's sequence URL, from invideo notebook show on the paid gen run thread.
[ { "op": "insert_media", "asset": "<line-01-sequence-url>", "track": "A4", "at_f": 615, "ripple": false }]A VTT file the agent writes:
WEBVTT00:00:00.000 --> 00:00:02.500[upbeat music]00:00:02.800 --> 00:00:05.500TRAINER: Welcome to the safety course.Cost and time
Edits and exports are free. Generation and transcripts cost credits. Paid stock costs a small credit charge, or one of your workspace's iStock licenses. Your agent runs a dry run first and tells you the price before it spends anything.
- Costs credits: the transcript and the voice for each description line.
- Free: the captions, the files, every edit and each export.
audio.content: the dry run shows its price before anything starts.
A short video takes under an hour, plus your review. See Credits for prices.
If something goes wrong
Most problems are files the player does not take.
| Symptom | Fix |
|---|---|
get_model or generate refuses the model as not found | Models retire. Run find_models with the job in words, use the best match, and tell the person which model you used. |
audio.transcript refused with code: "not_found", or CLI exit 2 | The call named a media bin asset. Pass the video's sequence URL from add_media or invideo asset upload. |
invideo status --wait ends and the folder is empty | status does not download. Run invideo notebook show <card-url> --out <dir>. |
| A caption word is wrong | The agent fixes the slide with set_caption_slide_text. |
| A description line does not fit its gap | On the described copy, open time with edit_time_range mode insert, and fill the picture with a still from media video.extractFrameAtTime on the video's sequence URL. |
| The player shows no captions | It needs the sidecar file. Upload the SRT or VTT in the player's caption settings. |
| Captions show twice | The video has burned-in captions and the file is on. Export with the caption clip off, using set_clip_enabled. |
| The audio file has the whole mix | Mute every other track with set_audio_muted before export with mode audio. |
| The VTT is missing the end | The read was paged. Continue with next_offset and the same snapshot. |
| CLI exit 3 | The edit changed since your read. Run invideo edit show and rebuild. |
| Avoid: say the video is compliant | Instead: say the files are ready for the accessibility review. |
Prompts to try
Each prompt is a real variation of this job.
Make SRT captions for every lesson in this project, with speakernames and sound tags, for our accessibility review.Write an audio description script for this video and show it to me. Donot voice it until I approve it.Make a described version of this video where the video pauses for eachdescription, and keep the normal version too.When to use something else
Compliance review is outside invideo. An accessibility reviewer or your organization's accessibility office checks the video against WCAG, the Web Content Accessibility Guidelines, which the ADA Title II rule and Section 508 both point to. They confirm which WCAG version and level applies to you. The criteria to ask about are Captions (Prerecorded) and Audio Description (Prerecorded). For SCC broadcast captions, convert the SRT with a captioning tool such as Subtitle Edit.