Probleme beim Upscaling von MakeMKV-Dateien - powerthrash4K - 21.09.2025
Hallo Selur,
ich habe jetzt das Problem, das bei einer Serie, die ich mit MakeMKV von DVDs überspielt habe, der Preview-Bildschirm folgendermaßen angezeigt wird. Die Debug-Datei habe ich angehangen (siehe Anhang).
Leider bekomme ich hier kein Bild rein, da es viel von der Dateigröße her viel zu groß ist. Der Farbraum fehlt jedenfalls komplett oben werden Codes mit weißer Schrift auf schwarzem Feld angezeigt und das Bild ist generell weiß und nur in Umrissen angezeigt, als wäre es mit weißem Sand gelegt.
RE: Probleme beim Upscaling von MakeMKV-Dateien - Selur - 21.09.2025
Der Debug Output zeigt vor allem einen NVEnc Encode bei dem
C:\Users\Peter\Desktop\Zeug\Upscaling\Hybrid\Naruto.Shippuden.S22E01.German.DL.DTS.1080p.BluRay.x265-ABJ_new_new_new_new_new_new_new.mkv
erstellt wurde.
zwischen drinnen sieht man das vsViewer mit:
# Imports
import vapoursynth as vs
# getting Vapoursynth core
import logging
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")
os.environ["CUDA_MODULE_LOADING"] = "LAZY"
# Force logging to std:err
logging.StreamHandler(sys.stderr)
# Adding dml dependencies to PATH
path = site.getsitepackages()[0]+'/../vs-mlrt/vsort'
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/Support/vszip.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vs-mlrt/vsort.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/ZSmooth/zsmooth.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/NEO_FFT3DFilter/neo-fft3d.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/Support/EEDI3m_opencl.dll")# vsQTGMC
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/ResizeFilter/nnedi3/NNEDI3CL.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/fmtconv.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/Support/akarin.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/LSMASHSource.dll")
# Import scripts
from importlib.machinery import SourceFileLoader
vsmlrt = SourceFileLoader('vsmlrt', 'C:/Program Files/Hybrid/64bit/vs-mlrt/vsmlrt.py').load_module()
from vsmlrt import Backend
import ChangeFPS
import qtgmc
import validate
# Source: 'C:\Users\Peter\Desktop\Zeug\Upscaling\Shaolin Wuzang - Episode 1 - Die Rückkehr des Dämons.mkv'
# Current color space: YUV420P8, bit depth: 8, resolution: 720x576, frame rate: 25fps, scanorder: top field first, yuv luminance scale: limited, matrix: 470bg, format: mpeg-2
# Loading C:\Users\Peter\Desktop\Zeug\Upscaling\Shaolin Wuzang - Episode 1 - Die Rückkehr des Dämons.mkv using LWLibavSource
clip = core.lsmas.LWLibavSource(source="C:/Users/Peter/Desktop/Zeug/Upscaling/Shaolin Wuzang - Episode 1 - Die Rückkehr des Dämons.mkv", format="YUV420P8", stream_index=0, cache=0, prefer_hw=0)
frame = clip.get_frame(0)
# setting color matrix to 470bg.
clip = core.std.SetFrameProps(clip, _Matrix=vs.MATRIX_BT470_BG)
# setting color transfer (vs.TRANSFER_BT601), if it is not set.
if validate.transferIsInvalid(clip):
clip = core.std.SetFrameProps(clip=clip, _Transfer=vs.TRANSFER_BT601)
# setting color primaries info (to vs.PRIMARIES_BT470_BG), if it is not set.
if validate.primariesIsInvalid(clip):
clip = core.std.SetFrameProps(clip=clip, _Primaries=vs.PRIMARIES_BT470_BG)
# setting color range to TV (limited) range.
clip = core.std.SetFrameProps(clip=clip, _ColorRange=vs.RANGE_LIMITED)
# making sure frame rate is set to 25fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
# making sure the detected scan type is set (detected: top field first)
clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_TOP) # tff
original = clip
# Deinterlacing using QTGMC
clip = qtgmc.QTGMC(Input=clip, Preset="Fast", TFF=True, ShowSettings=True, ShowNoise=True, opencl=True) # new fps: 50
# Making sure content is preceived as frame based
clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_PROGRESSIVE) # progressive
# Deinterlacing using QTGMC
original = qtgmc.QTGMC(Input=original, Preset="Fast", TFF=True, ShowSettings=True, ShowNoise=True, opencl=True) # new fps: 50
# Making sure content is preceived as frame based
original = core.std.SetFrameProps(clip=original, _FieldBased=vs.FIELD_PROGRESSIVE) # progressive
# adjusting frame count by adding duplicate frames
original = ChangeFPS.ChangeFPS(clip=original,target_fps_num=50,target_fps_den=1)
# changing range from limited to full range for vsVSMLRT
clip = core.resize.Bicubic(clip, format=vs.YUV420P8, range_in_s="limited", range_s="full")
# setting color range to PC (full) range.
clip = core.std.SetFrameProps(clip=clip, _ColorRange=vs.RANGE_FULL)
# adjusting color space from YUV420P8 to RGBH for vsVSMLRT
clip = core.resize.Bicubic(clip=clip, format=vs.RGBH, matrix_in_s="470bg", range_in_s="full", range_s="full")
# resizing using VSMLRT, target: 1440x1152
clip = vsmlrt.inference([clip],network_path="C:/Program Files/Hybrid/64bit/onnx_models/2x_LD-Anime_Compact_330k_net_g.onnx", backend=Backend.ORT_DML(fp16=True,device_id=0,num_streams=1)) # 1440x1152
# changing range from full to limited range for vsVSMLRT
clip = core.resize.Bicubic(clip, format=vs.RGBH,range_in_s="full", range_s="limited")
# making sure 0-1 limits are respected
clip = core.vszip.Limiter(clip=clip, min=[0,0,0], max=[1,1,1])
original = core.resize.Bicubic(clip=original, width=1440, height=1152)
# adjusting output color from: YUV420P8 to YUV420P10 for NVEncModel
original = core.resize.Bicubic(clip=original, format=vs.YUV420P10)
# adjusting output color from: RGBH to YUV420P10 for NVEncModel
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10, matrix_s="470bg", range_in_s="full", range_s="limited", dither_type="error_diffusion") # additional resize to allow target color sampling
original = core.text.Text(clip=original,text="Original",scale=2,alignment=7)
clip = core.text.Text(clip=clip,text="Filtered",scale=2,alignment=7)
stacked = core.std.StackHorizontal([original,clip])
# adjusted resizing to achieve PAR 1:1 for preview
# resizing for preview to square pixel to 3072x1152
stacked = core.resize.Bicubic(clip=stacked, width=3072, height=1152)
# set output frame rate to 50fps (progressive)
stacked = core.std.AssumeFPS(clip=stacked, fpsnum=50, fpsden=1)
# output
stacked.set_output()
geöffnet wird und anscheinen direkt wieder schließt.
Quote:Leider bekomme ich hier kein Bild rein, da es viel von der Dateigröße her viel zu groß ist
Mit STRG+A kann man den Inhalt von Fehlerfenstern i.d.R. kopieren oder Du könntest Dein Bild z.B. bei https://imgbb.com/ hochladen und hier verlinken.
Wenn Du bei Deinem Encode auch pytorch verwendest ist das vielleicht das Problem warum der Preview nicht geht.
Mit den aktuellen Informationen kann ich nicht helfen.
Cu Selur
RE: Probleme beim Upscaling von MakeMKV-Dateien - powerthrash4K - 21.09.2025
https://ibb.co/Lzk4qWvt
Das wäre der Link.
Welche Informationen bräuchtest du da noch? Ich meine ich hätte so ein ähnliches Problem mal in den anderen Posts gesehen. Ich verwende Vapoursynth und bei jedem Resizer sieht es gleich aus. Als Encoder verwende ich NVEnc und h265.
RE: Probleme beim Upscaling von MakeMKV-Dateien - Selur - 21.09.2025
Du hast Hybrid in deinen QTGMC Einstellungen gesagt, :- dass es dir die QTGMC Einstellungen anzeigen soll ('Show settings'). Das blendet alle aktuell gesetzten QTGMC Einstellungen ein. Das ist der weiße Text auf schwarzem Hintergrund.
- dass es die zeigen soll, was es als Rauschen ansieht ('Show noise'). Das sorgt dafür, dass in der Vorschau die 'noise mask' angezeigt wird.
# Deinterlacing using QTGMC
clip = qtgmc.QTGMC(Input=clip, Preset="Fast", TFF=True, ShowSettings=True, ShowNoise=True, opencl=True) # new fps: 50
=> Hybrid macht, was du ihm sagst. ¯\_(ツ)_/¯
Cu Selur
RE: Probleme beim Upscaling von MakeMKV-Dateien - powerthrash4K - 21.09.2025
Hallo Selur,
ich habe da nie was eingestellt. Wie kann ich das im Programm ändern?
RE: Probleme beim Upscaling von MakeMKV-Dateien - Selur - 21.09.2025
Quote:ich habe da nie was eingestellt. Wie kann ich das im Programm ändern?
Diese Optionen sind standardmäßig deaktiviert, du musst sie geändert haben.
Normalerweise sieht die Konfiguration so aus:
![[Image: grafik.png]](https://i.ibb.co/Z6MwJtPf/grafik.png)
Damit:
# Deinterlacing using QTGMC
clip = qtgmc.QTGMC(Input=clip, Preset="Fast", TFF=True, ShowSettings=True, ShowNoise=True, opencl=True) # new fps: 50
verwendet wird, musst du sie auf:
![[Image: grafik.png]](https://i.ibb.co/gM4ZxsYj/grafik.png)
geändert haben.
"ShowSettings=True, ShowNoise=True, opencl=True" und Bob können nur durch den Benutzer gesetzt werden.
Cu Selur
RE: Probleme beim Upscaling von MakeMKV-Dateien - powerthrash4K - 21.09.2025
Tatsächlich habe ich da gar nichts dran geändert. Ich habe das Menü sogar noch nie verwendet bzw. angesehen. Danke, ich werde es mal testen.
RE: Probleme beim Upscaling von MakeMKV-Dateien - Selur - 21.09.2025
Davon ausgegangen, dass Du auch nicht irgendein Profile/Config importiert hast, ist da was sehr merkwürdig.
Cu Selur
RE: Probleme beim Upscaling von MakeMKV-Dateien - powerthrash4K - 21.09.2025
Hallo Selur,
Vielen Dank, das funktioniert!
LG Peter
|