Log in

View Full Version : Adding/using dither/ GradFun3 to VirtualDub2


Pages : 1 [2]

hello_hello
1st December 2018, 18:07
If you still have the encodes using LSmash, you could try the function below, although it does seem like LSmash isn't being frame accurate with your source files. You could do much the same thing with StackVertical() to look for completely different frames, because when they're completely different it should be obvious.
Anyway, if the frames from each video are exactly the same, all you should see is a solid grey output from Avisynth when using this function. Of course it'd probably pay to index the files you're comparing with ffms2.

You'd use it like this:

A = FFVideoSource("D:\Encode 1.mp4")
B = FFVideoSource("D:\Encode 2.mp4")
ShowDiff(A, B)

This is the function. Save it with an avsi extension and put it in the Avisynth plugins folder.

function ShowDiff(clip Clip1, clip Clip2, bool "Amp", bool "Show", bool "Comp")
{
Amp = default(Amp, false)
Show = default(Show, false)
Comp = default(Comp, false)

N1 = Clip1.levels(96, 1.0, 160, 96, 160).greyscale()
N2 = Clip1.subtract(Clip2)
N3 = (Amp) ? N2.levels(124, 1.0, 131, 0, 255) : N2
N4 = (Show) ? N3.merge(N1) : N3
N5 = (Comp) ? Clip1.compare(Clip2, show_graph=true) : N4

return N5
}

stormy1777
3rd December 2018, 07:38
If you still have the encodes using LSmash, you could try the function below

Very nice!!! Thanks for that tip!! did that, and the results are as follows:

FIRST TWO FRAMES show the trees as "embossed"


after that, it is all GREY throughout the whole ~25minutes, with exception of some flying birds (attached screenshot), after the birds get out of the frame, it goes back to GREY..

LAST FRAME IS GREY; TWO FRAMES before that show the trees as "embossed"


So, I'm guessing it misses first/second frame (at start/end) for some reason due to some wrong "initialization" then it goes "downhill" from there, with minor delta that gets added up, probably why only shows up on longer videos and on re-open... the source has little motion...

so, this "frame inaccuracy" might be an old bug or something, anyways, it's great to have gone thus far. Thanks to all who are so supportive :)

Stormy.

PS: in the birds photo, if u look below barely u can make out the tree slightly embossed, the first/last frames show it VERY clearly and entirely, the rest of the video shows it like in this screenshot, so it adds up to larger file size.

EDIT: BTW, I think extension for plugin should be avsi and not avis :)

hello_hello
3rd December 2018, 17:02
Very nice!!! Thanks for that tip!! did that, and the results are as follows:

I won't take the credit. I usually add a link to a function if I've borrowed it from someone else, but I must have forgotten this time. I'm pretty sure it was a function jagabo posted at VideoHelp at some stage.

EDIT: BTW, I think extension for plugin should be avsi and not avis :)

Yep. I had a stupid.

Blankmedia
15th December 2021, 06:16
À, Who won between the two of them?


Gradfun3 or neo_f3kdb

kedautinh12
15th December 2021, 06:39
I don't know but i seen many people use f3kdb than gradfun3