Skip to content

vsmuxtools.video.encoders.noise

SVTAV1_LIGHT_NOISE_TABLE_LIMITED module-attribute

SVTAV1_LIGHT_NOISE_TABLE_LIMITED = 'filmgrn1\nE 0 18446744073709551615 1 787 1\n\tp 3 7 0 8 0 1 128 192 256 128 192 256\n    sY 9 0 0 16 0 17 2 18 3 157 3 177 4 233 4 235 0 255 0\n\tsCb 0\n\tsCr 0\n\tcY 3 4 3 3 3 3 3 3 4 2 0 2 3 3 3 2 -7 -19 -4 1 3 2 0 -18\n\tcCb -3 9 -15 20 -6 0 0 9 -22 32 -50 10 -3 1 -15 32 -61 70 -26 -1 -2 17 -40 59 11\n\tcCr -3 9 -15 20 -6 0 1 9 -21 32 -50 10 -3 0 -14 31 -61 71 -26 -1 -1 17 -40 58 11\n'

A table for photon noise that serves as a light dither layer to prevent banding.

With cutoffs for limited range clips.

SVTAV1_LIGHT_NOISE_TABLE_FULL module-attribute

SVTAV1_LIGHT_NOISE_TABLE_FULL = 'filmgrn1\nE 0 18446744073709551615 1 787 1\n\tp 3 7 0 8 0 1 128 192 256 128 192 256\n\tsY 6 0 4 20 3 157 3 177 4 235 4 255 5\n\tsCb 0\n\tsCr 0\n\tcY 3 4 3 3 3 3 3 3 4 2 0 2 3 3 3 2 -7 -19 -4 1 3 2 0 -18\n\tcCb -3 9 -15 20 -6 0 0 9 -22 32 -50 10 -3 1 -15 32 -61 70 -26 -1 -2 17 -40 59 11\n\tcCr -3 9 -15 20 -6 0 1 9 -21 32 -50 10 -3 0 -14 31 -61 71 -26 -1 -1 17 -40 58 11\n'

A table for photon noise that serves as a light dither layer to prevent banding.

With cutoffs for full range clips.

x265_write_light_noise_table_limited

x265_write_light_noise_table_limited(target: PathLike, length: int)

A table for photon noise that serves as a light dither layer to prevent banding.

With cutoffs for limited range clips.

Source code in vsmuxtools/video/encoders/noise.py
def x265_write_light_noise_table_limited(target: PathLike, length: int):
    """
    A table for photon noise that serves as a light dither layer to prevent banding.\n
    With cutoffs for limited range clips.
    """
    x265_write_light_noise_table_helper(target, length, "9 0 0 16 0 17 2 18 3 157 3 177 4 233 4 235 0 255 0")

x265_write_light_noise_table_full

x265_write_light_noise_table_full(target: PathLike, length: int)

A table for photon noise that serves as a light dither layer to prevent banding.

With cutoffs for full range clips.

Source code in vsmuxtools/video/encoders/noise.py
def x265_write_light_noise_table_full(target: PathLike, length: int):
    """
    A table for photon noise that serves as a light dither layer to prevent banding.\n
    With cutoffs for full range clips.
    """
    x265_write_light_noise_table_helper(target, length, "6 0 4 20 3 157 3 177 4 235 4 255 5")