AVSCube

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(Examples)
(update to v1.3)
Line 2: Line 2:
 
{{Filter3
 
{{Filter3
 
|{{Author/Donald Graft}}
 
|{{Author/Donald Graft}}
|v1.1
+
|v1.3
|3=[http://rationalqm.us/hdr/avscube_1.1.rar avscube_1.1.rar]
+
|3=[http://rationalqm.us/hdr/avscube_1.3.zip avscube_1.3.zip]
 
|4=Adjustment Filters
 
|4=Adjustment Filters
 
|5=Open source
 
|5=Open source
Line 47: Line 47:
 
   
 
   
 
  #Indexing
 
  #Indexing
  DGSource("THE GREAT WALL.dgi", fulldepth=true)
+
  DGSource("THE GREAT WALL.dgi")
 
  #From 4:2:0 10bit planar Narrow Range to RGB Planar 16bit Full Range
 
  #From 4:2:0 10bit planar Narrow Range to RGB Planar 16bit Full Range
  [[Avsresize#z_ConvertFormat|z_ConvertFormat]](pixel_type="RGBP16", colorspace_op="2020:st2084:2020:limited=>rgb:st2084:2020:full", resample_filter_uv="spline64", dither_type="error_diffusion")
+
  [[Avsresize#z_ConvertFormat|z_ConvertFormat]](pixel_type="RGBP16", colorspace_op="2020:st2084:2020:limited=>rgb:st2084:2020:full", resample_filter_uv="spline64", dither_type="error_diffusion")<br>
 
  #From PQ to HLG with 16bit precision
 
  #From PQ to HLG with 16bit precision
  Cube("...\test.cube")
+
  Cube("...\test.cube")<br>
 
  #From RGB 16bit planar Full Range to YUV420 10bit planar Narrow Range with dithering
 
  #From RGB 16bit planar Full Range to YUV420 10bit planar Narrow Range with dithering
 
  [[Avsresize#z_ConvertFormat|z_ConvertFormat]](pixel_type="YUV420P10", colorspace_op="rgb:std-b67:2020:full=>2020:std-b67:2020:limited", resample_filter_uv="spline64", dither_type="error_diffusion")
 
  [[Avsresize#z_ConvertFormat|z_ConvertFormat]](pixel_type="YUV420P10", colorspace_op="rgb:std-b67:2020:full=>2020:std-b67:2020:limited", resample_filter_uv="spline64", dither_type="error_diffusion")
Line 59: Line 59:
 
== Changelog ==
 
== Changelog ==
 
  Version        Date            Changes
 
  Version        Date            Changes
 +
v1.3            2021/01/21      - Updated to timecube version 1.3 base code.
 +
                                - Added frame properties passthrough.
 +
                                - Updated the help document.
 
  v1.1            2019/01/25      - Rather than upgrade to r2a I ported the fullrange fix only.
 
  v1.1            2019/01/25      - Rather than upgrade to r2a I ported the fullrange fix only.
 
  v1.0            2018/08/16      - Initial release
 
  v1.0            2018/08/16      - Initial release
Line 68: Line 71:
 
!!width="150px"| Download
 
!!width="150px"| Download
 
!!width="150px"| Mirror
 
!!width="150px"| Mirror
 +
|-
 +
!v1.3
 +
|[http://rationalqm.us/hdr/avscube_1.3.zip avscube_1.3.zip]
 +
|
 
|-
 
|-
 
!v1.1
 
!v1.1

Revision as of 22:18, 21 January 2022

Abstract
Author Donald Graft
Version v1.3
Download avscube_1.3.zip
Category Adjustment Filters
License Open source
Discussion Doom9 Thread

Contents

Description

AviSynth+ plugin to load and apply Adobe 3D LUTs to a clip. Ported from VapourSynth timecube plugin.

Requirements


Syntax and Parameters

Cube (clip, string "cube", int "cpu", bool "fullrange")


clip   =
Input clip; the filter receives and delivers the RGBP16 color space.


string  cube = ""
Full path of the 3D LUT file. This must be an Adobe *.cube file.


int  cpu = INT_MAX
cpu: default INT_MAX, which selects best SIMD.
  • 0 : SIMD_NONE
  • 1 : SIMD_SSE42
  • 2 : SIMD_AVX2


bool  fullrange = true
  • false : limited range
  • true : full range


Examples

Apply 3D LUT to clip obtained from BlankClip:

BlankClip(pixel_type="RGBP16", color=$ff0000)
Cube("...\test.cube")
ConvertToYUV420()

Apply 3D LUT to HDR10 PQ clip obtained from DGSource() to go to HLG:

#Indexing
DGSource("THE GREAT WALL.dgi")
#From 4:2:0 10bit planar Narrow Range to RGB Planar 16bit Full Range
z_ConvertFormat(pixel_type="RGBP16", colorspace_op="2020:st2084:2020:limited=>rgb:st2084:2020:full", resample_filter_uv="spline64", dither_type="error_diffusion")
#From PQ to HLG with 16bit precision Cube("...\test.cube")
#From RGB 16bit planar Full Range to YUV420 10bit planar Narrow Range with dithering z_ConvertFormat(pixel_type="YUV420P10", colorspace_op="rgb:std-b67:2020:full=>2020:std-b67:2020:limited", resample_filter_uv="spline64", dither_type="error_diffusion")


Changelog

Version         Date            Changes
v1.3            2021/01/21      - Updated to timecube version 1.3 base code.
                                - Added frame properties passthrough.
                                - Updated the help document.
v1.1            2019/01/25      - Rather than upgrade to r2a I ported the fullrange fix only.
v1.0            2018/08/16      - Initial release


Archived Downloads

Version Download Mirror
v1.3 avscube_1.3.zip
v1.1 avscube_1.1.rar avscube_1.1.rar
v1.0 avscube_1.0.rar avscube_1.0.rar


External Links




Back to External Filters

Personal tools