Using a LUT (.cube) via workflow
Posted: Fri Mar 15, 2019 5:52 pm
Hi,
I'm getting some Slog3 and C-Log videos and I'd like to apply a LUT to bring them to the standard linear curve with BT709.
I made a custom Avisynth Script like so:
Then I go back to my usual workflow which includes Clipping Luma and Chroma to Limited TV Range, however I can't manage to make it work.
Since ffmpeg is actually able to use a LUT as well, I think it would be useful to create a Node called "LUT" that goes through ffmpeg and simply adds the "-vf lut3d=" command and then pipes the output to whatever.
You can find the Cube filter for avisynth here, instead: forum.doom9.org/showthread.php?t=175552
By making LUTs available, it would be useful for HLG / PQ as well.
Thank you in advance,
Frank.
I'm getting some Slog3 and C-Log videos and I'd like to apply a LUT to bring them to the standard linear curve with BT709.
I made a custom Avisynth Script like so:
Code: Select all
# Variables:
#
# m_clip = The last returned AviSynth media
#
# Do NOT change any of the following variables!!!
# _ffas_video = <original video>
# _ffas_audio = <original audio>
# _ffas_height = <source height>
# _ffas_width = <source width>
# _m_clip_a_channels = <total channels>
# _ffas_work_fdr = Working folder for the workflow
#
LoadPlugin("C:\encoder\encoder\Processors\avs_plugins\LUTs\vscube.dll")
c=Converttoyv24(m_clip)
hbd=ConvertBits(c, bits=16)
plrgb=ConvertToPlanarRGB(hbd)
m_clip=Cube(plrgb, "C:\encoder\encoder\Processors\avs_plugins\LUTs\Slog3_Avisynth.cube")
# The following MUST be the last line of your script
Return m_clip
Since ffmpeg is actually able to use a LUT as well, I think it would be useful to create a Node called "LUT" that goes through ffmpeg and simply adds the "-vf lut3d=" command and then pipes the output to whatever.
You can find the Cube filter for avisynth here, instead: forum.doom9.org/showthread.php?t=175552
By making LUTs available, it would be useful for HLG / PQ as well.
Thank you in advance,
Frank.