{"uid":"cap_lcw6uAsdu80gl8ILTogMe","slug":"halowerk-subtitle-timestamp-corrector-1b8c322f","name":"HALOWERK Subtitle Timestamp Corrector","description":"Takes SRT or WebVTT subtitles and corrects their timing in one of two ways: either with an offset in seconds and an optional speed factor (new = old × factor + offset, e.g. 25/23.976 for a frame-rate mismatch), or with two anchors — a cue number and the time where it really belongs, for two cues far apart — from which factor and offset are calculated and reported. Cues that would start before zero are clipped to zero and counted. Output in the input format or another one (SRT, WebVTT).","url":"https://medien.halowerk.com/v1/timestamps-shift?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"factor":{"type":"number","default":1,"maximum":2,"minimum":0.5},"anchors":{"type":"array","items":{"type":"object","required":["cue","correct_start_seconds"],"properties":{"cue":{"type":"integer","minimum":1},"correct_start_seconds":{"type":"number","minimum":0}},"additionalProperties":false},"maxItems":2,"minItems":2,"description":"Two cues (1-based number) with the time they should start at. Overrides offset and factor."},"subtitles":{"type":"string","maxLength":2000000,"minLength":10},"output_format":{"enum":["srt","vtt"],"type":"string"},"offset_seconds":{"type":"number","default":0,"maximum":36000,"minimum":-36000}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xVFiNQQsC7dBIsTGiyk2t","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Corrects subtitle timing in SRT or WebVTT files using an offset/speed-factor or two anchor cues, outputting resynchronized subtitles in SRT or WebVTT format.","exampleAgentPrompt":"My SRT subtitle file is out of sync — it's about 3.5 seconds late throughout the entire video. Can you shift all the timestamps back by 3.5 seconds and give me the corrected SRT file?","exampleUseCases":[{"title":"Fix frame-rate mismatch drift","prompt":"My subtitles were made for a 23.976fps version of the video but I have the 25fps version, so they drift further and further out of sync. Can you retime this SRT file using a speed factor of 25 divided by 23.976 and output it as SRT?"},{"title":"Resync subtitles using two anchor points","prompt":"These WebVTT subtitles are off in a non-uniform way — I know that cue 5 should start at 42.0 seconds and cue 120 should start at 1085.5 seconds. Can you use those two anchors to calculate the correct timing and give me back a fixed VTT file?"},{"title":"Convert and fix subtitle format","prompt":"I have an SRT file that starts about 8 seconds too early and I need it as a WebVTT file. Can you shift the timestamps forward by 8 seconds and convert it to VTT format at the same time?"}],"resultDescription":"Returns the full subtitle content (SRT or WebVTT) with all timestamps adjusted. When anchors are used, the response also reports the calculated offset and speed factor. Cues that would start before zero are clipped and a count of clipped cues is provided.","failureModes":["Subtitles string shorter than 10 characters or larger than 2 MB returns validation error","Factor outside range 0.5–2.0 rejected","Offset outside ±36000 seconds rejected","Anchors array must contain exactly 2 items with valid cue numbers and non-negative times","Malformed SRT or WebVTT input may cause parsing failure","Payment of 0.001 USDC not fulfilled triggers 402 response"],"whenToPreferThis":"Choose this endpoint when you need to programmatically resync subtitle files — especially for frame-rate mismatches (using the factor parameter) or non-linear drift correction (using two anchor cues). It handles both SRT and WebVTT natively and can convert between them in the same call, making it ideal for automated subtitle post-processing pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-22T06:40:36.115Z","isFirstParty":false,"canonicalSlug":"halowerk-subtitle-timestamp-corrector-1b8c322f"}