{"uid":"cap_25dHf-nsLLybsEgzGLJ6X","slug":"dash-segmenttimeline-negative-repeat-exact-period-projection-c5c9b7d5","name":"DASH SegmentTimeline Negative Repeat Exact Period Projection","description":"Expand complete DASH SegmentTimeline entries, negative repeat bounds, timescale/PTO/startNumber into exact anonymous segment presentation intervals.","url":"https://detect.halowerk.com/v1/F-TD2000-DATASTRUCTURES-02/dash-segmenttimeline-negative-repeat-exact-period-projection?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"artifact":{"type":"object","required":["dashTimeline"],"properties":{"dashTimeline":{"type":"object","required":["data","claim"],"properties":{"data":{"type":"object","required":["timescale","presentation_time_offset","start_number","period_start","period_duration","timeline"],"properties":{"timeline":{"type":"array","items":{"type":"object","required":["t","d","r"],"properties":{"d":{"type":"integer","maximum":1000000000,"minimum":0},"r":{"type":"integer","maximum":512,"minimum":-1},"t":{"anyOf":[{"type":"null"},{"type":"integer","maximum":1000000000000,"minimum":0}]}},"additionalProperties":false},"maxItems":128,"minItems":1},"timescale":{"type":"integer","maximum":1000000000,"minimum":1},"period_start":{"type":"object","required":["numerator","denominator"],"properties":{"numerator":{"type":"integer","maximum":1000000000000,"minimum":-1000000000000},"denominator":{"type":"integer","maximum":1000000000,"minimum":1}},"additionalProperties":false},"start_number":{"type":"integer","maximum":1000000000000,"minimum":0},"period_duration":{"type":"object","required":["numerator","denominator"],"properties":{"numerator":{"type":"integer","maximum":1000000000000,"minimum":1},"denominator":{"type":"integer","maximum":1000000000,"minimum":1}},"additionalProperties":false},"presentation_time_offset":{"type":"integer","maximum":1000000000000,"minimum":0}},"additionalProperties":false},"claim":{"anyOf":[{"type":"null"},{"type":"object","required":["end_media_time","next_number","segments"],"properties":{"segments":{"type":"array","items":{"type":"object","required":["duration_ticks","media_time","presentation_end","presentation_start","segment_number","timeline_entry"],"properties":{"media_time":{"type":"string","maxLength":20000,"minLength":0},"duration_ticks":{"type":"number"},"segment_number":{"type":"number"},"timeline_entry":{"type":"number"},"presentation_end":{"anyOf":[{"type":"null"},{"type":"object","required":["denominator","numerator"],"properties":{"numerator":{"type":"string","maxLength":20000,"minLength":0},"denominator":{"type":"string","maxLength":20000,"minLength":0}},"additionalProperties":false}]},"presentation_start":{"anyOf":[{"type":"null"},{"type":"object","required":["denominator","numerator"],"properties":{"numerator":{"type":"string","maxLength":20000,"minLength":0},"denominator":{"type":"string","maxLength":20000,"minLength":0}},"additionalProperties":false}]}},"additionalProperties":false},"maxItems":4096,"minItems":0},"next_number":{"type":"number"},"end_media_time":{"type":"string","maxLength":20000,"minLength":0}},"additionalProperties":false}]}},"additionalProperties":false}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KzZLg0Aaen2CgmaxgECrg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Expands a DASH SegmentTimeline with negative repeat bounds, timescale, presentation time offset, and start number into an exact list of anonymous segment presentation intervals.","exampleAgentPrompt":"Expand this DASH SegmentTimeline into exact segment presentation intervals — timescale is 90000, presentation_time_offset is 0, start_number is 1, period_start is 0/1, period_duration is 60/1, and the timeline has entries like {t: 0, d: 9000, r: -1} to fill the whole period.","exampleUseCases":[{"title":"DASH player segment index construction","prompt":"I have a DASH manifest with a SegmentTimeline that uses r=-1 to fill the period duration; timescale is 48000, PTO is 0, start_number is 100, period_start is 30/1, period_duration is 120/1, and timeline entries are [{t:0,d:4800,r:-1}]. Give me the full list of segment presentation intervals so I can build the segment index."},{"title":"Media server seek-point validation","prompt":"Our media server needs to verify seek accuracy. Can you expand this DASH SegmentTimeline — timescale 44100, PTO 882000, start_number 0, period_start 0/1, period_duration 30/1, timeline [{t:882000,d:4410,r:4},{t:null,d:3675,r:-1}] — and return the exact presentation_start and presentation_end for each segment?"},{"title":"Adaptive streaming conformance testing","prompt":"For our DASH conformance test suite, resolve this SegmentTimeline to exact intervals: timescale 25, start_number 1, PTO 0, period_start 0/1, period_duration 240/1, timeline [{t:0,d:1,r:9},{t:null,d:2,r:-1}] — I need the segment_number, media_time, and duration_ticks for every segment."}],"resultDescription":"Returns a structured list of fully resolved segment objects, each containing segment_number, timeline_entry index, media_time (as string), duration_ticks, presentation_start, and presentation_end (as rational numerator/denominator pairs), plus end_media_time and next_number for the period.","failureModes":["Invalid or missing required fields (timescale, period_duration, timeline) return 400 validation errors","Negative repeat with no resolvable period_duration leads to unbounded expansion error","Inconsistent or overflowing t/d values exceeding max bounds return schema validation failure","Timeline with zero or no items returns a minItems constraint error","Period duration mismatch with timeline entries may produce zero or partial segment lists"],"whenToPreferThis":"Use this endpoint when you need deterministic, arithmetic expansion of DASH SegmentTimeline entries — especially those using negative repeat (r=-1) to fill a period — into exact per-segment presentation intervals with correct timescale, PTO, and start_number accounting. Prefer it over manual calculation when DASH compliance and precision matter, or when building segment indexes, seek maps, or conformance tests for MPEG-DASH adaptive streaming workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T00:38:40.386Z","isFirstParty":false,"canonicalSlug":"dash-segmenttimeline-negative-repeat-exact-period-projection-c5c9b7d5"}