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.

FSRCNNX
#2
Got an example how to use this properly?

Atm. my best guess would be to use https://github.com/Lypheo/vs-placebo with:
clip = core.placebo.Shader(clip=clip, shader="PATH TO glsl Shader")
but I have no clue how the target resolution or similar would be set?
-> if you can provide my with information on how to use FSRCNNX with Vapoursynth I might be able to add it to Hybrid.

Okay, looking at the names I assumed 'FSRCNNX_x2_16-0-4-1.glsl' would automatically return a frame with width&height multiplied by two, but applying:
# Imports
import vapoursynth as vs
core = vs.get_core()
# Loading Plugins
core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/SourceFilter/FFMS2/ffms2.dll")
core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/Support/libvs_placebo.dll")
# source: 'F:\TestClips&Co\files\test.avi'
# current color space: YUV420P8, bit depth: 8, resolution: 640x352, fps: 25, color matrix: 470bg, yuv luminance scale: limited, scanorder: progressive
# Loading source using FFMS2
clip = core.ffms2.Source(source="F:/TestClips&Co/files/test.avi",cachefile="E:/Temp/avi_078c37f69bb356e7b5fa040c71584c40_853323747.ffindex",format=vs.YUV420P8,alpha=False)
# making sure input color matrix is set as 470bg
clip = core.resize.Point(clip, matrix_in_s="470bg",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)
# set output frame rate to 25.000fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)

# convert to YUV444P16 for Shader
clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P16)  
# applying FSRCNNX_x2_16-0-4-1.glsl
clip = core.placebo.Shader(clip=clip, shader="I:/Hybrid/64bit/vsfilters/ResizeFilter/FSRCNNX/FSRCNNX_x2_16-0-4-1.glsl")

# Output
clip.set_output()
does not seem to do anything, so this is probably not how to apply that glsl properly.

Cu Selur
Reply


Messages In This Thread
FSRCNNX - by fltasin - 17.01.2021, 12:58
RE: FSRCNNX - by Selur - 17.01.2021, 13:08
RE: FSRCNNX - by fltasin - 17.01.2021, 13:24
RE: FSRCNNX - by Selur - 17.01.2021, 13:27
RE: FSRCNNX - by fltasin - 17.01.2021, 13:32
RE: FSRCNNX - by Selur - 17.01.2021, 13:34
RE: FSRCNNX - by fltasin - 17.01.2021, 13:37
RE: FSRCNNX - by Selur - 17.01.2021, 14:35
RE: FSRCNNX - by fltasin - 17.01.2021, 14:44
RE: FSRCNNX - by Selur - 17.01.2021, 14:47
RE: FSRCNNX - by fltasin - 17.01.2021, 14:50
RE: FSRCNNX - by Selur - 17.01.2021, 15:16
RE: FSRCNNX - by fltasin - 17.01.2021, 15:28

Forum Jump:


Users browsing this thread: 2 Guest(s)