Topic: SVP with AviSynth 2.6 or AviSynth+ ?

One of the main issues with SVP is that the player crashes all the time. Now it's becoming clear that the problem is most likely in AviSynth 2.5.8 MT that it is using, as this thing crashes all the time.

Are there plans to upgrade SVP to work with either AviSynth 2.6 or AviSynth+?

Now that I started looking into AviSynth, I know the challenge is that the setmtmode function is absent from these later versions, and that AviSynth 2.5.8 was customized for SVP, but I don't really know what that means.

Re: SVP with AviSynth 2.6 or AviSynth+ ?

if you search the forum you'll find that almost all crashes are because of AVS 2.6
and don't forget AVS development is in fact dead

AVS+ is great in terms of memory consumption and MT efficiency BUT is buggy and dead too

so the sad truth is Vapoursynth is the only hope

but it isn't integrated into ffdshow...

3 (edited by Mystery 11-12-2014 23:23:03)

Re: SVP with AviSynth 2.6 or AviSynth+ ?

Why is it all dead? The latest release of AviSynth+ was on January 2nd 2014, which isn't dead.

There are still active conversations around it
http://forum.doom9.org/showthread.php?t=168856

And a roadmap for further development
http://avs-plus.net/gsoc-ideas.php

Why are you considering it dead?

For the same scripts, I found to have MUCH better performance just by switching from 2.6 to AviSynth+. It would be interesting to compare InterFrame performance on 2.5.8 vs +

4 (edited by Mystery 12-12-2014 05:55:38)

Re: SVP with AviSynth 2.6 or AviSynth+ ?

InterFrame2, which is a wrapper around SVP, can run on AviSynth+.

With AviSynth+, it runs @ 21.0fps
With AviSynth 2.5.8 MT, it starts at 21.1 fps and then it gradually goes down (it was at 20.3fps when I stopped)

Since it can natively run on AviSynth, it should be easy to port SVP to it. You just have to remove the setmtmode lines.

Edit: With setmtmodes commands, it instead generates at 36.5fps...

Re: SVP with AviSynth 2.6 or AviSynth+ ?

Mystery
Why are you considering it dead?

Cause I was talking to one of lead developers.
OK, let's say "suspended" if you're not comfortable with term "dead"  big_smile

https://github.com/AviSynth/AviSynthPlu … ntributors

Anyway, MT branch is buggy and isn't part of official AVS+ release.

it should be easy to port SVP to it

why you think we didn't tried? smile
in fact anyone with basic knowledge of JavaScript can "port" it, just edit a few lines in generate.js

replace

avs.WriteLine('SetMTMode(3,threads)');

with

avs.WriteLine('SetFilterMTMode("",2)');
avs.WriteLine('SetFilterMTMode("ffdShow_source",3)');

remove

avs.WriteLine('SetMTMode(2)');

replace

avs.WriteLine("distributor()");

with

avs.WriteLine("Prefetch("+threads+")");

6 (edited by yan04000985 13-12-2014 08:13:19)

Re: SVP with AviSynth 2.6 or AviSynth+ ?

Chainik wrote:

Mystery
Why are you considering it dead?

Cause I was talking to one of lead developers.
OK, let's say "suspended" if you're not comfortable with term "dead"  big_smile

https://github.com/AviSynth/AviSynthPlu … ntributors

Anyway, MT branch is buggy and isn't part of official AVS+ release.

it should be easy to port SVP to it

why you think we didn't tried? smile
in fact anyone with basic knowledge of JavaScript can "port" it, just edit a few lines in generate.js

replace

avs.WriteLine('SetMTMode(3,threads)');

with

avs.WriteLine('SetFilterMTMode("",2)');
avs.WriteLine('SetFilterMTMode("ffdShow_source",3)');

remove

avs.WriteLine('SetMTMode(2)');

replace

avs.WriteLine("distributor()");

with

avs.WriteLine("Prefetch("+threads+")");

Have one problem
Turn off on seek only can use Don't ture off and close the player will error

Re: SVP with AviSynth 2.6 or AviSynth+ ?

Chainik wrote:

why you think we didn't tried? smile

What problems did you encounter afterwards?

Re: SVP with AviSynth 2.6 or AviSynth+ ?

https://github.com/AviSynth/AviSynthPlus/issues/49

9 (edited by Mystery 13-12-2014 19:02:05)

Re: SVP with AviSynth 2.6 or AviSynth+ ?

You told them exactly what to change. They haven't done anything about it?

And since you seem to know more about it than they do, perhaps you could make the changes yourself.

Re: SVP with AviSynth 2.6 or AviSynth+ ?

Mystery
They haven't done anything about it?

nope

perhaps you could make the changes yourself

and here we come to another "special build"...

Re: SVP with AviSynth 2.6 or AviSynth+ ?

Who are taking care of making the official builds? They're doing it from the efforts of a community of developers?

Re: SVP with AviSynth 2.6 or AviSynth+ ?

I was interested in working with SVP x64 as well while trying AviSynth+ x64, and here's what I found...

Although x264 encoder is faster in x64 mode, other AviSynth filters (NNEDI3, EEDI3) did NOT perform any better in x64 mode. The code has to be optimized for it, and very few AviSynth components are. I'll stick with x86 for now.

Re: SVP with AviSynth 2.6 or AviSynth+ ?

Working with signal processing (such as video rendering) is about filters cascading.

Unlike many other programs, the whole system should be written with filters compatibility in mind (of course speed is important too).

Well, rewriting from scratch is no joke big_smile
Of course it will cease to be joke if one intended to make OS after all (I mean rewrite everything from kernel instead of make other linux distro big_smile )
CMIIW  smile

Re: SVP with AviSynth 2.6 or AviSynth+ ?

The latest InterFrame recommends to use this build of AviSynth 2.6 MT which is more stable than 2.5.8 MT
http://forum.doom9.org/showthread.php?t=148782

Why aren't you using that build?

Re: SVP with AviSynth 2.6 or AviSynth+ ?

Mystery
feel free to use it  wink

Re: SVP with AviSynth 2.6 or AviSynth+ ?

Does this build have the same problem as AviSynth+? Which is better to use?

And doesn't SVP automatically replace the system AviSynth.dll file with its own if I happen to change it?

Re: SVP with AviSynth 2.6 or AviSynth+ ?

avs 2.6 is not replaced automatically

Re: SVP with AviSynth 2.6 or AviSynth+ ?

Wow. Replacng AviSynth.dll by this 2.6 MT build fixes the seek&freeze problem!!

Re: SVP with AviSynth 2.6 or AviSynth+ ?

Mystery wrote:

Wow. Replacng AviSynth.dll by this 2.6 MT build fixes the seek&freeze problem!!

James D discovered it six months ago (in Russian thread). Don't know why developers didn't mention this in the wiki.

Re: SVP with AviSynth 2.6 or AviSynth+ ?

may be cause avs 2.6 mt builds have strong memory leaking issues

Re: SVP with AviSynth 2.6 or AviSynth+ ?

Due to constant freezing I choose an elusive memory leaking.

22 (edited by Mystery 31-12-2014 19:02:55)

Re: SVP with AviSynth 2.6 or AviSynth+ ?

So we have to choose between memory leaks (and performance degradation) or constant freeze & crash.

I was feeling that something was slightly off performance-wise, but I guess I don't feel much the memory leaks with 8GB of RAM. How bad are those memory leaks?

And when it comes to the AviSynth+, does it do a better job besides the one bug you mentioned? I guess even a custom-build of AviSynth+ would be better than an unstable & old version of AviSynth 2.5.8 MT

Re: SVP with AviSynth 2.6 or AviSynth+ ?

Mystery
would be better than an unstable & old version of AviSynth 2.5.8 MT

My point in this thread is ALL existing AVS versions are bad and "old and unstable" 2.5.8 "SVP edition" is the best one for linear multi-threaded video processing.
At least for scripts and functions used in SVP.
I can imagine that for some very complex scripts like QTGMC AVS 2.6/+ are much better BUT not for SVP.

Re: SVP with AviSynth 2.6 or AviSynth+ ?

Now I see the issue with 2.6 MT. Memory usage goes up to 1.6GB, but then stabilizes there.

It still occasionally crashes, but I would say 90% of the crashes are gone.

With 8GB of RAM, 1.6GB usage is no big deal, but it might be an issue with a computer having 2GB of RAM. Would it still uses that same memory on a computer having only 2GB? Any other issue to be aware of?

Re: SVP with AviSynth 2.6 or AviSynth+ ?

with 2.5.8 player crashes for only one reason - on excessive fast forward / rewinds

with 2.6 it crashes randomly mainly because 1.6 GB is almost too much for 32-bit process


what exactly do you want? smile
you like 2.6 - just use it, but we won't make any special build of this ... thing

may be some day we'll release something based on AVS+ cause this's the only choice now
you can make this day come faster by trying AVS+ yourself and test it for stability / etc