---
updatedAt: 2026-05-12T16:44:02.000Z
agentTools:
  projectIndex: https://api.encoding.com/llms.txt
---

# Caption Legal Adaptation & Compliance

Automatically adapt captions to meet legal standards, ensuring regulatory compliance and professional formatting for all video content.

## Caption Legal Adaptation & Compliance

Automated formatting and validation against legal captioning standards.

```xml
<?xml version="1.0"?>
<query>
    <userid>[UserID]</userid> <!-- required -->
    <userkey>[UserKey]</userkey> <!-- required -->
    <action>[Action]</action> <!-- required -->
    <source>[SourceFile]</source> <!-- required -->
    <format>
        <output>closed_captions</output> <!-- required-->
        <legalize> 
            <mode>[cea-608|teletext|custom]</mode> 
            <max_line_count>[MaxLineCount]</max_line_count> 
            <max_line_length>[MaxLineLength]</max_line_length> 
        </legalize>
        <type>[srt|scc|webvtt|ttml|stl]</type>
    </format>
</query>
```
```json
{
  "query": {
    "userid": "[UserID]", // required
    "userkey": "[UserKey]", // required
    "action": "[Action]", // required
    "source": "[SourceFile]", // required
    "format": {
      "output": "closed_captions",
      "legalize": {
        "mode": "[cea-608|teletext|custom]",
        "max_line_count": "[MaxLineCount]",
        "max_line_length": "[MaxLineLength]",
      },
      "type": "[srt|scc|webvtt|ttml|stl]"
    }
  }
}
```

| Parameter             | Description                                                                                                                     | Allowed Values            | Default Value |
| :-------------------- | :------------------------------------------------------------------------------------------------------------------------------ | :------------------------ | :------------ |
| **mode**              | CEA-608: 4 lines and 32 characters per item, Teletext: 4 lines and 37 characters, Custom: custom number of lines and characters | cea-608, teletext, custom | *none*        |
| **max\_line\_count**  | Max line count                                                                                                                  | Positive integer          | *none*        |
| **max\_line\_length** | Max line length                                                                                                                 | Positive integer          | *none*        |

> 🚧 Supported output formats for legalization:
>
> SRT, SCC, WebVTT, TTML, STL.