SECAM chroma frequency-deviation error

Incorrect FM deviation gain changes the recovered red and blue colour differences; unequal gains change colour balance while neutral grey stays neutral.

Visible effect

The frequency excursion becomes a colour error

Start with the colour bars. Reduce both deviation gains and the bars move toward grey. Raise both and their colour differences grow, until display clipping flattens some channels. Set the gains differently and the balance between red and blue changes. The grey ramp stays grey in all three cases.

SECAM carries colour in frequency changes, so this fault belongs to the encoder’s conversion from a colour difference to an FM deviation. Here the resting frequencies remain correct. The receiver reads an excessive or insufficient excursion as an excessive or insufficient colour difference.

The default experiment raises the D′R gain to 135% and lowers D′B to 65%. Compare it with equal gains, then choose Nominal deviation. These are illustrative faults rather than broadcast tolerances.

Physics

Follow one colour difference through the encoder

SECAM sends a scaled red-minus-luma difference on one line and a scaled blue-minus-luma difference on the next. Luma is a weighted sum of encoded RGB, related to brightness. Each difference changes the instantaneous frequency of a colour subcarrier, an oscillating signal carrying colour inside composite video: this is frequency modulation, or FM. The difference signals are named D′R and D′B; the prime means they are derived from gamma-coded video signals.

For a flat patch, each line's carrier settles at a constant frequency. Deviation is the signed distance from that component's resting frequency. An incorrect modulator sensitivity makes that distance too large or too small. A correct receiver discriminator converts the measured frequency distance back to a colour difference using the nominal sensitivity, so the encoder's gain error survives decoding.

D′R line · resting carrier 4.40625 MHz

Same input difference → incorrect FM slope → nominal receiver division

D′R line: frequency deviation versus dimensionless colour difference from minus one to plus one. The shared vertical scale is minus 400 to plus 400 kilohertz, with nominal slope 280 kilohertz per unit and faulty gain 1.35.f − f₀ · kHz+4000−400−10+1Input D′R (dimensionless)

Recovered difference: 1.35 D′R

D′B line · resting carrier 4.25000 MHz

Same input difference → incorrect FM slope → nominal receiver division

D′B line: frequency deviation versus dimensionless colour difference from minus one to plus one. The shared vertical scale is minus 400 to plus 400 kilohertz, with nominal slope 230 kilohertz per unit and faulty gain 0.65.f − f₀ · kHz+4000−400−10+1Input D′B (dimensionless)

Recovered difference: 0.65 D′B

Dashed: nominal slope. Solid: faulty encoder slope. These two examples use the default gains. The receiver still divides by 280 kHz for D′R and 230 kHz for D′B, so the unequal gains become unequal recovered colour differences. The carrier's resting frequency stays fixed.

This experiment uses the conventional 625-line SECAM baseband definitions in ITU-R BT.470-6. It does not select an RF transmission system: SECAM colour can be paired with several. The two resting frequencies are fixed, and the receiver identifies the alternating components correctly.

The receiver uses the current line's component and the other component retained from the preceding line. We assume neighbouring lines contain the same colour, so both recovered differences can be calculated from one RGB sample. This is the flat-patch response of an ideal one-line-memory decoder; it does not reproduce vertical boundary mixing. The SECAM colour path explains the real memory, identification and filtering.

SECAM pre-emphasises colour differences before FM, then applies high-frequency anti-bell amplitude shaping to the modulated carrier. The receiver applies reciprocal bell correction before demodulation and de-emphasis afterward. Here those corrections are correctly matched, and the fault is a constant multiplier of each modulation slope. The frequencies in the playground refer to settled flat patches; pre-emphasis and bell-filter error follows the transition response.

The time-and-frequency explanation defines frequency and accumulated phase. SECAM uses instantaneous chroma frequency to carry a difference signal; this deviation fault is separate from moving the RF vision carrier.

Mathematics

Decode with the correct scale

Use dimensionless encoded RGB values, with nominal black at zero and white at one. The coefficients below define SECAM's signed teaching coordinates; they do not convert the source's colour primaries to a historical display.

Let gR and gB be dimensionless encoder deviation gains. One means correct sensitivity. The nominal slopes are 280 kHz per unit pre-corrected D′R* and 230 kHz per unit D′B*; these are scaling coefficients, not symmetric maximum excursions. For a constant difference, pre-emphasis has unity steady-state gain, so D′* = D′ here. Both slopes are positive because the red difference already contains a negative sign. At a settled patch:

Subtract the appropriate resting frequency and divide by the receiver's nominal slope. The hat marks a recovered component. All frequencies in this equation are in MHz.

For encoded RGB (0.75, 0.20, 0.10), Y′ = 0.35305, D′R = −0.75500 and D′B = −0.38084. Nominal frequencies are about 4.19485 MHz and 4.16241 MHz. At gains 1.35 and 0.65 they become 4.12086 MHz and 4.19306 MHz. The receiver recovers an enlarged negative D′R and a reduced negative D′B; neither resting frequency has moved.

The output subscript o marks the reconstructed image. Reconstructing green from the unchanged luma equation preserves encoded luma before RGB clipping. Equal gains scale both colour differences together; unequal gains change their relative balance. Grey has zero differences, so its frequencies remain at rest and its RGB is unchanged. Encoded luma conservation does not imply constant physical luminance after display gamma or clipping.

Shader

Apply the analytic discriminator response

The shared GLSL function takes encoded RGB and two gain multipliers in [0.5, 1.5]. It returns unclipped encoded RGB. It implements the algebraic encode/decode result above; it does not generate or sample a 4 MHz waveform.

applySecamDeviationErrorGLSL
// WHAT: Change colour balance when SECAM's FM deviation is miscalibrated.
// HOW: Scale the signed red and blue differences separately, then restore RGB.
// WHY: A nominal linear discriminator reads wrong deviation as wrong difference.
// Inputs: encoded RGB (0 to 1), redGain and blueGain (0.5 to 1.5; 1 is nominal).
// Output: unclipped encoded RGB; the wrapper applies display blend and clipping.
// Assumptions: correct line identification, equal neighbouring line colours,
// nominal resting carriers, matched linear pre/deemphasis, no FM limiting.
// This local mapping replaces ideal decode and one-line memory; it samples no
// composite waveform and does not reproduce edge or line-memory transients.
vec3 applySecamDeviationError(vec3 rgb, float redGain, float blueGain) {
  // 1. Preserve the exact nominal baseline and achromatic input.
  if ((redGain == 1.0 && blueGain == 1.0) || (rgb.r == rgb.g && rgb.g == rgb.b)) return rgb;

  // 2. SECAM starts with encoded luma, not linear-light luminance.
  float luma = dot(rgb, vec3(0.299, 0.587, 0.114));
  // D′R is negative for a red excess; D′B is positive for a blue excess.
  vec2 differences = vec2(-1.902 * (rgb.r - luma),
                          1.505 * (rgb.b - luma));

  // 3. fR = 4.40625 + 0.280 * redGain * D′R* MHz, with the blue line
  // using 4.250 + 0.230 * blueGain * D′B*. Nominal decode subtracts each
  // resting carrier and divides by its slope. Matched linear pre/deemphasis
  // cancels, leaving redGain * D′R and blueGain * D′B.
  float red = luma - redGain * differences.x / 1.902;
  float blue = luma + blueGain * differences.y / 1.505;

  // 4. Solve for green so the original encoded luma survives before clipping.
  float green = (luma - 0.299 * red - 0.114 * blue) / 0.587;
  return vec3(red, green, blue);
}
Processing pipelineBoxes mark actual render-pass boundaries.
  1. Source textureGamma-coded video
  2. Ideal FM discriminator responseOne fullscreen pass · one texture read per pixel
    • Read encoded RGB
    • Derive luma and signed SECAM colour differences
    • Recover the two independently mis-scaled deviations
    • Reconstruct equal-neighbour colour with unchanged luma
    • Mix and display with RGB clipping
  3. Display output
  1. Read one source texel after centred aspect-fill mapping. Coordinates are normalised, with y downward from the source's top. The response has no spatial offset or row-parity dependence.
  2. Derive Y′ and the signed differences in encoded RGB. Applying this transform in linear light would change its meaning.
  3. Scale each recovered difference by its encoder gain. Correct receiver slopes cancel out of this bounded model.
  4. Recover red and blue, then solve for green from unchanged luma. Leave values outside [0, 1] unclipped inside the reusable function.
  5. The runtime blends the original and recovered RGB with Effect mix in [0, 1]. Display output clips to [0, 1]. Mix is a comparison aid; it does not alter the encoder frequencies shown by the diagnostic.

One fullscreen pass uses one texture read per pixel, no framebuffer history and no neighbouring-line read. Those savings follow from the equal-neighbour assumption. A full SECAM decoder needs the actual transmitted line sequence, filtering and delayed signal.

Notes

  • The gains are illustrative, not conformance limits. The diagnostic may exceed permitted excursions; no encoder limiter, discriminator range, colour killer or channel bandwidth is simulated.
  • Carrier offsets, identification errors, pre-emphasis mismatch, bell-filter mismatch, RF noise, dropouts and sync errors are outside this effect.
  • Photographs and video use the same equal-neighbour approximation. They do not demonstrate SECAM's real vertical colour resolution, memory mixing at boundaries or motion behaviour.
  • The image can resemble a colour-difference gain fault elsewhere in the chain. Its appearance alone cannot locate the cause; the frequency diagnostic identifies the declared encoder mechanism.
  • High gain can clip displayed RGB and alter its measured luma. Use moderate colour patches to test the unclipped conservation claim.
  • Source pixels stand in for gamma-coded video components. Browser colour management, historical primaries, transfer curves and CRT output are not reconstructed.
  • Unlike PAL/NTSC subcarrier frequency error, this fault scales colour-dependent frequency excursions around two correct resting frequencies. It does not accumulate a common hue-rotation phase.

References

ITU-R BT.470-6 — Conventional television systems, Table 2 §§2.5, 2.7, 2.11–2.13 — historical primary definitions of signed SECAM colour differences, resting frequencies, deviation coefficients and pre-emphasis; the gain fault and ideal receiver response are derived in this article, not standard tolerance values.

Philips/NXP — SAA7114 data sheet, rev. 03 §8.1.3.1 and Fig. 10 — documents bell-filter correction, FM demodulation, de-emphasis, H/2 sequence detection and SECAM recombination using an embedded line delay; the playground isolates an ideal flat-patch response rather than simulating this receiver.