Log and Linear Encoding in Digital Cinema Cameras

119x7 Digital Cinema Camera with Entaniya HAL 220 LF

Introduction

Digital cinema cameras have revolutionized the filmmaking process, enabling filmmakers to capture high-quality images with a range of dynamic shades and colours. Two primary encoding methods used in digital cinema are log and linear encoding. Understanding the differences between these encoding methods is essential for cinematic professionals aiming to achieve the highest quality visual storytelling. This article explores the technical aspects of log and linear encoding, their applications, advantages, and how they impact post-production processes.

What is Linear Encoding?

All silicon sensors are linear devices. Linear encoding records pixel values in a straightforward manner, where each value corresponds directly to the intensity of light captured by the sensor. In this encoding scheme:

  • Dynamic Range: The camera captures a wide range of luminance values that follow a linear scale. For instance, an increase in light intensity results in a proportional increase in pixel values.
  • Use Cases: Linear encoding is typically used in applications where precise representation of light is necessary, such as scientific imaging and certain types of visual effects work.
  • Cameras using Linear Encoding: ACHTEL 9×7, Phantom Flex4K
  • File Formats: Common formats that utilize linear encoding include Cine RAW, Cinema DNG, EXR formats.

Advantages of Linear Encoding:

  1. Colour Accuracy: Because the values are directly related to light intensity, this encoding provides accurate colour representation.
  2. Ease of Processing: Linear files are easier to manipulate when performing operations like compositing, colour correction, and visual effects.
  3. Highlight Quality: Linear footage provides more information in the highlights allowing smoother tonalities and film-like response to overexposure.
  4. Post-Processing and HDR: Highlight reconstruction (recovery) is significantly more effective because half of the code values fall in the last (brightest) stop allowing higher range of tonalities and smoother transition to overexposed areas.

Drawbacks of Linear Encoding:

  1. Higher Bit Depth: Linear encoding may require higher bit depths to capture information in bright highlights and deep shadows effectively.
  2. Larger File Size: The straight representation of data can lead to larger file sizes compared to compressed log files.

What is Log Encoding?

Because light captured with silicon sensors is linear, log encoding modifies the way luminance information is stored. It compresses the tonal range of images, allowing for retained high dynamic range within a smaller bit depth.

  • Dynamic Range: Log encoding maps a broad range of luminance values onto a narrower scale in a nonlinear fashion, retaining detail in the shadows while compressing the data in the highlights. It uses curves to represent how light information is encoded, allowing for more code values in the darker and less in the brighter areas effectively reducing data size.
  • Use Cases: Log encoding is widely used in digital cinema due to its efficiency in preserving dynamic range and colour information while reducing file size.
  • Cameras using Log Encoding: ARRI Alexa, Sony Venice, RED Raptor
  • File Formats: Common log formats include Log-C, Cineon Log, and S-Log, among others.

Advantages of Log Encoding:

  1. Retaining Dynamic Range: Log encoding retains dynamic range within fewer amount of bits.
  2. Smaller File Sizes: The compression of tonal information leads to smaller file sizes, allowing for more extended recording times and storage efficiency.

Drawbacks of Log Encoding:

  1. Colour Grading Requirement: Log footage often requires additional processing in post-production to bring it back to a standard viewing space (like Rec. 709), which can be time-consuming.
  2. Perceived Quality: Log footage appears flat and desaturated when viewed without applying correct tone curve, potentially leading to a misunderstanding of its quality at first glance.
  3. Quality in the highlights: By compressing the amount of data in the highlights, log footage is more prone to unwanted banding around overexposed areas often creating yellow or orange orbs around bright light sources.

Which Encoding Should You Use?

The choice between log and linear encoding largely depends on the specific needs of the project:

  • For Space Saving: If the project demands a broad dynamic range and low data storage post-production, log encoding is the preferred choice.
  • For Accuracy and Highlight Fidelity: If precise colour fidelity is paramount, particularly in high dynamic range situations, or if the footage will be used in VFX or HDR workflows, linear encoding might be more appropriate.

Conclusion

Understanding log and linear encoding is integral for digital cinema professionals. Each encoding method has its own strengths and weaknesses, largely influencing the workflow and final output of film projects. By choosing the right encoding method based on the project’s needs, filmmakers can enhance their storytelling capabilities and produce visually stunning content. As technology continues to evolve, staying informed about these encoding techniques will be essential in maximizing the potential of digital cinema.

ACHTEL Pty Limited specialises in immersive cinematography for Giant Screen, IMAX®, Flying Theatre, Sphere and VFX above and underwater. Our innovative products and cinematography won international awards and attention for uncompromised approach to image quality. ACHTEL’s products have been used on many documentaries and feature films, including James Cameron’s Avatar: The Way of Water.

119x7 Digital Cinema Camera
11Humpback Whales
11Green Turtle
119x7 Digital Cinema Camera


10 Montrivale Rise
Dynnyrne, TAS 7005
Australia


T. +61-40 747 2747