[HELP] Vapoursynth is terribly slow.
Source : 1080p BluRay 8bit Remux
Output : x265 10bit 
Same Settings : crop, SMDegrain, LSFmod

HexaCore AMD Ryzen 5 1600, 3700 MHz (37 x 100)
memory 16GB
GeForce GTX 1050
SSD 128G

[Image: v.jpg]

[Image: A.jpg]

Encoding up to 10 percent is the same.

Is it usually this slow?

Attached Files
.zip   Script.zip (Size: 1,8 KB / Downloads: 5)
I noticed that you used in Avisynth:
# grain handling
# sharpening
and in Vapoursynth:
clip = havsfunc.SMDegrain(input=clip, tr=3, thSAD=400, RefineMotion=True, interlaced=False)
clip = havsfunc.LSFmod(input=clip, Smode=2, Smethod=3, secure=True, Lmode=22, preblur=False, soft=-2, edgemaskHQ=True)
so at least the LSFmode differ quite a bit.

On a Ryzen 7 1800x using x265 with the default settings I get:
  • ~7 fps with the Vapoursynth script you posted.
  • ~6.6 with the Avisynth script you posted
One of the advantages of Vapoursynth is the better scalability in regard of cpu cores, so if you run on a system with less then 4 logical cores it might be slower than Avisynth.

-> so depending on your system it is expected that Vapoursynth is slower, but no clue why Vapoursynth should be that slow on your system.
I would have expected that the Vapoursynth script is a bit faster than the Avisynth script.

Cu Selur

Ps.: Noticed that I uploaded an old havsfunc script with the version, using opencl=True and the script from https://github.com/Selur/VapoursynthScri...avsfunc.py fixes helps (otherwise opencl=True doesn't work, with opencl enabled I get ~9.7fps on my system, 30%+ gain) This shows that the main bottleneck is SMDegrain in your script and using opencl does help since this causes Hybrid to use nnedi3cl instead if zneedi3.

Forum Jump:

Users browsing this thread: 1 Guest(s)