This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[HELP] Can't run Cnr2 noise reduction
#8
Vapoursynth script:
# Imports
import vapoursynth as vs
# getting Vapoursynth core
core = vs.core
# Loading Plugins
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/Cnr2/libcnr2.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
# source: 'S:\HybridOUT\GBH-Liv-SVHS-DMR_SD-qtgmc_new.mov'
# current color space: YUV422P10, bit depth: 10, resolution: 732x564, fps: 25, color matrix: 709, yuv luminance scale: limited, scanorder: progressive
# Loading S:\HybridOUT\GBH-Liv-SVHS-DMR_SD-qtgmc_new.mov using LWLibavSource
clip = core.lsmas.LWLibavSource(source="S:/HybridOUT/GBH-Liv-SVHS-DMR_SD-qtgmc_new.mov", format="YUV422P10", cache=0, fpsnum=25, prefer_hw=0)
# making sure input color matrix is set as 709
clip = core.resize.Bicubic(clip, matrix_in_s="709",range_s="limited")
# making sure frame rate is set to 25
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
# Setting color range to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
# adjusting color space from YUV422P10 to YUV444P8 for vsCnr2
clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P8, range_s="limited")
# chroma denoising using VsCnr2
clip = core.cnr2.Cnr2(clip=clip, mode="oxx")
# adjusting output color from: YUV444P8 to YUV422P10 for ProResModel
clip = core.resize.Bicubic(clip=clip, format=vs.YUV422P10, range_s="limited")
# set output frame rate to 25.000fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
# Output
clip.set_output()
looks correct.

Encoding call:
"C:\Program Files\Hybrid\64bit\Vapoursynth\vspipe.exe" "S:\HybridTemp\encodingTempSynthSkript_2022-01-31@17_51_37_1610.vpy" - -c y4m | "C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -noautorotate -nostdin -threads 8 -f yuv4mpegpipe -i - -an -sn -vf  scale=in_range=tv:out_range=tv -pix_fmt yuv422p10le -strict -1 -vsync 0  -vcodec prores_ks -profile:v 2 -vtag apcn -metadata encoding_tool="Hybrid 2021.12.10.1" -f mov "S:\HybridTemp\GBH-Liv-SVHS-DMR_SD-qtgmc_new_new_2022-01-31@17_51_37_1610_04.mov"
also seems correct.

Don't really see the problem from the script and calls.
Do the colors in the Vapoursynth Preview look correct and are only wrong in the output or are the colors in the Vapoursynth Preview already wrong?

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply


Messages In This Thread
Can't run Cnr2 noise reduction - by Miranda - 31.01.2022, 19:12
RE: Can't run Cnr2 noise reduction - by Selur - 31.01.2022, 19:23
RE: Can't run Cnr2 noise reduction - by Selur - 31.01.2022, 19:44
RE: Can't run Cnr2 noise reduction - by Selur - 31.01.2022, 20:04
RE: Can't run Cnr2 noise reduction - by Selur - 31.01.2022, 20:09
RE: Can't run Cnr2 noise reduction - by Selur - 31.01.2022, 20:13
RE: Can't run Cnr2 noise reduction - by Selur - 31.01.2022, 20:35
RE: Can't run Cnr2 noise reduction - by Selur - 31.01.2022, 20:39
RE: Can't run Cnr2 noise reduction - by Selur - 31.01.2022, 21:09
RE: Can't run Cnr2 noise reduction - by Selur - 31.01.2022, 21:21
RE: Can't run Cnr2 noise reduction - by Selur - 31.01.2022, 21:29
RE: Can't run Cnr2 noise reduction - by Selur - 31.01.2022, 21:52
RE: Can't run Cnr2 noise reduction - by Selur - 31.01.2022, 22:02
RE: Can't run Cnr2 noise reduction - by Selur - 07.02.2022, 19:50

Forum Jump:


Users browsing this thread: 1 Guest(s)