Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th August 2009, 02:54   #1  |  Link
MatLz
I often say "maybe"...
 
MatLz's Avatar
 
Join Date: Jul 2009
Location: France
Posts: 584
Possible to make an Avisynth 2.5 filter with source of a 2.0 filter?

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.

Last edited by Guest; 25th August 2009 at 03:32. Reason: rule 9
MatLz is offline   Reply With Quote
Old 25th August 2009, 03:04   #2  |  Link
TheRyuu
warpsharpened
 
Join Date: Feb 2007
Posts: 787
Quote:
Originally Posted by MatLz View Post
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?
TheRyuu is offline   Reply With Quote
Old 25th August 2009, 03:13   #3  |  Link
MatLz
I often say "maybe"...
 
MatLz's Avatar
 
Join Date: Jul 2009
Location: France
Posts: 584
Quote:
Originally Posted by TheRyuu View Post
Doesn't mpeg2dec work under avisynth 2.5.x?
Maybe but not for me... Lot of artifacts and green display.
MatLz is offline   Reply With Quote
Old 25th August 2009, 03:15   #4  |  Link
kemuri-_9
Compiling Encoder
 
kemuri-_9's Avatar
 
Join Date: Jan 2007
Posts: 1,348
you do have
Code:
SetPlanarLegacyAlignment(true)
in the script right after you use mpeg2dec right?
__________________
custom x264 builds & patches | F@H | My Specs
kemuri-_9 is offline   Reply With Quote
Old 25th August 2009, 03:28   #5  |  Link
MatLz
I often say "maybe"...
 
MatLz's Avatar
 
Join Date: Jul 2009
Location: France
Posts: 584
With or without, it's same result. Green display and inverse delay in colors. I can't better explain with my poor english sorry.
MatLz is offline   Reply With Quote
Old 25th August 2009, 03:34   #6  |  Link
kemuri-_9
Compiling Encoder
 
kemuri-_9's Avatar
 
Join Date: Jan 2007
Posts: 1,348
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.
__________________
custom x264 builds & patches | F@H | My Specs
kemuri-_9 is offline   Reply With Quote
Old 25th August 2009, 03:48   #7  |  Link
MatLz
I often say "maybe"...
 
MatLz's Avatar
 
Join Date: Jul 2009
Location: France
Posts: 584
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...
MatLz is offline   Reply With Quote
Old 25th August 2009, 03:50   #8  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,922
What exactly are you trying to achieve with that filter that you cannot achieve in more modern ways?
Guest is offline   Reply With Quote
Old 25th August 2009, 04:00   #9  |  Link
MatLz
I often say "maybe"...
 
MatLz's Avatar
 
Join Date: Jul 2009
Location: France
Posts: 584
Quote:
Originally Posted by neuron2 View Post
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.

Last edited by MatLz; 25th August 2009 at 04:24.
MatLz is offline   Reply With Quote
Old 25th August 2009, 05:14   #10  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,922
Here you go. I extracted it to its own DLL and ported it to 2.57 for you.

http://neuron2.net/misc/Blendfields.zip
Guest is offline   Reply With Quote
Old 25th August 2009, 06:29   #11  |  Link
thewebchat
Advanced Blogging
 
Join Date: May 2009
Posts: 483
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.
thewebchat is offline   Reply With Quote
Old 25th August 2009, 11:21   #12  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,406
Quote:
Originally Posted by thewebchat View Post
Also, kind of strange how there was no native dumb blend deinterlacer for AVS 2.5.
How about Bob().Merge(SelectEven(), SelectOdd())?
Gavino is offline   Reply With Quote
Old 25th August 2009, 13:38   #13  |  Link
MatLz
I often say "maybe"...
 
MatLz's Avatar
 
Join Date: Jul 2009
Location: France
Posts: 584
Quote:
Originally Posted by neuron2 View Post
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.
MatLz is offline   Reply With Quote
Old 25th August 2009, 16:35   #14  |  Link
tritical
Registered User
 
Join Date: Dec 2003
Location: MO, US
Posts: 999
How is blendfields from mpeg2dec different than blur(0,1)? I thought they were the same [1 2 1] vertical kernel.

Last edited by tritical; 25th August 2009 at 16:38.
tritical is offline   Reply With Quote
Old 25th August 2009, 17:03   #15  |  Link
MatLz
I often say "maybe"...
 
MatLz's Avatar
 
Join Date: Jul 2009
Location: France
Posts: 584
Quote:
Originally Posted by Gavino View Post
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!
MatLz is offline   Reply With Quote
Old 25th August 2009, 17:32   #16  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,406
Quote:
Originally Posted by MatLz View Post
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.
Gavino is offline   Reply With Quote
Old 25th August 2009, 17:52   #17  |  Link
MatLz
I often say "maybe"...
 
MatLz's Avatar
 
Join Date: Jul 2009
Location: France
Posts: 584
It is not the same thing. "Bob()." must be placed before selecteven/odd.
MatLz is offline   Reply With Quote
Old 25th August 2009, 18:11   #18  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,406
Ah yes, I should have said

Bob()
Merge(SelectEven(), SelectOdd())

A subtle example of when '.' is not the same as a new line.
Gavino is offline   Reply With Quote
Old 25th August 2009, 18:22   #19  |  Link
tritical
Registered User
 
Join Date: Dec 2003
Location: MO, US
Posts: 999
blur(0,1) and blendfields() are the same except for rounding and handling of the very bottom line
tritical is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:06.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.