10.12.2017, 02:07
Hybrid version: Win64 2017.10.05.1 Vapoursynth
What happened: Crashed while attempting to encode. Vapoursynth preview also does not work.
What did I do to get the bug: Attempt to use waifu2x resizing on any video. I first encountered it while trying to encode a DVD, but I also tested other files and the result is the same. If I choose to downscale the problem does not happen (no surprise :| ).
This is the script:
Vapoursynth gives me following error:
I performed a clean installation of hybrid two times, with "delete user settings". I also checked if fmtconv.dll is in the directory (it is).
The debug log is in the attachment.
Hope you can help
What happened: Crashed while attempting to encode. Vapoursynth preview also does not work.
What did I do to get the bug: Attempt to use waifu2x resizing on any video. I first encountered it while trying to encode a DVD, but I also tested other files and the result is the same. If I choose to downscale the problem does not happen (no surprise :| ).
This is the script:
# Imports
import vapoursynth as vs
core = vs.get_core()
import ctypes
# Loading Support Files
Dllref = ctypes.windll.LoadLibrary("Support/fmtconv.dll")
# Loading Plugins
core.std.LoadPlugin(path="C:/Program Files/Hybrid/vsfilters/ResizeFilter/Waifu2x/Waifu2x-w2xc.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/vsfilters/Support/fmtconv.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
# Loading X:\!!!temp\[HorribleSubs] Kiznaiver - 10 [1080p].mkv using LWLibavSource
clip = core.lsmas.LWLibavSource(source="X:/!!!temp/_3E47R~N.MKV", format="YUV420P8", cache=0)
# making sure input color matrix is set as 709
clip = core.resize.Point(clip, matrix_in_s="709")
# Making sure input color range is set to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
# resizing to 2800x1576
# adjusting bit depth to 32bit
clip = core.fmtc.bitdepth(clip=clip,bits=32)
# resizing using Waifu2x
clip = core.w2xc.Waifu2x(clip=clip, scale=2, noise=1, block=512, photo=False, processor=-1, gpu=1)
# adjusting resizing
clip = core.fmtc.resample(clip=clip, w=2800, h=1576, kernel="lanczos", interlaced=False, interlacedd=False)
# adjusting bit depth back to 16bit
clip = core.fmtc.bitdepth(clip=clip,bits=16)
# adjusting output color from: YUV420P16 to YUV420P8
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P8)
# Output
clip.set_output()
Vapoursynth gives me following error:
Failed to evaluate the script:
Python exception: [WinError 126] The specified module could not be found
Traceback (most recent call last):
File "src\cython\vapoursynth.pyx", line 1810, in vapoursynth.vpy_evaluateScript (src\cython\vapoursynth.c:36455)
File "C:\Users\mmokk\AppData\Local\Temp\tempPreviewVapoursynthFile00_40_44_540.vpy", line 6, in <module>
Dllref = ctypes.windll.LoadLibrary("Support/fmtconv.dll")
File "ctypes\__init__.py", line 422, in LoadLibrary
File "ctypes\__init__.py", line 344, in __init__
OSError: [WinError 126] The specified module could not be found
I performed a clean installation of hybrid two times, with "delete user settings". I also checked if fmtconv.dll is in the directory (it is).
The debug log is in the attachment.
Hope you can help