Gamma shift

On this page 7

Gamma shift is an unintended change in midtone brightness and contrast that appears when a video is encoded, decoded or displayed with a different transfer function than the one it was mastered for. In video quality work, it is a pipeline defect rather than a compression artifact: black and white points often stay close to correct, while midtones become lighter and flatter or darker and more contrasty, and saturation changes with them.

The problem matters because it is systematic and repeatable. Every frame of the affected file shifts in the same direction, so viewers rarely notice it as damage, yet skin tones, shadow detail and the intent of the color grade are altered for the entire program.

How a gamma shift occurs in the video pipeline

A gamma shift occurs when encoding and decoding curves do not cancel out. Video signals are stored with a nonlinear opto-electronic transfer function (OETF), and displays apply an electro-optical transfer function (EOTF). For standard dynamic range, ITU-R BT.709 defines the camera side, while ITU-R BT.1886 defines the reference display response as a power function of about 2.4. When any stage assumes a different exponent, the midtones move.

The most common trigger is missing or misread color metadata. Containers such as MP4 and QuickTime carry flags for transfer characteristics, color primaries and matrix coefficients; QuickTime files may also carry a gamma atom. A player that ignores those flags, or reads them differently from the editing application, applies its own default curve. The classic case is a mismatch between 2.4 and the sRGB curve of about 2.2, which makes footage look slightly washed out on one system and correct on another.

The following table lists the pipeline stages where a shift is typically introduced and the resulting visual direction.

Pipeline stageTypical causeUsual visible result
Export from editorTransfer flag written as unspecified or wrongLighter or darker midtones in players
Container rewrapGamma atom or color tags droppedImage looks different after remux
Player decodingPlayer assumes sRGB instead of BT.1886Raised midtones, reduced contrast
Browser renderingColor management differs per browserSame file varies between browsers
Display settingMonitor set to 2.2 while grade used 2.4Shadows appear lifted
Where gamma shifts originate

Gamma shift is distinguished from other tonal defects by its global, curve-shaped nature. It bends the whole tone curve smoothly, whereas a range mismatch moves black and white levels linearly, and crushed blacks clip shadow information outright. Correct diagnosis matters because each problem needs a different fix.

The comparison below separates gamma shift from the defects it is most often confused with.

DefectWhat changesKey diagnostic sign
Gamma shiftMidtone curve, endpoints mostly keptGray ramp bends but stays full range
Range mismatchBlack and white levelsBlacks gray at 16, or clipping at 0 and 255
Crushed blacksShadow detail lost by clippingWaveform flat at the bottom
BandingSmooth gradients split into stepsVisible contour lines in skies
Color primaries mismatchHue and saturationGreens and reds shift, grays stay neutral
Distinguishing tonal defects

In practice, problems often combine. A file exported with limited range and an unspecified transfer function can show both lifted blacks and raised midtones, which is why engineers check range and transfer flags together before adjusting anything by eye.

Measuring and diagnosing a gamma shift

A gamma shift is diagnosed by comparing a known reference signal through the full chain. The standard method is to render a gray step chart or linear ramp, push it through the same export and playback path as the program, and read the result on a waveform monitor or with a measurement probe. If the 50 percent patch no longer lands near its expected level, the curve has shifted.

Full-reference metrics help only partly. PSNR and SSIM penalize a gamma shift because every pixel value changes, yet they cannot identify the cause. VMAF was trained mainly on compression and scaling distortions, so its score may understate how visible a midtone change is to viewers. Metadata inspection tools that report container and bitstream color tags are often the fastest diagnostic step.

Typical measured offsets help quantify the severity, as shown in the table.

Mastered forDisplayed withMidtone effectPerceived severity
Gamma 2.4Gamma 2.2Midtones lighterMild, often accepted
Gamma 2.4Gamma 1.8Midtones much lighterClearly washed out
Gamma 2.2Gamma 2.4Midtones darkerMild to moderate
PQ (HDR)Gamma 2.4 (SDR)Flat, gray, desaturatedSevere
HLG (HDR)Gamma 2.4 (SDR)Slightly flat but viewableLow to moderate
Approximate midtone effect of common curve mismatches

Preventing gamma shift in production and delivery

Prevention depends on declaring the intended transfer function explicitly and verifying it at every handoff. Editors and colorists should set the timeline color space deliberately, write correct color tags on export, and avoid relying on application defaults that differ between platforms.

The decision table below summarizes the recommended practice for common delivery situations.

Delivery targetRecommended settingReason
Broadcast masterBT.709 primaries, BT.1886 display at 2.4Matches reference viewing conditions
Web streaming platformTag BT.709 transfer explicitlyPlayers then apply a consistent curve
Social media uploadCheck result after platform transcodingPlatforms may rewrite metadata
HDR deliverableTag PQ or HLG and include SDR versionPrevents unmanaged HDR display
Client review fileTest on target device before sendingReveals player-specific behavior
Recommended practice by delivery target
  • Grade on a calibrated reference display with a known EOTF, ideally in a dim room that suits gamma 2.4.
  • Verify output files with a metadata inspector after every export and every transcode.
  • Keep a round-trip test file with a gray ramp in each project to catch regressions after software updates.
  • Avoid compensating by eye in the grade, because a fix tuned for one player breaks correct players.

Common misconceptions and failure modes

The most persistent misconception is that one gamma value is universally correct. Gamma 2.4 suits a dim reference environment, while about 2.2 suits brighter offices and many consumer screens. The aim is consistency between mastering and viewing assumptions, not a single magic number.

Another failure mode is double correction. When an editor sees a washed-out preview and darkens the grade to compensate, the file looks correct only in the faulty player and too dark everywhere else. A related trap is treating gamma shift as a codec problem; re-encoding at a higher bitrate changes nothing, because the error lies in interpretation, not in data loss. Unlike generation loss, the underlying pixel values are usually intact and the image can be restored by correcting metadata.

Explained without jargon

Every video file carries an instruction about how bright the middle shades should look. If the program playing the file reads that instruction differently, faces and backgrounds turn a little paler or a little darker than intended. That change is a gamma shift.

Think of a recipe written in one measuring system and cooked with another: nothing is missing, but the result tastes different. The picture is not damaged; it is simply read with the wrong rule, so fixing the rule restores the original look.

A typical use case

A post-production team finishes a documentary graded on a reference monitor set to gamma 2.4 and exports a ProRes master for a streaming platform. The director reviews a review copy in a desktop player and complains that interviews look pale and low in contrast, while the colorist sees no problem on the grading monitor.

The engineer renders a 21-step gray chart through the same export preset and opens it in both applications. On the waveform, the 50 percent patch reads several percent higher in the desktop player, and a metadata inspector shows the transfer characteristic tagged as unspecified. After re-exporting with explicit BT.709 tags, the player applies the expected curve and the two views match closely. The team keeps the original grade unchanged and adds the gray chart check to its delivery checklist.