Skip to main content

Job Types & Descriptions

A Job Description is the JSON document that instructs Closed Caption Converter what to do with a caption file. It is passed as the config field in API requests, used by the CLI as a configuration file, and generated automatically by the web application when you configure and run a job. Every job — from a simple format conversion to a multi-step transcription and delivery workflow — is expressed as a Job Description.

Job description form

The Subtitle Converter workspace includes a Job Description button in the page header that opens a modal with the exact JSON sent to the API for your current configuration. You can copy it directly or export it as a Postman collection. The API Playground workspace also lets you edit job description JSON and export Postman collections for API testing.

Job Description Structure​

Every Job Description is a JSON object. The following table describes the top-level fields:

FieldTypeDefaultDescription
job_typestring"convert"The type of job to perform. See Job Types below.
source_profilestring"SubRip Video Subtitle Script"The profile name used to decode the source file. Must match a supported source profile name exactly.
target_profilestring"SubRip Video Subtitle Script"The profile name used to encode the output file. Must match a supported target profile name exactly.
default_frameRatenumber29.97The frame rate used when the source format does not carry frame rate metadata.
default_dropFramebooleantrueThe drop-frame flag used alongside default_frameRate.
source_frameRatestring or number"auto"The frame rate to use when reading source timecodes. Set to "auto" to read from the file.
target_frameRatestring or number"auto"The frame rate to write to the output file. Set to "auto" to match the source.
offsetstring"00:00:00:00"SMPTE timecode offset applied to all events.
offset_typestring"add"Whether to "add" or "subtract" the offset value.
incodestring"00:00:00:00"Programme start timecode. All events are normalised relative to this value. Set to "auto" to use the first event's in-time.
encoding_optionsarray[]Format-specific encode options. Each element is an object with name and selected properties matching a target profile's available options. Set selected to "auto" on mapped metadata fields to copy matching source header values into the target. See Metadata Passthrough.
decoding_optionsarray[]Format-specific decode options. Each element is an object with name and selected properties.
auto_format_optionsobjectsee belowConfiguration for the Auto Format filter.
auto_correct_timing_optionsobjectsee belowConfiguration for the Auto Correct Timing / reading speed correction panel.
event_gap_optionsobjectsee belowConfiguration for the Event Gap filter.
remove_forced_subsobjectsee belowConfiguration for the Remove Forced Subtitles filter.
searchesarray[]Array of Search & Replace rules.
segmentsarray[]Array of Segmentation & Conform segment definitions.
timecode_modestring"exclusive"How segment end times and black-segment durations are interpreted: "exclusive" or "inclusive". Inclusive adds 1 frame to each file segment's end time and each black segment's duration during conform.
qcobjectsee belowAutomatic QC configuration: stage ("pre" or "post") and a tests array. See Automatic QC Tests.
media_pathstring""URL of the audio/video file for transcribe, align, embed, and extract jobs. For embed and extract jobs it must be a public HTTPS URL whose server supports Range requests (S3, GCS, Azure, and most CDNs do).
media_optionsobjectsee belowEmbed and extract jobs only. Reads the media from a Storage Access Provider instead of media_path.
webhookstring""A URL that receives a POST callback when the job completes.
delivery_optionsobjectsee belowOutput delivery configuration for storage and platform providers.
transcribe_optionsobjectsee belowTranscription configuration including provider ID and language.
translate_optionsobjectsee belowTranslation configuration including provider ID, source, and target languages.
embed_optionsobjectsee belowEmbed job configuration: replace, carriage, start_tc, and source_rate.
extract_optionsobjectsee belowExtract job configuration: start_tc and teletext_page.

Job Types​

The job_type field determines which processing path the job follows. If you omit it, Closed Caption Converter defaults to convert. The supported job types are described below.

convert​

The standard job type for all format conversion and conform workflows. The source file is decoded using the specified source profile, any configured filters are applied in order, and the result is encoded using the target profile. You can include a qc object to run Automatic QC alongside conversion. Findings are returned as qcReport, along with qc_status and qc_errors, and do not change the encoded file.

{
"job_type": "convert",
"source_profile": "Scenarist V1.0",
"target_profile": "EBU STL",
"default_frameRate": 29.97,
"default_dropFrame": true,
"encoding_options": [
{ "name": "Language Code", "selected": "English" },
{ "name": "Country of Origin", "selected": "Canada" }
]
}

qc​

A QC-only job. Nothing is encoded. The output file is {jobId}_report.json. The JSON body also includes qcReport, qc_status (pass, warn, or fail) and qc_errors. qc.tests must contain at least one enabled test, and a source file is required.

Pre-processing (qc.stage: "pre", the default) QCs the first source as decoded. Post-processing (qc.stage: "post") runs every source through the same processing path as a convert job — filters, conform, offset, Auto Format, and timing correction — then QCs the result at the target frame rate. In both cases, technical tests and sequentialTiming inspect the source file, and no caption file is encoded.

In the web application this job type is labelled Verify.

{
"job_type": "qc",
"source_profile": "SubRip Video Subtitle Script",
"qc": {
"stage": "post",
"tests": [
{ "id": "maxCharsPerLine", "max": 32, "level": "critical", "threshold": 0 },
{ "id": "maxLinesPerEvent", "max": 2, "level": "critical", "threshold": 0 },
{ "id": "maxCps", "max": 25, "level": "warn", "threshold": 3 },
{ "id": "sequentialTiming", "level": "critical", "threshold": 0 }
]
}
}

transcribe​

Sends the audio or video at media_path to a configured transcription Access Provider, receives the transcript, converts it into the CCPRJ format, applies any configured filters, and encodes the result to the target profile. Requires a transcription provider to be configured in transcribe_options.

{
"job_type": "transcribe",
"target_profile": "SubRip Video Subtitle Script",
"media_path": "https://presigned-url-to/media.mp4",
"transcribe_options": {
"source_language": "en",
"provider_id": "your-transcription-provider-id",
"provider_options": {
"model": "nova-2",
"punctuate": true,
"diarize": false,
"utterances": true,
"utt_split": 0.8
}
}
}

The provider_options object is passed directly to the transcription service. Refer to your provider's documentation for supported parameters.

align​

Aligns an existing caption or transcript file to audio/video content using a transcription provider's forced alignment capability. Like the transcribe job type, this requires a media_path and a configured transcription provider. The source caption file provides the text and the transcription engine provides the precise timing.

{
"job_type": "align",
"source_profile": "SubRip Video Subtitle Script",
"target_profile": "WebVTT",
"media_path": "https://presigned-url-to/media.mp4",
"transcribe_options": {
"source_language": "en",
"provider_id": "your-transcription-provider-id",
"provider_options": {
"model": "nova-2",
"punctuate": true
}
}
}

translate​

Translates the text of the source caption file into a target language using a configured translation Access Provider. Timing and formatting are preserved throughout the translation process. Closed Caption Converter handles caption-aware batching to preserve sentence context across event boundaries.

{
"job_type": "translate",
"source_profile": "SubRip Video Subtitle Script",
"target_profile": "SubRip Video Subtitle Script",
"translate_options": {
"provider_id": "your-translation-provider-id",
"source_language": "en",
"target_language": "fr"
}
}

Language codes are passed directly to the translation service. Refer to your provider's documentation for supported language codes and dialects.

embed​

Inserts closed captions into a video file without re-encoding it. Only the caption data is added to the file: the video and audio essence is copied unchanged. Supported containers are MOV, MP4, MXF (OP1a, frame-wrapped), and MPEG-TS/PS. 608/708 captions are carried as follows:

  • MOV/MP4: a QuickTime caption track by default, or A/53 SEI in the H.264/HEVC video stream with carriage: "sei".
  • MXF: an ST 436 ANC track.
  • MPEG-TS/PS: A/53 SEI (H.264/HEVC) or user_data (MPEG-2) in every picture.

The media file is read in place from media_path, or from a Storage Access Provider named in media_options. It is never uploaded to Closed Caption Converter, so files of any size are accepted.

Embed jobs accept one MCC caption source only. Supply it in source (upload or URL), with source_profile set to macCaption or macCaptionAdvanced, or with no profile and a .mcc extension. The file must start with the MCC header. Any other request is rejected with 400. To embed another caption format, first run a convert job with target_profile: "macCaption", then submit the resulting MCC file as the embed job's source.

{
"job_type": "embed",
"source_profile": "macCaption",
"media_path": "https://your-bucket.s3.amazonaws.com/media/episode01.mov",
"embed_options": {
"replace": true,
"carriage": "track",
"start_tc": "01:00:00:00"
}
}
embed_options fieldTypeDefaultDescription
replacebooleanfalseReplace captions already in the file. Without it, a file that already carries captions fails.
carriagestring"track"MOV/MP4 only. "track" adds a QuickTime caption track; "sei" inserts A/53 SEI into the H.264/HEVC video stream.
start_tcstringfrom the fileThe timecode of the first video frame, such as "01:00:00:00". By default the file's own start timecode is used, or 00:00:00:00 when it has none. MCC lines before this timecode are dropped.
source_ratestringfrom the MCCThe MCC file's frame rate, such as "23.976". Only needed when the MCC file doesn't indicate it (23.976 vs 24). The captions are always conformed to the video's frame rate.

The output is the media file with captions, in the same container format. By default it is stored by Closed Caption Converter and target is a signed download URL. When delivery_options names an S3, GCS, Azure, or Backblaze storage provider, the output is streamed directly to that location instead: target is then false, and deliveredTo holds the destination.

extract​

Reads 608/708 closed captions or OP-47 teletext subtitles from a video file. Supported containers are MOV, MP4, MXF, and MPEG-TS/PS. As with embed, the media file is read in place from media_path or media_options. Extract jobs take no caption source: any source or sources are ignored.

Without a target_profile, the output is the extracted file as is: MCC for 608/708 captions, or EBU STL for OP-47 teletext (MXF only). Set target_profile to any other target profile to convert the extracted captions into that format, applying any filters in the Job Description as in a convert job.

{
"job_type": "extract",
"media_path": "https://your-bucket.s3.amazonaws.com/media/episode01.mxf",
"target_profile": "SubRip Video Subtitle Script",
"extract_options": {
"start_tc": "10:00:00:00"
}
}
extract_options fieldTypeDefaultDescription
start_tcstringfrom the fileThe timecode of the first video frame, such as "10:00:00:00". By default the file's own start timecode is used, or 00:00:00:00 when it has none.
teletext_pagestring or numberThe OP-47 teletext page to extract, such as 801. OP-47 is extracted when this is set, or when the file carries no 608/708 captions.

When the media file is damaged or truncated, the captions read before the damage are still returned. The job passes with a warning, and ccEmbedSalvaged is true.

Media Options​

Embed and extract jobs read the media from media_path or, for media in your own cloud storage, from a Storage Access Provider named in media_options. A short-lived signed URL is created for the file, so it doesn't need to be public.

"media_options": {
"provider_id": "your-s3-provider-id",
"provider_options": {
"bucket": "your-bucket-name",
"region": "us-east-1",
"key": "media/episode01.mxf"
}
}
Providerprovider_options
S3bucket, region, key
GCSprojectId, clientEmail, bucket, fileName
Azurecontainer, blobName
BackblazebucketName, fileName, endpoint, region

Embed and Extract Results​

Embed and extract jobs always run in the background. POST /jobs returns status: "queued" and target: false. Poll GET /jobs/{id} until status is passed or failed. See Asynchronous Jobs. Besides the usual fields, the job record includes:

FieldDescription
ccEmbedSummaryA JSON string summarising the embed or extract: the container, caption streams, timecodes, and caption statistics.
ccEmbedVersionThe version of the embedding engine that ran the job.
ccEmbedSalvagedExtract jobs: true when the media file was damaged and only the captions before the damage were extracted.
outputBytesThe size of the output file, in bytes.
ccEmbedErrorFailed jobs only: an object with the error code (such as no_captions or unsupported_container), exit_code, message, and causes. statusMsg also contains the reason.

Embed and Extract Pricing​

Job typePrice
extract$0.30 per job.
embed$0.30 per job, plus $0.15 per GB of output, rounded up to the next GB (10⁹ bytes). For example, embedding into a 12.4 GB file costs $0.30 + 13 × $0.15 = $2.25.

deliver​

When delivery_options are included in a Job Description alongside another job type (such as convert or transcribe), the output file is automatically delivered to the specified storage or platform provider after processing is complete. The response still includes the standard target download URL, and additionally the file is written to the destination.

{
"job_type": "convert",
"source_profile": "SubRip Video Subtitle Script",
"target_profile": "WebVTT",
"delivery_options": {
"provider_id": "your-s3-provider-id",
"provider_options": {
"bucket": "your-bucket-name",
"region": "us-east-1",
"key": "output/captions/episode01.vtt"
}
}
}

Filter Configuration​

Filters are configured as nested objects within the Job Description. Each filter has an enable flag that must be set to true to activate it, along with its specific settings.

Auto Format​

"auto_format_options": {
"enable": true,
"max_lines": 2,
"max_characters": 32,
"min_duration": 1,
"allow_orphan_words": false,
"selective": true
}

Automatic Reading Speed​

"auto_correct_timing_options": {
"enable": true,
"max_cps": 25,
"min_duration": 1,
"max_duration": 12,
"min_frame_gap": 2
}

Event Gap​

"event_gap_options": {
"enable": true,
"frames": 2,
"min_gap": 0,
"max_gap": 6,
"shot_change_aware": false,
"shot_changes": []
}

Search & Replace​

The searches array contains one or more replacement rules:

"searches": [
{
"find": "colour",
"replace": "color",
"regex": false,
"caseSensitive": false
}
]

Segmentation & Conform​

The segments array defines the regions to extract. Set timecode_mode to "inclusive" when the source system includes the last frame in its duration calculations; otherwise leave it at "exclusive" (the default).

"timecode_mode": "exclusive",
"segments": [
{
"incode": "01:00:00:00",
"outcode": "01:15:00:00",
"tcFormat": "smpte"
}
]

Remove Forced Subtitles​

"remove_forced_subs": {
"enable": true,
"remove": true
}

Set remove to true to remove forced events, or false to keep only forced events and remove all others.

Automatic QC​

Automatic QC is a list of tests in qc.tests. Each test has an id, a level (critical, warn, or info), a threshold, and its own parameters. The job's qc_status is set as follows:

  • fail if any critical test reaches its threshold;
  • warn if no critical test does, but a warning test does;
  • pass otherwise.

See Automatic QC Tests for the full test catalog, and Filters — Automatic QC for the web UI.

qc.stage controls when content tests run. Technical tests and sequentialTiming always inspect the source file.

qc.stageAliasesContent tests
"pre" (default)"pre-processing"Source captions, immediately after decode, at the source frame rate
"post""post-processing"Captions after filters and processing, immediately before encode, at the target frame rate

Values are case-insensitive.

  • Which jobs: convert, transcribe, translate, and align jobs can include a qc object. The report is returned as qcReport, along with qc_status and qc_errors, and does not change the encoded file.
  • Align jobs also attach alignment drift fields to the report.
  • Transcribe jobs skip technical and source-order tests because there is no caption source file.
"qc": {
"stage": "pre",
"tests": [
{ "id": "maxCharsPerLine", "max": 42, "level": "critical", "threshold": 0 },
{ "id": "maxLinesPerEvent", "max": 2, "level": "critical", "threshold": 0 },
{ "id": "maxCps", "max": 20, "level": "critical", "threshold": 0 },
{ "id": "minGap", "min": 2, "level": "critical", "threshold": 0 },
{ "id": "frameGap", "min": 2, "minTolerance": 3, "maxTolerance": 11, "level": "warn", "threshold": 0 },
{ "id": "overlap", "level": "critical", "threshold": 0 },
{ "id": "sequentialTiming", "level": "critical", "threshold": 0 },
{ "id": "illegalCharsNetflix", "level": "critical", "threshold": 0 },
{ "id": "xmlEntities", "level": "critical", "threshold": 0 }
]
}

The legacy qc.content / qc.technical format is still accepted and is converted to tests automatically. See Legacy configuration.

"qc": {
"stage": "pre",
"content": { "enabled": true, "maxChars": 42, "maxLines": 2, "maxCps": 20 },
"technical": { "enabled": false }
}