View Full Version : Possible to make an Avisynth 2.5 filter with source of a 2.0 filter?
MatLz
25th August 2009, 03:54
Is possible to make a compatible Avisynth 2.5 filter with a source of a filter designed for Avisynth 2.0?
It's the simple "blendfields" included in old mpeg2dec.
TheRyuu
25th August 2009, 04:04
Is possible to make a compatible Avisynth 2.5 filter with a source of a filter designed for Avisynth 2.0?
It's the simple "blendfields" included in old mpeg2dec.
Doesn't mpeg2dec work under avisynth 2.5.x?
MatLz
25th August 2009, 04:13
Doesn't mpeg2dec work under avisynth 2.5.x?
Maybe but not for me... Lot of artifacts and green display.
kemuri-_9
25th August 2009, 04:15
you do have
SetPlanarLegacyAlignment(true)
in the script right after you use mpeg2dec right?
MatLz
25th August 2009, 04:28
With or without, it's same result. Green display and inverse delay in colors. I can't better explain with my poor english sorry.
kemuri-_9
25th August 2009, 04:34
you did generate the .d2v that you passed to mpeg2dec with dvd2avi as well right?
i used mpeg2dec up until some time ago with avs 2.57 until i switched over to neuron2's dgindex/dgdecode combo so i know it works up until that point.
MatLz
25th August 2009, 04:48
I use new dgindex to index my mpeg files. But I had try dvd2avi one time for indexing with hope for compatibility with that filter, but...no result.
I have try to load the 2.0 with loadpluginex...but nothing work. Really...
neuron2
25th August 2009, 04:50
What exactly are you trying to achieve with that filter that you cannot achieve in more modern ways?
MatLz
25th August 2009, 05:00
What exactly are you trying to achieve with that filter that you cannot achieve in more modern ways?
Blend fields properly.
I've read this filter is the blend mode of the internal vdub deinterlace filter ported to Avisynth. This is the only blender which satisfies me. But now I use Avisynth, not vdub.
neuron2
25th August 2009, 06:14
Here you go. I extracted it to its own DLL and ported it to 2.57 for you.
http://neuron2.net/misc/Blendfields.zip
thewebchat
25th August 2009, 07:29
neuron2, can you implement YV12 support in this? On YV12 input, it reports "Requires RGB or YV12 input!" (lol). YUY2 and RGB32 are working. Also, kind of strange how there was no native dumb blend deinterlacer for AVS 2.5.
Gavino
25th August 2009, 12:21
Also, kind of strange how there was no native dumb blend deinterlacer for AVS 2.5.
How about Bob().Merge(SelectEven(), SelectOdd())?
MatLz
25th August 2009, 14:38
Here you go. I extracted it to its own DLL and ported it to 2.57 for you.
http://neuron2.net/misc/Blendfields.zip
Woaa...you did it?
So, the answer to my question is YES. It's possible to make new with old.
Thanks Neuron2.
tritical
25th August 2009, 17:35
How is blendfields from mpeg2dec different than blur(0,1)? I thought they were the same [1 2 1] vertical kernel.
MatLz
25th August 2009, 18:03
How about Bob().Merge(SelectEven(), SelectOdd())?
It seems that doesn't work.
But this works:
Merge(selecteven(bob(mpeg2source(".d2v"))),selectodd(bob(mpeg2source(".d2v"))))
Seems to be an alternative to Blendfields! ;)
Gavino
25th August 2009, 18:32
Merge(selecteven(bob(mpeg2source(".d2v"))),selectodd(bob(mpeg2source(".d2v"))))
Isn't that the same as:
mpeg2source(".d2v")
Bob().Merge(SelectEven(), SelectOdd())
Obviously, I was assuming an appropriate source filter to be used first.
MatLz
25th August 2009, 18:52
It is not the same thing. "Bob()." must be placed before selecteven/odd.
Gavino
25th August 2009, 19:11
Ah yes, I should have said
Bob()
Merge(SelectEven(), SelectOdd())
A subtle example of when '.' is not the same as a new line.
tritical
25th August 2009, 19:22
blur(0,1) and blendfields() are the same except for rounding and handling of the very bottom line :)
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.