sscheidegger
7th November 2012, 15:06
Hi all
I have the following problem: I programmed an OFX plug-in to use Avisynth scripts in NLEs with the OFX interface. I used the Avisynth MT 64bit version in order to get it to work with 64bit NLEs. This works very well with simple scripts. Unfortunately I encountered problems with a more complex script. When rendering, avisynth is getting slower and slower! While it starts rendering at about 10 - 15 fps, after half an hour it's down at about 1 fps. I was hoping that it wouldn't get even slower, but after two days it was down at about 1/60 fps!
I started from the following motion compensation script, which I can render with no problems:
OFXsource(0)
LoadPlugin("mvtools2.dll")
ConvertToYV12()
super = MSuper()
vectors = MAnalyse(super, isb = false, truemotion = true)
compensation = MFlow(super,vectors)
return ConvertToRGB32(compensation)
Then I changed the script and the problem started:
OFXsource(0)
LoadPlugin("mvtools2.dll")
ConvertToYV12()
super = MSuper()
vectors = MAnalyse(super, isb = false, truemotion = true)
vectorsb = MAnalyse(super, isb = true, truemotion = true)
compensation = MFlow(super,vectors)
compensationb = MFlow(super,vectorsb)
average = Overlay(compensation, compensationb, mode="blend", opacity=0.5)
return ConvertToRGB32(average)
If I replace OFXsource() by Avisource() and render with 64bit VirtualDub, I don't get any problems. But when I use it in my OFX plug-in, it gets slower and slower.
Anyone any idea what could be the reason for this issue?
I have the following problem: I programmed an OFX plug-in to use Avisynth scripts in NLEs with the OFX interface. I used the Avisynth MT 64bit version in order to get it to work with 64bit NLEs. This works very well with simple scripts. Unfortunately I encountered problems with a more complex script. When rendering, avisynth is getting slower and slower! While it starts rendering at about 10 - 15 fps, after half an hour it's down at about 1 fps. I was hoping that it wouldn't get even slower, but after two days it was down at about 1/60 fps!
I started from the following motion compensation script, which I can render with no problems:
OFXsource(0)
LoadPlugin("mvtools2.dll")
ConvertToYV12()
super = MSuper()
vectors = MAnalyse(super, isb = false, truemotion = true)
compensation = MFlow(super,vectors)
return ConvertToRGB32(compensation)
Then I changed the script and the problem started:
OFXsource(0)
LoadPlugin("mvtools2.dll")
ConvertToYV12()
super = MSuper()
vectors = MAnalyse(super, isb = false, truemotion = true)
vectorsb = MAnalyse(super, isb = true, truemotion = true)
compensation = MFlow(super,vectors)
compensationb = MFlow(super,vectorsb)
average = Overlay(compensation, compensationb, mode="blend", opacity=0.5)
return ConvertToRGB32(average)
If I replace OFXsource() by Avisource() and render with 64bit VirtualDub, I don't get any problems. But when I use it in my OFX plug-in, it gets slower and slower.
Anyone any idea what could be the reason for this issue?