24.03.2018, 11:28
(24.03.2018, 08:40)Selur Wrote: Warning: There might not be a solution to speed things up.
What comes to mind:
1. using faster settings in InterFrame
2. Assuming you do no other filtering in Avisynth, it might not be InterFrame which is the bottleneck. It might be the decoders used in Avisynth (how is the speed when you enable 'Config->Internals->Always use Avisynth') and don't use Interframe. (This way Avisynth will be used, even when it's not needed.)
Assuming the decoder is the bottleneck using another source filter might help.
Thank you for the reply. I think you missed important part of what i said.
When i do like i described on 50% and about 12% of GPU is used (single task)
When i do no gpu option 100% of CPU (no interframe)
When i do only gpu 100% of GPU is used (no interframe)
Like i said the weird part here is that i can just run SECOND task AT THE SAME TIME which should not be possible if whole thing would work as fast as it could. I can run second task at the same time and first one will not slow down at all. Which means Avisynth or InterFrame has some setting in it that limits amount of stuff it can do with one task.
So effectively can do 2 video conversion with interframe but when i only one task it does it at 50% of speed as if limited by something.
EDIT:
I made video showing this issue:
https://www.youtube.com/watch?v=qxrenokE...e=youtu.be
EDIT2:
i5-3570K
GTX980
8GB ram
Some testing (converting 720p video)
Nvec(x264):
InterFace with GPU box checked ~250FPS 50%CPU 12%GPU
InterFace without GPU box checked ~90FPS 50% CPU
X264:
InterFace with GPU box checked ~250FPS 50% CPU 12%GPU
InterFace without GPU box checked 90FPS 50% CPU
So it clearly shows Interframe or Avisynth is limiting somewhere CPU power.
If it wouldn't be the case then i couldn't run second task and get it working as fast as first.
EDIT2:
Maybe the issue is here:
SetMemoryMax(768)
SetMTMode(5,4) # changing MT mode
LoadCPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\ffms2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\svpflow1.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\svpflow2.dll")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\InterFrame2.avsi")
# loading source: C:\Users\Perkel\Desktop\movie.mp4
# input luminance scale tv
FFVideoSource("C:\Users\Perkel\Desktop\movie.mp4")
# current resolution: 720x480
SetMTMode(2) # changing MT mode
InterFrame(Preset="Faster",NewNum=60,NewDen=1,OverrideAlgo=23,Cores=8)
# filtering
return last
SetMemoryMax(768)
SetMTMode(5,4) # changing MT mode
looks like it is using only 768mb of memory which maybe results in stuffed buffer and 50% of performance ? How can i increase it in Hybrid ?
Also second SetMTMode for InterFrame has (2) instead of (5,4) like above. Maybe it limits to 2 cores conversion ?