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.

Chapter selection → *.MKV ..
#3
(13.02.2024, 18:51)Selur Wrote: Looking at the log and the Vapoursynth script:
# Imports
import vapoursynth as vs
# getting Vapoursynth core
import site
import ctypes
import sys
import os
core = vs.core
# Import scripts folder
scriptPath = 'C:/Program Files/Hybrid/64bit/vsscripts'
sys.path.insert(0, os.path.abspath(scriptPath))
# Loading Support Files
Dllref = ctypes.windll.LoadLibrary("C:/Program Files/Hybrid/64bit/vsfilters/Support/libfftw3f-3.dll")
# Adding torch dependencies to PATH
path = site.getsitepackages()[0]+'/torch_dependencies/bin/'
ctypes.windll.kernel32.SetDllDirectoryW(path)
path = path.replace('\\', '/')
os.environ["PATH"] = path + os.pathsep + os.environ["PATH"]
# Loading Plugins
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/KNLMeansCL/KNLMeansCL.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/GrainFilter/RemoveGrain/RemoveGrainVS.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/GrainFilter/AddGrain/AddGrain.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/DFTTest/DFTTest.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/NEO_FFT3DFilter/neo-fft3d.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/EEDI3m.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/ResizeFilter/nnedi3/vsznedi3.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/libmvtools.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/scenechange.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/fmtconv.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/MiscFilter/MiscFilters/MiscFilters.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DeinterlaceFilter/Bwdif/Bwdif.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
# defining beforeDeinterlace-function - START
def beforeDeinterlace(clip):
  clip = core.std.Transpose(clip)
  return clip
# defining beforeDeinterlace-function - END
# defining beforeQTGMCFilter-function - START
def beforeQTGMCFilter(clip):
  clip = core.std.Transpose(clip)
  return clip
# defining beforeQTGMCFilter-function - END
# Import scripts
import G41Fun
import havsfunc
# source: 'F:\Temp-\AIRWOLF\SEIZOEN 4\0001.mkv'
# current color space: YUV420P8, bit depth: 8, resolution: 720x576, fps: 25, color matrix: 470bg, yuv luminance scale: limited, scanorder: top field first
# Loading F:\Temp-\AIRWOLF\SEIZOEN 4\0001.mkv using LWLibavSource
clip = core.lsmas.LWLibavSource(source="F:/Temp-/AIRWOLF/SEIZOEN 4/0001.mkv", format="YUV420P8", stream_index=0, cache=0, prefer_hw=0)
frame = clip.get_frame(0)
# Setting detected color matrix (470bg).
clip = core.std.SetFrameProps(clip, _Matrix=5)
# Setting color transfer (to 470bg), if it is not set.
if '_Transfer' not in frame.props or not frame.props['_Transfer']:
  clip = core.std.SetFrameProps(clip, _Transfer=5)
# Setting color primaries info (to 5), if it is not set.
if '_Primaries' not in frame.props or not frame.props['_Primaries']:
  clip = core.std.SetFrameProps(clip, _Primaries=5)
# Setting color range to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
# making sure frame rate is set to 25
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=2) # tff
# cutting from frame 0 to 2264  - WARNING: This might cause synch issues
clip = core.std.Trim(clip=clip, first=0, last=2264)
clip = beforeDeinterlace(clip)
# Deinterlacing using QTGMC
clip = havsfunc.QTGMC(Input=clip, Preset="Slower", TFF=True) # new fps: 25
# Making sure content is preceived as frame based
clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=0) # progressive
clip = clip[::2] # selecting previously even frames
# adjusting color space from YUV420P8 to RGB24 for vsLevels
clip = core.resize.Bicubic(clip=clip, format=vs.RGB24, matrix_in_s="470bg", range_s="limited")
# Color Adjustment using Levels on RGB24 (8 bit)
clip = core.std.Levels(clip=clip, min_in=0, max_in=255, min_out=0, max_out=255)
# adjusting color space from RGB24 to YUV444P8 for vsRemoveGrain
clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P8, matrix_s="470bg", range_s="limited")
# removing grain using RemoveGrain
clip = core.rgvs.RemoveGrain(clip=clip, mode=24)
# denoising using KNLMeansCL
clip = havsfunc.KNLMeansCL(clip=clip, d=0, a=8, s=2, h=1.00)
clip = beforeQTGMCFilter(clip)
# Denoising using QTGMC
clip = havsfunc.QTGMC(Input=clip, Preset="Placebo", InputType=3, TR2=2, Sharpness=0.2, TFF=False, SourceMatch=2, Lossless=0, EZDenoise=0.35, NoisePreset="Fast", MatchPreset="Fast", MatchPreset2="Fast", MatchEnhance=1.00)
# sharpening using DetailSharpen
clip = G41Fun.DetailSharpen(clip=clip, sstr=2.000, ldmp=0.250, mode=0, med=True)
from vsrealesrgan import realesrgan as RealESRGAN
# adjusting color space from YUV444P8 to RGBH for vsRealESRGAN
clip = core.resize.Bicubic(clip=clip, format=vs.RGBH, matrix_in_s="470bg", range_s="limited")
# resizing using RealESRGAN
clip = RealESRGAN(clip=clip, model=5, device_index=0, trt=True, trt_cache_path=r"F:\Temp-\AIRWOLF\SEIZOEN 4", denoise_strength=0.25) # 2880x2304
# resizing 2880x2304 to 1920x1080
# adjusting resizing
clip = core.resize.Bicubic(clip=clip, format=vs.RGBS, range_s="limited")
clip = core.fmtc.resample(clip=clip, w=1920, h=1080, kernel="sinc", interlaced=False, interlacedd=False)
# adjusting output color from: RGBS to YUV420P8 for x264Model
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P8, matrix_s="470bg", range_s="limited", dither_type="error_diffusion")
# set output frame rate to 25fps (progressive)
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
# Output
clip.set_output()
Directly before the deinterlacing:
clip = core.std.Trim(clip=clip, first=0, last=2264)
is properly added.
btw. youe script is badly wrong.
# defining beforeDeinterlace-function - START
def beforeDeinterlace(clip):
  clip = core.std.Transpose(clip)
  return clip
# defining beforeDeinterlace-function - END
# defining beforeQTGMCFilter-function - START
def beforeQTGMCFilter(clip):
  clip = core.std.Transpose(clip)
  return clip
# defining beforeQTGMCFilter-function - END
You should add the Transpose once before beforeQTGMCFilter and then directly after it. Not before the deinterlacing!

I would like to think my script is to the point .. yes..  
But at the same time you are confusing me , when you write that my script is wrong Huh ..

You still can remember why exactly i put the "line" where it should belong don't you, my Majesty ?
I mean, you've suggested it exactly as you read it in the script .. !?

i.e: → "Vertico Line Noise" ←  ..

If i change it back like you suggested now , and put it B4 QTGMCfilter & after (B4 Cnr2), the Vertical Line Noise is Back with (ง ͠° ͟ل͜ ͡°)ง A VENGEANCE  !!!
Yep, the noise is all over the place again when i do that..

So again, why would i put it before & after QTGMCfilter all of a sudden ?? 

That doesn't solve the issue with the chapter selection .. fyi ..



(13.02.2024, 18:51)Selur Wrote: You stopped the processing after 376 frames,...
2024.02.13 - 14:55:45_Windows 11 Version 23H2 (64bit)_2024.01.14.1 - level 9: x264 output: 376 frames: 13.72 fps, 3257.13 kb/s
2024.02.13 - 14:55:45_Windows 11 Version 23H2 (64bit)_2024.01.14.1 - level 9: on_stopAllPushButton_click
this does not look like anything is wrong, with Hybrid.
Cu Selur



Ofcourse i have aborted the job, i don't intend to let hybrid process an full media file that would take several hours (ESRgan upscaling) !!

I know, the totall amount of frames matches with the duration of the chapter wich is 90 seconds...
Yet.. either debug is lying to both of us !!  Or this is yet another "global profile" thingie  .. again Dodgy !!  

Except, loading a re-saved profile didn't solved it .. this time !  
that having said, restarting hybrid (using defaults setting) solved it ...  Dodgy

Except for loading a profile, i started hybrid, set paths to source , checked auto rename file , choosed a container format, loaded the media file, selected chapter 1-1 .. and hybrid complied .. this time..

Hence why i suspect a profile issue  .. again ಠ~ಠ  !?

 

Ta Ta
Toilet(°^°)

EDIT:  Important to know..  To exclude any particular hybrid config setting that may cause this.. i have loaded two instances of Hybrid..  One with default settings and the other wiht my loaded custom saved global preset.

I have compared all vital settings side by side , and have found NOT one box checked on or off differently ..  Also in Vapoursynth, all config settings are pretty much the same.  Apart from the settings from the filter section ofcourse , wich has nothing to do with chapter selection imo ...

So it seems, loaded profiles affect hybrid in such way it sabotages hybrid functioning  !


Ta Ta
TD
Reply


Messages In This Thread
RE: Chapter selection → *.MKV .. - by Selur - 13.02.2024, 18:51
RE: Chapter selection → *.MKV .. - by ToiletDuck - 13.02.2024, 22:57
RE: Chapter selection → *.MKV .. - by Selur - 14.02.2024, 06:37
RE: Chapter selection → *.MKV .. - by Selur - 14.02.2024, 19:36

Forum Jump:


Users browsing this thread: 1 Guest(s)