PAL line-alternation phase error

An inaccurate reversal of the encoder’s V carrier gives alternating colour errors; line averaging reduces the difference but leaves colour crosstalk.

Visible effect

Neighbouring lines recover different colours

A flat colour patch acquires alternating horizontal colour bands when the PAL encoder’s switched colour carrier misses its intended reversal. Adjacent lines no longer describe the same colour after decoding. Neutral grey stays neutral; the geometry and encoded luma stay fixed.

This experiment isolates an extra phase advance on the reversed V carrier, with U and burst held correct. Direct PAL reveals the two line colours. Ideal line averaging removes their alternation on equal-colour neighbours, but leaves a shared colour error. Compare the +30° presets, then reverse the error.

The alternating appearance belongs to the family of Hanover bars. That appearance alone does not locate the fault: burst errors and receiver delay-path errors can also produce bands. Here the fault enters at transmitter encoding.

Physics

The switched V axis misses its reversal

PAL means Phase Alternating Line. It carries two scaled colour differences: U is blue minus encoded luma, V is red minus encoded luma. Luma is a brightness-related weighted sum of encoded red, green and blue signals. Two carrier waves separated by a quarter cycle carry them together. This is quadrature modulation. PAL reverses the V carrier by 180° on alternate lines, and the receiver restores its sign.

This bounded encoder fault advances only the reversed V carrier by an extra angle δ. The V carrier amplitude stays fixed, but its axis is no longer perpendicular to U. Consequently, part of V is recovered as U and the remaining V is smaller. Even lines retain the nominal axes.

1 · V carrier reverses incorrectly

+V−VU

Dashed: nominal ±V axes. Solid: +30° extra wave phase beyond the 180° reversal gives a positive U projection. Dotted: unchanged U axis. Burst remains correct.

2 · The odd line leaks V into U

Input/even (dashed): (0.120, 0.240). Odd (solid): (0.240, 0.208). Equal-colour average (thick): (0.180, 0.224). U points right; V points up.

A transmitter quadrature fault becomes a line-pair colour difference in direct PAL. Ideal averaging merges those colours, leaving a residual error rather than restoring the input.

The receiver has correct burstA short reference waveform in the blanking interval that lets a PAL or NTSC decoder recover colour-subcarrier phase and amplitude. lock and identifies the line sequence correctly. Burst generation is held independent of the faulty active-picture V phase path. This is a declared experiment condition, equivalent to injecting the fault into an active-video path while retaining an independent correct burst. The experiment requires separate picture and reference paths. See analogue colour systems for the normal PAL switch and the signal path for burst placement.

A one-line-delay decoder combines successive chroma signals. After registering carrier phase and restoring the V sign, its constant-colour response equals the average of the two decoded responses below. This experiment averages recovered colour differences, not raw composite voltages. Unlike a common phase disturbance, this error has no equal and opposite partner to cancel completely. The fault belongs to transmitter video formation; a faulty receiver delay path is a separate cause of similar bands.

The phase and waveform experiments explain why equal component magnitudes do not guarantee the same reconstructed signal. The switched-axis phase error below changes the relationship between the two colour components.

Mathematics

One incorrect carrier axis produces a shear

Use encoded RGB components: Y′ = 0.299R′ + 0.587G′ + 0.114B′, U = 0.493(B′ − Y′), V = 0.877(R′ − Y′). The coefficients are rounded teaching coordinates, not a conversion between regional RGB primaries. C denotes the active chroma signal. θ denotes nominal carrier phase; δ is the extra advance of the reversed V carrier, in radians here and degrees in the controls.

The + and − subscripts name the two encoder switch states, represented by even and odd teaching rows. Multiply each signal by 2 sin θ to recover U. Multiply by 2 cos θ on the even line and −2 cos θ on the odd line to recover V, then average over carrier cycles. Expanding cos(θ + δ) gives:

At δ = +30°, odd-line V contributes 0.5V to U and retains 0.866V. A negative δ reverses the leakage but keeps the same V loss. This mapping is a shear and axis attenuation; it is not a rigid colour-vector rotation. Pure U is unchanged. Grey, where U = V = 0, remains grey.

The bar denotes the average. At +30° it adds 0.25V to U and retains 0.933V. Averaging removes alternating bands in a flat patch, but does not restore its original colour. These equations assume equal input colour on both lines; they do not describe a horizontal colour boundary.

Reconstruct R′ = Y′ + Vₒ/0.877 and B′ = Y′ + Uₒ/0.493, then G′ = (Y′ − 0.299R′ − 0.114B′)/0.587. The subscript o denotes the selected output response. This preserves encoded luma before display clipping; physical luminance and chroma magnitude need not stay constant.

Shader

Decode the declared line state

The shared function accepts encoded RGB, extra V reversal advance from −60° to +60°, decoder mode (0 direct PAL, 1 equal-neighbour averaging), and a non-negative integer row. It returns unclipped encoded RGB. The runtime samples the source once after aspect-fill mapping and blends the recovered result with the original using Effect mix.

applyPalAlternationErrorGLSL
// WHAT: Recover colour after PAL's switched V carrier misses its reversal angle.
// HOW: Keep U and even lines correct; shear U and attenuate V on odd lines.
// WHY: A V-carrier reversal of 180 + delta degrees breaks encoder quadrature.
// Inputs: encoded RGB, extra odd-line V phase advance (-60 to +60 degrees),
// decoder (0 direct PAL, 1 equal-neighbour averaging), non-negative integer row.
// Output: unclipped encoded RGB. Burst and receiver identification stay correct.
vec2 recoverPalAlternationChroma(vec2 chroma, float phaseDegrees, float decoder, float row) {
  float phase = radians(phaseDegrees);
  float weight = decoder > 0.5 ? 0.5 : (mod(row, 2.0) > 0.5 ? 1.0 : 0.0);
  return vec2(chroma.x + weight * chroma.y * sin(phase),
              chroma.y * (1.0 + weight * (cos(phase) - 1.0)));
}

vec3 applyPalAlternationError(vec3 rgb, float phaseDegrees, float decoder, float row) {
  if (phaseDegrees == 0.0 || (decoder < 0.5 && mod(row, 2.0) < 0.5)) return rgb;
  float luma = dot(rgb, vec3(0.299, 0.587, 0.114));
  vec2 chroma = vec2(0.493 * (rgb.b - luma), 0.877 * (rgb.r - luma));
  vec2 recovered = recoverPalAlternationChroma(chroma, phaseDegrees, decoder, row);
  float red = luma + recovered.y / 0.877;
  float blue = luma + recovered.x / 0.493;
  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. Switched V carrier responseOne fullscreen pass · one texture read per pixel
    • Read encoded RGB and source row
    • Convert to luma and scaled colour differences
    • Decode the faulty V reversal or average equal neighbours
    • Reconstruct with unchanged luma
    • Mix and display with RGB clipping
  3. Display output
  1. Derive scaled U/V from encoded RGB; do not apply the transform in linear light.
  2. Keep the even-line carrier correct and apply δ only to the reversed V carrier.
  3. Use a weight of one for faulty odd lines, zero for even lines, or one half for the equal-neighbour approximation.
  4. Reconstruct green from the unchanged luma equation and clip only at display output.

Direct PAL uses 144 enlarged teaching rows: n = floor(144y), where source y runs downward from the top after aspect-fill mapping. Parity stays attached to the source during resize. These rows make alternation visible; they do not reproduce a broadcast raster or its field sequence. Averaged mode needs no neighbouring texture read because it assumes identical adjacent colour.

Notes

  • This is the analytic component response to an inaccurate switched V carrier. It does not sample composite video, demodulate RF or model oscillator acquisition.
  • U phase, even-line V phase, burst phase and amplitude, line identification, chroma bandwidth, sync and blanking remain nominal.
  • The AD725 encoder uses its switched V clock for picture modulation and burst vectors. A fault shared by those paths needs receiver reference recovery as well; this independent-burst experiment is not a device-specific AD725 failure model.
  • The range is illustrative, not a tolerance. A missing switch, reversed line identification or burst coupled to the same faulty phase path requires a different model.
  • Equal-neighbour averaging omits vertical edge mixing, motion, delay mismatch and adaptive decoding. Photographs and video use the same local-equality approximation.
  • Hanover bars describe an appearance with several possible causes. Enlarged rows demonstrate the two recovered colours, not their visibility on a particular CRT.
  • Effect mix blends original and recovered RGB; it is a comparison aid rather than a smaller physical δ. The colour vectors include that blend, while the stated encoder angle does not.
  • Compare burst phase error, where the receiver reference axes move together. Here a single encoder carrier axis moves on alternate lines. NTSC and SECAM have no corresponding PAL V switch.

References

Analog Devices — AD725 encoder data sheet, Theory of Operation — locates the PAL switch in the cosine (V) clock and documents burst made from U/V vectors. This shared-path example motivates the independent-burst limitation of the experiment; it does not substantiate a particular AD725 failure.

ITU-R BT.1700 — composite analogue television signals — defines PAL quadrature encoding, the alternating V carrier and burst conventions; the extra switched-axis angle is the declared fault, not a standards tolerance.

EBU Technical Review 256 (1993) — video encoders and decoders, §2.4.1 — supports direct U/±V demodulation, Hanover bars and one-line-delay decoding. The one-axis encoder fault and its residual response are derived in this article; the common-phase cosine cancellation does not apply to it.