{
  "about": "SSTV mode timings, tones and VIS codes read by /spectrogram/'s SSTV decoder. Every number below is copied from the source named here; nothing is reverse-engineered.",
  "source": {
    "title": "Proposal for SSTV Mode Specifications",
    "author": "JL Barber (N7CXI), Silicon Pixels",
    "presented": "Dayton SSTV forum, 20 May 2000",
    "url": "http://www.barberdsp.com/downloads/Dayton%20Paper.pdf",
    "fetchedFrom": "https://web.archive.org/web/20190828130738/http://www.barberdsp.com/downloads/Dayton%20Paper.pdf",
    "fetched": "2026-10-25",
    "paperSources": "The paper's own source for Scottie, Martin and Robot timings is the firmware of the Robot 1200C; for the PD modes, their author Don Rotier."
  },
  "notes": [
    "Only Robot 36, Martin 1, Scottie 1 and PD120 are decoded. The paper also specifies Scottie 2 and DX, Martin 2, Robot 72, Wrasse SC2-180, the Pasokon P modes, the other PD modes and FAX480; their VIS codes are listed under otherVis so the page can name a header it finds but does not read.",
    "The paper gives no pixel count for Robot 36, only its scan times (Y 88 ms, colour 44 ms). Because a scan line is an analogue tone sweep, the horizontal pixel count is the receiver's choice; this page samples 320 per line, the width the paper gives for the other 240- and 256-line modes, so the picture is 320 x 240 (4:3).",
    "PD120 sends two picture lines per sync pulse: Y of the first line, R-Y and B-Y averaged over both lines, then Y of the second line. 496 lines therefore take 248 sync periods.",
    "Robot 36 sends R-Y on even lines (after a 1500 Hz separator) and B-Y on odd lines (after a 2300 Hz separator); each colour value is averaged over the two lines."
  ],
  "header": {
    "steps": [
      { "ms": 300, "hz": 1900, "what": "leader tone" },
      { "ms": 10, "hz": 1200, "what": "break" },
      { "ms": 300, "hz": 1900, "what": "leader tone" },
      { "ms": 30, "hz": 1200, "what": "VIS start bit" }
    ],
    "bits": 7,
    "bitMs": 30,
    "oneHz": 1100,
    "zeroHz": 1300,
    "order": "least significant bit first",
    "parity": "even: the parity bit makes the count of ones even (1300 Hz for 0, 1100 Hz for 1)",
    "stop": { "ms": 30, "hz": 1200, "what": "VIS stop bit" },
    "after": "all mode specifications begin immediately after the VIS stop bit"
  },
  "levels": {
    "blackHz": 1500,
    "whiteHz": 2300,
    "syncHz": 1200,
    "hzPerStep": 3.1372549,
    "rule": "Frequency = 1500 + (value * 3.1372549), value 0-255 (Appendix A and B)"
  },
  "yuv": {
    "about": "Appendix B, ITU-R BT.601 scaling as used by ChromaPIX and W95SSTV; values 0-255.",
    "toYuv": {
      "Y": [16.0, 0.003906, 65.738, 129.057, 25.064],
      "RY": [128.0, 0.003906, 112.439, -94.154, -18.285],
      "BY": [128.0, 0.003906, -37.945, -74.494, 112.439],
      "form": "V = offset + scale * (a*R + b*G + c*B)"
    },
    "toRgb": {
      "R": [0.003906, 298.082, 408.583, 0],
      "G": [0.003906, 298.082, -208.12, -100.291],
      "B": [0.003906, 298.082, 0, 516.411],
      "form": "C = scale * (y*(Y - 16) + ry*(RY - 128) + by*(BY - 128))"
    }
  },
  "modes": [
    {
      "id": "robot36",
      "name": "Robot 36",
      "vis": 8,
      "color": "YUV",
      "width": 320,
      "lines": 240,
      "linesPerSequence": 2,
      "seconds": 36,
      "sequence": [
        { "ms": 9.0, "hz": 1200, "what": "sync" },
        { "ms": 3.0, "hz": 1500, "what": "sync porch" },
        { "ms": 88.0, "scan": "Y", "line": 0 },
        { "ms": 4.5, "hz": 1500, "what": "even separator" },
        { "ms": 1.5, "hz": 1900, "what": "porch" },
        { "ms": 44.0, "scan": "RY", "line": 0 },
        { "ms": 9.0, "hz": 1200, "what": "sync" },
        { "ms": 3.0, "hz": 1500, "what": "sync porch" },
        { "ms": 88.0, "scan": "Y", "line": 1 },
        { "ms": 4.5, "hz": 2300, "what": "odd separator" },
        { "ms": 1.5, "hz": 1900, "what": "porch" },
        { "ms": 44.0, "scan": "BY", "line": 1 }
      ]
    },
    {
      "id": "martin1",
      "name": "Martin M1",
      "vis": 44,
      "color": "RGB",
      "width": 320,
      "lines": 256,
      "linesPerSequence": 1,
      "seconds": 114.3,
      "sequence": [
        { "ms": 4.862, "hz": 1200, "what": "sync" },
        { "ms": 0.572, "hz": 1500, "what": "sync porch" },
        { "ms": 146.432, "scan": "G", "line": 0 },
        { "ms": 0.572, "hz": 1500, "what": "separator" },
        { "ms": 146.432, "scan": "B", "line": 0 },
        { "ms": 0.572, "hz": 1500, "what": "separator" },
        { "ms": 146.432, "scan": "R", "line": 0 },
        { "ms": 0.572, "hz": 1500, "what": "separator" }
      ]
    },
    {
      "id": "scottie1",
      "name": "Scottie S1",
      "vis": 60,
      "color": "RGB",
      "width": 320,
      "lines": 256,
      "linesPerSequence": 1,
      "seconds": 109.6,
      "firstLineOnly": [
        { "ms": 9.0, "hz": 1200, "what": "starting sync" }
      ],
      "sequence": [
        { "ms": 1.5, "hz": 1500, "what": "separator" },
        { "ms": 138.240, "scan": "G", "line": 0 },
        { "ms": 1.5, "hz": 1500, "what": "separator" },
        { "ms": 138.240, "scan": "B", "line": 0 },
        { "ms": 9.0, "hz": 1200, "what": "sync" },
        { "ms": 1.5, "hz": 1500, "what": "sync porch" },
        { "ms": 138.240, "scan": "R", "line": 0 }
      ]
    },
    {
      "id": "pd120",
      "name": "PD 120",
      "vis": 95,
      "color": "YUV",
      "width": 640,
      "lines": 496,
      "linesPerSequence": 2,
      "seconds": 126.1,
      "sequence": [
        { "ms": 20.0, "hz": 1200, "what": "sync" },
        { "ms": 2.080, "hz": 1500, "what": "porch" },
        { "ms": 121.600, "scan": "Y", "line": 0 },
        { "ms": 121.600, "scan": "RY", "line": 0, "alsoLine": 1 },
        { "ms": 121.600, "scan": "BY", "line": 0, "alsoLine": 1 },
        { "ms": 121.600, "scan": "Y", "line": 1 }
      ]
    }
  ],
  "otherVis": {
    "56": "Scottie 2",
    "76": "Scottie DX",
    "40": "Martin 2",
    "12": "Robot 72",
    "55": "Wrasse SC2-180",
    "113": "Pasokon P3",
    "114": "Pasokon P5",
    "115": "Pasokon P7",
    "93": "PD 50",
    "99": "PD 90",
    "98": "PD 160",
    "96": "PD 180",
    "97": "PD 240",
    "94": "PD 290"
  }
}
