Apply LUT to Video
Operator: Abdulla Al Fahad. How tools are built and checked
A LUT is cheap on a photo and expensive on a clip: a 30-second video at 30 frames a second is 900 pictures, each needing its own lookup, and the result has to be encoded again afterwards. Where that work runs, and how long you wait for it, decides whether grading in a browser tab is practical. Load a .cube file or choose one of seven built-in looks, drag a before and after divider across the current frame, set the strength, trim the range and render the graded video as MP4 or WebM with the original sound.
Key features
- 1D and 3D .cube files up to 40 MB, or seven built-in looks
- A before and after divider that follows play, pause and seek
- Strength from 0 to 100% in steps of 5, with a trim range and a resolution cap
- Per-frame grading on the graphics card through WebGL2, with a 64-pixel self-test against the CPU code and an automatic switch to the CPU if they disagree
- Real-time recording of up to 60 minutes per run, with a size and time estimate before you start
How a .cube LUT is read and applied to each frame
The .cube file is read by the same code as Apply LUT to Image, which explains the format in full; this page covers what changes when the target is a clip.
Rendering is a recording, not a batch conversion. The clip plays through a canvas at its natural speed, each drawn frame is graded, and the canvas is recorded together with the original sound. That is why a 90-second range takes 90 seconds to render, why the estimate under the settings quotes the duration, and why one run is capped at 60 minutes. Quality presets turn the output size into a bit rate: a 1920 x 1080 source capped at 720p becomes 1280 x 720, which Balanced encodes at 1.7 Mbit/s of video plus 128 kbit/s of sound.
Before a clip is graded on the graphics card, the page builds the WebGL2 pipeline and grades 64 pseudo-random pixels. It compares them with the CPU's trilinear result, and if any channel is more than 3 of 255 away, or WebGL2 is missing, it uses the CPU instead. The status line afterwards reports what happened, for example "Graded 77 frames on the graphics card (WebGL2), 0.2 ms per frame on average". On the CPU the render uses tetrahedral interpolation instead.
How it works
The preview draws the current frame at up to 640 px wide, grades only the columns to the right of the divider, and labels the two sides. It redraws when you seek or pause and on every frame the browser presents during playback.
Browsers hand canvas code 8-bit sRGB pixels. HDR or 10-bit footage is tone-mapped to that range before the LUT sees it, and every channel is clamped to 0 to 1 after the lookup, so the file you get is 8-bit SDR whatever the source was.
Strength mixes the graded colour with the original channel by channel, so 50% is exactly halfway.
Common use cases
- Grading a 2-minute phone clip at 1080p where the CPU is doing the work: the page times a sample frame, reports roughly 10 frames a second at that size, and a drop to the 720p cap brings it to about 21.
- Trimming a 14-minute interview to the 40 seconds that will be used and grading only those, so the render takes 40 seconds instead of 14 minutes.
- Checking a camera maker's conversion LUT on log footage at 60% strength before committing to a render, to see how far the shadows lift.
How to use this tool
- Drop the video and wait for its size and length to appear.
- Load a .cube file, or choose a look from the built-in list.
- Seek to a frame with both deep shadows and a skin tone, and drag the divider to compare the two sides.
- Set the strength, then the range, resolution cap, quality and file type.
- Read the grading line under the settings; if it says the CPU is in use, lower the resolution cap, because cost follows pixel count and 720p has less than half the pixels of 1080p.
- Press Render graded video and wait for the clip to play through once.
Example
lecture.mp4, 1920 x 1080, 90 seconds. Look: Teal and orange at 100%. Resolution 720p, quality Balanced, file type Automatic
Range 0:00 to 1:30What the page shows before and after rendering
Before: 1280 x 720 px, 1 min 30 s · video 1.7 Mbit/s + sound 128 kbit/s · about 19.75 MB
Render time: about 1 min 30 s, because the clip plays once in real time
With the cap set to Original: 3.7 Mbit/s, about 42.66 MBEdge cases to watch
Switching to another tab pauses the recording and resumes when you return, so nothing is lost but the wait grows by as long as you were away.
The render is a new lossy encode, so a clip that already has a low bit rate can show blocky dark areas after grading. Choose High quality for those.
Strong-contrast LUTs at full strength can clip highlights, because every channel is clamped after the lookup.
Only the picture is graded; the original sound is recorded as it was and is limited to the range you chose.
- A LUT made for a specific input, such as log footage, looks washed or oversaturated on ordinary video; drop the strength to see how far off it is.
Common errors and how to fix them
- Line 12: unrecognised line
- The file is not a .cube LUT or uses a keyword this reader does not know. Re-export it as .cube from the grading tool.
- Row count does not match the declared size (33 points need 35,937 rows)
- The export was cut short. Export the LUT again; a partly filled table is refused rather than guessed at.
- A 3D LUT of size 150 is too large for the browser (limit 129)
- Export the LUT again at 65 or 33 points; 129 per side is the largest table this page reads.
- This browser cannot record a canvas
- Use a current Chrome, Edge, Firefox or Safari; MediaRecorder or canvas capture is missing in the one you are using.
What a frame costs
Grading time per frame follows the pixel count, and the render cannot go faster than the clip plays. When the CPU does the work, the page times a sample frame on your own machine and states the rate it expects. Timing the same CPU code gave these figures, with the recorder offered at most 31 frames a second:
- Graphics card: the status line after a render reports the average, for example 0.2 ms per frame
- CPU at 1280 x 720: about 47 ms per frame, a sustained rate of about 21 frames a second
- CPU at 1920 x 1080: about 101 ms per frame, a sustained rate of about 10 frames a second
Frequently asked questions
Will the graded video match what my editing software shows?
Closely but not exactly. The browser hands the page 8-bit sRGB video and the LUT is applied to those values directly, so a LUT that expects log or wide-gamut input needs that input first.
Why would the GPU and CPU results differ?
The graphics card blends eight table entries (trilinear) and the CPU path blends four (tetrahedral). On the built-in looks they differ by at most 2 of 255 levels, within the 3-level tolerance the self-test allows.
Can I turn the graphics card off?
Yes. Untick the grading option and the preview and render both use the CPU. That is the way to rule out the graphics card if a result looks wrong, since the self-test checks only 64 pixels.
Is there a version for single pictures?
Apply LUT to Image on this site grades stills and batches of up to 50 pictures, and explains the .cube format and the interpolation methods in detail.