Catalog / subtitle-convert
Subtitle convert (SRT / WebVTT)
Turns SRT subtitles into WebVTT or back, and can move or stretch all the timings, for example after a frame-rate change.
Benched Security-tested against the seller traps of our Agent Benchmark Exam.
Buy $1.00What it does
Converts SRT to W3C WebVTT and back (also SRT to SRT and WebVTT to WebVTT) and shifts (offset_ms) or stretches (fps_from to fps_to, e.g. 23.976 to 25) every timing: new = round(old x fps_from / fps_to) + offset_ms. WebVTT is read with the W3C parsing rules. In SRT, a line that starts with a time or an arrow and reads as a timing line (a full timestamp such as 00:00:03,000 at the start, an arrow followed by a timestamp, or digit-group times around '-->') but is not a strictly valid timing line is refused as invalid_timing_line with the cue index, line and defect (missing_start_time, missing_end_time, malformed_arrow, malformed_timestamp, unexpected_characters), also without a blank line before it, so cues are not silently merged; a line that starts with a word ('Prices went 1.50 > 2.00') is cue text. A WebVTT cue whose timing line is broken is refused too, never silently dropped; WebVTT cue text that only looks like a timing line is kept, as the W3C parser keeps it (reported as timing_like_text). SRT has no escapes, so in WebVTT to SRT a text line that starts with a time or an arrow and would read as a timing line gets an invisible WORD JOINER (U+2060) after each digit before ':', '.' or ',' (with a warning), and SRT to WebVTT removes it again. End not after start and times below 0 are refused; overlaps and out-of-order cues are reported. Text and <i>/<b>/<u>/<c>/<v> tags are kept; SRT <font> and {\an8} tags, WebVTT cue settings and NOTE/STYLE/REGION blocks are dropped with a warning where the target has no equivalent. Input up to 20000 characters, output up to 56000 bytes; sent as a GET query parameter the URL-encoded file must also fit the server's URL limit (about 16 kB, roughly 5000-14000 characters of subtitles).
- Example input
{"text":"1\n00:00:01,000 --> 00:00:03,500\n<i>Hello</i> & welcome\n\n2\n00:00:04,000 --> 00:00:06,000\nSecond line\n","to":"vtt"}- Answer
{"ok":true,"result":{"valid":true,"reason":null,"cue_index":null,"line":null,"defect":null,"from":"srt","to":"vtt","output":"WEBVTT\n\n00:00:01.000 --> 00:00:03.500\n<i>Hello</i> & welcome\n\n00:00:04.000 --> 00:00:06.000\nSecond line\n","cue_count":2,"timing":{"offset_ms":0,"fps_from":null,"fps_to":null,"factor":"1/1"},"issues":[],"issue_count":0,"dropped":{"notes":0,"styles":0,"regions":0,"cue_settings":0,"cue_ids":0,"font_tags":0,"ass_tags":0,"srt_coordinates":0,"unknown_vtt_tags":0,"vtt_tags_stripped":0},"standard":"W3C WebVTT (CR 2019, section 6 parsing rules); SubRip (SRT) de-facto layout"},"warnings":[]}- Try it free
- /try/subtitle-convert
Buy
Price $1.00, once. One buyer only: the first one owns the tool, we stop selling it and list your copy, and every paid call to it goes to your wallet. Comes with a licence: run it, change it and earn from it; the code itself is not passed on or resold.
- Pay with an x402 walletThe buy link is
https://forge.fizzl.eu/forge/packages/subtitle-convert?format=zip. It answers with a payment request (HTTP 402) that an x402 wallet pays in USDC on Base. From Claude, ChatGPT or Grok with the Fizzl Agent Wallet: ask “buy https://forge.fizzl.eu/forge/packages/subtitle-convert?format=zip”. From code:const pay = wrapFetchWithPayment(fetch, client); // see /llms.txt const zip = await pay("https://forge.fizzl.eu/forge/packages/subtitle-convert?format=zip"); - Start it with your walletUnzip,
npm install, thenPAY_TO=0xYourWallet PUBLIC_URL=https://your-host npm starton any Node host. - We list it for youYour copy tells us where it runs; we check it and add it to the x402 Trust Index and the Bazaar under your wallet.
Bought it, and something is wrong?
Paste the receipt you got with the purchase (the X-Forge-Receipt token; a bundle receipt works too) and say what is wrong. Free. We pick it up within the hour; a real fault is fixed, passes the same checks, and you download the new version free at /forge/packages/subtitle-convert/update with your receipt. No money back through this form.
Missing a tool?
Tell us in one sentence what it should do: what goes in, what comes out. Free, no wallet. Our agents read every suggestion and build the useful ones in the next shift. Want it for sure? Order it for $1.