Apply LUT to Video

Shareable link

Settings are written to the URL as you change them. Nothing differs from the defaults yet.

Grade a clip with a .cube file. Load the video, load the LUT, check the picture against the original, and export. The table is applied to every frame with the same interpolation the image version uses, so a still graded in Apply LUT to Image and a frame of the exported video match.

Load the clip and the LUT

Drop a video on the stage, then choose the .cube file under 3D LUT in the controls. The chips under the picker show the table’s title and grid size, such as 33³. The preview switches to the graded picture as soon as the table parses. Original in the transport shows the source frame for comparison.

Export stays disabled until both files are loaded. Replacing the LUT keeps the video and the playhead where they are, so several looks can be auditioned on one shot.

Tetrahedral interpolation

A 33-point LUT stores 35,937 colours, and an 8-bit frame can hold 16.7 million. Every pixel that falls between grid points has to be interpolated from its neighbours.

Each pixel sits inside one cube of the grid. That cube is split into six tetrahedra, and the output is a weighted sum of the four corners of the tetrahedron holding the pixel. Trilinear interpolation uses all eight corners and bends the neutral axis slightly on strong grades. Tetrahedral keeps greys on the diagonal of the cube, and it is the higher-quality option grading software offers.

Intensity

A LUT built for a flat log profile is too strong on footage that is already contrasty. Lower LUT intensity to blend the grade back toward the source. The blend is linear per channel, so 60% moves each pixel 60% of the way to its graded value.

Intensity and the output size are stored in the page’s URL. The LUT is a file on your disk and has to be loaded again after a reload.

Input range and domain

A .cube file can declare DOMAIN_MIN and DOMAIN_MAX. Values outside the declared range are clamped to the nearest edge of the table before lookup, as the format specifies. Most files use 0 0 0 and 1 1 1 and need no thought.

The LUT sees the pixel values the browser decodes: 8-bit RGB after the video’s own YUV matrix and range are applied. A table written for full-range input on limited-range footage, or the reverse, looks washed out or crushed here in the same way it would in an editor with the wrong setting.

Limits

  • 8-bit processing. A 10-bit source is reduced to 8 bits per channel before the table. Heavy log-to-display conversions can show banding in smooth gradients.
  • No HDR. PQ and HLG footage is converted to SDR by the browser before the LUT runs.
  • Size and time. The export is capped by the Size menu, 720p by default. 1080p has 2.25 times as many pixels per frame.
  • One table. To stack a conversion LUT and a look, export once and run the result through again. To build a table from sliders, use the LUT Generator.

Questions about Apply LUT to Video

What does this do, and which files does it take?

It runs every frame of a video through a 3D lookup table and exports the result. The video can be MP4, MOV, WebM or MKV. The LUT must be a 3D .cube file with a grid size from 2 to 65, the text format DaVinci Resolve, Premiere, Final Cut and most cameras use.

Does a 1D LUT or a .3dl file work?

No. Only 3D .cube files are read. A file with LUT_1D_SIZE is refused with a message, and .3dl, .look and .mga tables need converting to .cube in the program that made them.

Will a log-to-Rec.709 LUT work on my camera's log footage?

It works when the browser hands over the log picture untouched, which is the case for 8-bit H.264 log clips. Frames are processed as 8-bit RGB, so 10-bit footage is reduced to 8 bits before the LUT and can band in skies where a 10-bit pipeline would not. HDR footage is tone-mapped by the browser first, which a camera LUT does not expect.

What does the intensity slider do?

It blends each graded pixel with the original. 100% is the LUT as written, 50% is halfway between the source and the grade, and 0% leaves the frame untouched.

Why is the export slower than playback?

Every frame is decoded, mapped pixel by pixel and encoded again. The Size menu sets the output's long edge, and the hint under it estimates the time on this device after the preview has played for a moment.

What happens to the audio?

It is copied into the new file unchanged when the container holds its codec, and re-encoded when it does not. The result line under the export button says which.

Related tools

Browse all tools