{"uid":"cap_3NKPLpUctO8PHLHxC0cm0","slug":"mpeg-ts-per-pid-continuity-counter-ledger-validator-0b9b3bba","name":"MPEG-TS Per-PID Continuity Counter Ledger Validator","description":"Reconcile MPEG-TS per-PID payload counter progression, adaptation-only packets, explicit discontinuities and exact duplicates from complete ordered packets.","url":"https://detect.halowerk.com/v1/F-TD2000-DATASTRUCTURES-01/mpegts188-per-pid-payload-adaptation-continuity-ledger?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"artifact":{"type":"object","required":["mpegTs"],"properties":{"mpegTs":{"type":"object","required":["data","claim"],"properties":{"data":{"type":"object","required":["packets"],"properties":{"packets":{"type":"array","items":{"type":"string","maxLength":16000,"minLength":0},"maxItems":48,"minItems":1}},"additionalProperties":false},"claim":{"anyOf":[{"type":"null"},{"type":"object","required":["null_packets","packets","pids","violations"],"properties":{"pids":{"type":"array","items":{"type":"object","required":["last_cc","pid"],"properties":{"pid":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000},"last_cc":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000}},"additionalProperties":false},"maxItems":4096},"packets":{"type":"array","items":{"type":"object","required":["category","cc","packet","pid"],"properties":{"cc":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000},"pid":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000},"packet":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000},"category":{"type":"string","maxLength":20000,"minLength":0}},"additionalProperties":false},"maxItems":4096},"violations":{"type":"array","items":{"type":"object","required":["actual","expected","packet","pid"],"properties":{"pid":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000},"actual":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000},"packet":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000},"expected":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000}},"additionalProperties":false},"maxItems":4096},"null_packets":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000}},"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_uVU6lKG_OGoG-xjIM2vmC","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":"Validates MPEG-TS continuity counter progression per PID, detecting payload counter errors, adaptation-only packets, explicit discontinuities, and exact duplicate packets from ordered 188-byte packet sequences.","exampleAgentPrompt":"Check these MPEG-TS 188-byte packets for continuity counter violations — I need to know which PIDs have dropped packets, any adaptation-only packets, explicit discontinuities, and exact duplicates, using the prior per-PID CC state I already have from the previous batch.","exampleUseCases":[{"title":"Live broadcast stream QC monitoring","prompt":"I'm processing a live broadcast MPEG-TS feed in chunks — take this batch of up to 48 packets and check whether any PIDs have continuity counter errors, duplicates, or discontinuities, and carry forward the last CC state from the previous chunk so I don't get false positives at chunk boundaries."},{"title":"VOD ingest pipeline validation","prompt":"Before I store this MPEG-TS segment, run a continuity counter audit on all these 188-byte packets and tell me which PIDs show violations, how many null packets there are, and flag any adaptation-only packets that could explain counter gaps."},{"title":"Transport stream fault diagnosis","prompt":"My MPEG-TS decoder is throwing errors — can you analyze this sequence of transport stream packets and produce a per-packet ledger showing the CC category for each one, the expected vs actual counter where there's a mismatch, and a summary of all PID-level violations?"}],"resultDescription":"Returns a structured ledger including: a list of per-PID last continuity counter values, per-packet entries with their PID, CC value, packet index, and category (payload, adaptation-only, duplicate, discontinuity, etc.), a list of violations with expected vs actual CC per PID and packet index, and a count of null packets. This allows stateful multi-batch validation by passing the returned PID state as the claim in subsequent calls.","failureModes":["Packet array exceeds 48-item limit — request rejected","Packet strings exceed 16000-character max length","Malformed base-encoded packet data — parse error","Mismatched prior claim state causing false violation reports","Empty packet array — minimum 1 packet required","Invalid PID values outside expected MPEG-TS range"],"whenToPreferThis":"Use this endpoint when you need deterministic, stateful per-PID continuity counter validation for MPEG-TS 188-byte transport streams — especially for chunk-by-chunk streaming validation where you must carry prior CC state across batches. Prefer this over generic stream analyzers when you need explicit categorization of adaptation-only vs payload packets, duplicate detection, and structured violation reporting per PID.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T18:44:30.660Z","isFirstParty":false,"canonicalSlug":"mpeg-ts-per-pid-continuity-counter-ledger-validator-0b9b3bba"}