View Full Version : Problem with RESTORE24.


Pentajet
6th November 2006, 18:39
I am trying to make this function work like mad. But it gives me an error.

Log: unvalid operator
("C:\restore24.avs line32")

line 32 corresponds to:

edgeRGB = logic(tmpp.DEdgemask(0,255,0,255,"5 0 -5 10 0 -10 5 0 -5",setdivisor=true,divisor=6),
\ tmpp.DEdgemask(0,255,0,255,"5 10 5 0 0 0 -5 -10 -5",setdivisor=true,divisor=6),"max")

Any help would me greatly appreciated.

PS: Sorry for this post not being in compliance with forum rules. I forgot about it (but I edited it in 5 minutes time). Again sorry. It was not intentional.

Pookie
6th November 2006, 19:14
Version of Masktools, perhaps?

What is the version of Restore24? (should be on line 1 of the script)

Pentajet
6th November 2006, 19:32
It says version 0.4c. I thought that it might be Masktools and I tested versions 1.5.6, 1.5.7 and 1.5.8 which all gave the error above. The 2.0 series gave the usual error "Unknown function DEdgeMask".

foxyshadis
6th November 2006, 19:48
They're not exclusive, you really need to have both v1 and v2. Anyway , try removing the \ and combining both onto a single line. You might need to update your avisynth, what does version() say?

Pentajet
6th November 2006, 20:05
It didn't work. Now it says that the error is in line 31 not 32. My AviSynth is 2.57.

Pentajet
6th November 2006, 20:57
I made further experiments. It looks like it's a problem with MaskTools:

- if I try to load version 1.4.9 or below together with 1.5.5 or above I get the error above.

- version 1.4.9 I get the error no function DEdgeMask

- version 1,5,5-8 - I get no function YV12Layer

- version 2.0 or above - no function DEdgeMask

if I try to use the version of masktools provided with Didee's package it won't even load the plugin ("cannot load plugin")

foxyshadis
7th November 2006, 00:20
Hm. Well, one of the reasons masktools was abandoned was because it was rather buggy. I can translate that line to masktools 2 though:

edgeRGB = mt_logic(tmpp.mt_edge("5 0 -5 10 0 -10 5 0 -5 6",0,255,0,255),
\ tmpp.mt_edge("5 10 5 0 0 0 -5 -10 -5",0,255,0,255),"max")

Since I don't have the whole script, I can't get the whole thing, though. You can load masktools 1 and 2 simultaneously so it doesn't really matter, though.

Pookie
7th November 2006, 03:22
I'm starting to recall a thread where someone mentioned Restore24 was problematic with v2.57 of Avisynth. Just for fun, try it with 2.56.

Perhaps it was this ?

http://forum.doom9.org/showthread.php?t=75432&highlight=Restore24+2.57

Alain2
7th November 2006, 03:53
What I said in this thread was that for me (http://forum.doom9.org/showthread.php?p=859127#post859127) r24 was working in avs 2.55, but not in later versions; r24rc1 may work in all avs versions though, as Didée answered

Pookie
7th November 2006, 04:24
Ah..thanks for clarifying that one, Alain2.


Interestingly enough, Pentajet is running 0.4c when the latest version in the "pack" is v1.0 RC1
The "pack" can be found here: http://forum.doom9.org/showthread.php?p=774197#post774197

Pentajet
7th November 2006, 15:05
I didn't know that there was a newer version. I downloaded about ten different ones from the net and they were all 0.4c. Version 1.00 does load. Now I have to figure out how to make it work since there is no readme with the file I found.

Pentajet
7th November 2006, 16:16
Now it seemD to work fine BUT...

if I don't specify any parameters I get a frame rate of 28.97 instead of the desired 25 and...

if I set the numr and deno parameters (I tried the appropriate 2500 and 5997 and many more combinations) I get an error from Vdub:

CAVIStreamSynth System Exception Stack Overflow

Pookie
8th November 2006, 04:49
Perhaps the settings in this post might be a place for you to start (and the response below it). Sounds like it might be applicable (at least the desired fps is):D

http://forum.doom9.org/showthread.php?p=889045#post889045

Pentajet
8th November 2006, 15:27
That's exactly what I was trying to do and it gives that error.