Avisynth AVSCube
AVSCube applies a color lookup table (LUT) in .cube format to the video. Typical uses are converting camera log footage to BT.709, converting between SDR, PQ and HLG or between 601/709/2020, and creative "film look" grades. It runs on the CPU; DGCube does the same on an NVIDIA card.
Filtering → Avisynth → Color → Conversion

What it does
Every RGB value of the picture is looked up in the 3D table of the chosen .cube file and replaced by the table's result, interpolated between the table's grid points.
Settings
| Control | Parameter | Values | Hybrid default | Meaning |
|---|---|---|---|---|
| LUT | cube | the .cube files of Hybrid's LUT folder | first file of the list | LUT to apply. Disabled with custom folder. |
| custom folder | – | on/off, folder | off | Use the .cube files of another folder (path field and Select button); this is also how the creative LUTs in the color subfolder are reached. |
| Interpolation | interp | linear, tetrahedral | tetrahedral | Interpolation between the grid points; linear is faster. |
| SIMD | cpu | auto, none, SSE4.2, AVX2, AVX512 | auto | CPU instruction set; auto picks the best available. |
| full range | fullrange | on/off | on | Treats the data as full range (0–255) instead of limited range (16–235). |
Hybrid ships about 50 LUTs (the LUT component of the general add-on), among them camera log to BT.709 (ALog, C-Log3, LogC, …), BT.601 PAL/NTSC ↔ BT.709/BT.2020, and conversions between PQ, HLG and BT.709.
Example
BT.709 to BT.601 PAL on a 10-bit YUV 4:2:0 source; Hybrid converts to 16-bit planar RGB and back:
# Converting from 10 to 16bit for AVSCube
ConvertBits(16)
ConvertToPlanarRGB(interlaced=false, matrix="Rec601")
# color adjustment using AVSCube
Cube("C:\Program Files\Hybrid\64bit\LUTs\BT709_to_BT601_PAL.cube",interp=1,fullrange=1)
# AVSCube changed the color matrix to bt601
# adjust color to YV12 (color matrix: Rec601)
ConvertToYUV420()
# Converting from 16 to 10bit for encoder
ConvertBits(10)
How Hybrid calls it
- Hybrid loads vscube.dll and calls its
Cube()function. It only accepts 8- or 16-bit planar RGB, so Hybrid converts the clip to planar RGB first (10-bit sources to 16 bit) and back to YUV afterwards. - Hybrid reads the target of the LUT from its file name (the part after "_to_") and uses that matrix for the following conversions; a script comment names it.
- Interpolation and full range are always written, SIMD only when not auto.
- If no LUT is selected or the file does not exist, Hybrid writes a comment and skips the filter.
- The filter can only be enabled when the LUT component is installed.
- AVSCube also offers the common options and can be added to the filter queue several times.
Background
The plugin (vscube) is the AviSynth version of sekrit-twc's timecube library, the same code that VapourSynth's TimeCube uses. Most of the shipped LUTs come from Francesco Bucciantini's LinearTransformation collection, which also documents the usual call: ConvertBits(16), ConvertToPlanarRGB(), Cube("….cube").
Sources
- timecube (library and plugin source)
- LinearTransformation (LUT collection, README)
- Hybrid's tooltips
- The AviSynth+ documentation does not cover AVSCube.