# MPEG-TS Per-PID Continuity Counter Ledger Validator

> MPEG-TS Per-PID Continuity Counter Ledger Validator is a paid API for AI agents from detect.halowerk.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-23).

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.

## Facts

- Endpoint: POST https://detect.halowerk.com/v1/F-TD2000-DATASTRUCTURES-01/mpegts188-per-pid-payload-adaptation-continuity-ledger?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mpeg-ts-per-pid-continuity-counter-ledger-validator-0b9b3bba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3NKPLpUctO8PHLHxC0cm0

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability mpeg-ts-per-pid-continuity-counter-ledger-validator-0b9b3bba -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Reconcile MPEG-TS per-PID payload counter progression, adaptation-only packets, explicit discontinuities and exact duplicates from complete ordered packets.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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": 409
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mpeg-ts-per-pid-continuity-counter-ledger-validator-0b9b3bba/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from detect.halowerk.com](https://www.zero.xyz/host/detect.halowerk.com/llms.txt)
