SRT & WebVTT to JSON Subtitle Chunker for RAG avatar

SRT & WebVTT to JSON Subtitle Chunker for RAG

Pricing

from $4.80 / 1,000 document with useful outputs

Go to Apify Store
SRT & WebVTT to JSON Subtitle Chunker for RAG

SRT & WebVTT to JSON Subtitle Chunker for RAG

Extract video transcripts and captions from SRT, WebVTT, or YouTube transcript datasets, then transform and process them into timestamped JSON chunks to prepare data for LLM and RAG. Whole cues stay intact with start/end times, cue numbers, stable IDs and SHA-256 hashes.

Pricing

from $4.80 / 1,000 document with useful outputs

Rating

0.0

(0)

Developer

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Features

Limited permissions

Share

Extract video transcripts and captions from SRT or WebVTT files, public HTTP(S) URLs, or a YouTube transcript dataset, then transform and process them into timestamped JSON chunks to prepare data for LLM and RAG pipelines. Whole cues are never split. Records carry source and document identity, cue numbers where supplied, first/last cue timestamps, hashes, chunk order, and chunking configuration.

Input

Provide sources in any combination of:

  • items: objects with rawText, sourceUrl, or fileUrl (legacy shape; rawText takes precedence).
  • urls: a list of public HTTP(S) SRT or WebVTT URLs.
  • datasetId (or datasetIds): an Apify dataset of transcript records, typically the default dataset from youtube-transcript-extractor (skilled_glee/youtube-transcript-extractor, Actor ID aOQi59L2ZcIoLMQJv). Each successful item is mapped from videoId / url and timed segments (start in seconds, duration, text). fullText is used if no segments are present. Upstream items with an error status are recorded in SUMMARY and are not charged.

The combined number of sources per run is limited to 500 (raised from 25). More than 500 fails fast as invalid input and is not charged.

Top-level chunkSize (default 1500) and overlap (default 150) apply to every source that does not set its own values. The older nested chunkSize and overlap on each items[] entry still win when present.

chunkMode defaults to chars (group whole cues up to chunkSize). Set chunkMode to time to group whole cues into windows of windowSeconds (default 60), keeping each cue's start and end timestamps. A cue is never split; it stays in the window where it starts.

{
"urls": ["https://example.com/captions.vtt"],
"datasetId": "YOUR_YOUTUBE_TRANSCRIPT_DATASET_ID",
"chunkMode": "time",
"windowSeconds": 60
}

Output and repeatability

The default dataset contains cue-preserving chunks with stable documentId, chunkId, SHA-256 hashes, timestamps, cue metadata, source provenance, and chunking parameters. Identical subtitle text and semantic parameters produce the same useful records and stable IDs in chars mode. Time-window chunks use a v2 identity that includes windowSeconds.

The default key-value store record SUMMARY contains aggregate run status, submitted-document count, total chunk count, per-document outcomes, and a UTC processedAt timestamp. processedAt is volatile metadata and does not participate in stable chunk identity.

A failed input is isolated from successful siblings rather than discarding useful batch output. Each failed entry in SUMMARY.documentOutcomes carries errorType, a short reason, and httpStatus when a download failed. If the whole input is invalid (no sources, more than 500 sources, or bad parameters), the run fails with SUMMARY.status: "invalid_input" and no document-converted charge.

Limitations: tested for ordinary SRT and WebVTT timing syntax, WebVTT header metadata (such as YouTube's Kind:/Language: lines) and cue identifiers, a byte-order mark after leading blank lines, multiline cues, simple tags, duplicates, gaps, and malformed timestamps. It does not support TTML, ASS/SSA, subtitle OCR, translations, speaker diarization, or live streams.

Chaining from YouTube Transcript Extractor

Run skilled_glee/youtube-transcript-extractor on one or more YouTube URLs, then pass that run's default dataset ID to this Actor as datasetId. This Actor reads segments (and fullText as a fallback), keeps cue timestamps, and emits RAG chunks. Failed extractor items are not billed here.

Billing and limits

One document-converted event is charged only after a document produces supported output saved to the dataset. Empty or failed documents, and invalid input, are not charged. Apify platform costs are included in the per-document price; no Actor-start or automatic dataset-item event is currently configured. Up to 500 documents, 2 MB UTF-8 text per document, and a 120-second default run timeout (raise the run timeout if you submit a large batch). The Actor stops at the spending limit. Public text downloads must be accessible without credentials. Dataset inputs require the run to be allowed to read the selected dataset (declared as a read-only dataset resource).

Current prices per useful document saved (verified 2026-11-20): Free/Bronze $0.005 ($5.00 per 1,000 files), Silver $0.0049, Gold and above $0.0048. Apify platform costs are included in these prices. The live Pricing tab is authoritative.

The Actor uses limited permissions and Standby is disabled. A successful run or charged event does not prove an independent payment, received creator payout, or positive margin.

Published by EchoEmpire Machine Foundry: 22 Apify Actors for AI agents. Catalog: https://foundry.echoempire.org · Publisher: https://apify.com/skilled_glee