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 Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th June 2013, 14:37   #21  |  Link
Underbayversi
Registered User
 
Join Date: Jun 2013
Posts: 1
Hi, i am new to doom9,avisynth and video processing. started this as a hobby while editing some of my dvds. i am faced with same problem of halo. while searching for solutions saw your thread. i hope your method may remove halos without losing quality. posting here beliving i may get help from you. please post your script so that i may apply it.

thanking you in advance
Underbayversi is offline   Reply With Quote
Old 4th September 2013, 20:50   #22  |  Link
byme
Registered User
 
Join Date: Sep 2008
Location: Italy
Posts: 204
I would also like to know which script you used (in the post below) Avisynth_challenged


I tried it with FixVHSOversharp, but I get the bad faults

http://s21.postimg.org/l2c95d5kn/source.png
http://s7.postimg.org/habyc0vuz/Fix_VHSOversharp.png

FixVHSOversharpL(30,12,8)
FixVHSOversharp(30,14,10)

FixVhxOversharp in Virtualdub "there is no function named" why?

(actually the example I put is not oversharped... it's just to show the defects of FixVHSOversharp)




Quote:
Originally Posted by Avisynth_challenged View Post
Check it out:


ORIGINAL (with halos):


HALO MASK (used to merge clips):


FIXED:


cut

...


Last edited by byme; 5th September 2013 at 11:40.
byme is offline   Reply With Quote
Old 5th September 2013, 02:05   #23  |  Link
LemMotlow
Registered User
 
Join Date: Jul 2011
Location: Tennessee, USA
Posts: 266
FixVHSOversharp is an Avisynth plugin. Do you have it in your Avisynth plugins folder?
http://avisynth.org/warpenterprises/...l_20030723.zip
LemMotlow is offline   Reply With Quote
Old 5th September 2013, 11:06   #24  |  Link
byme
Registered User
 
Join Date: Sep 2008
Location: Italy
Posts: 204
Quote:
Originally Posted by LemMotlow View Post
FixVHSOversharp is an Avisynth plugin. Do you have it in your Avisynth plugins folder?
http://avisynth.org/warpenterprises/...l_20030723.zip
Now I put it into the Plugin folder, but it still does

LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\FixVHSOversharp2_5.dll")
byme is offline   Reply With Quote
Old 5th September 2013, 21:22   #25  |  Link
byme
Registered User
 
Join Date: Sep 2008
Location: Italy
Posts: 204
I tried this script to generate the mask

(I did not understand if it is the right script)


Quote:
Originally Posted by Avisynth_challenged View Post
### BEGIN SCRIPT ###
# This line loads the source
source=DirectshowSource("...source.avi")
############
sourcex=source.converttoyv12

start=source.spatialsoften(1,255,127).converttoyv12.greyscale.Tweak(0.0, 1.0, 0, 1.0, true, false)
ghostA=source.spatialsoften(1,255,127).converttoyv12.LGhost(3, 4, -128).greyscale.Tweak(0.0, 1.01, 0, 1.25, true, false)
diffA=Subtract(ghostA, start).Levels(127, 1, 129, 0, 255).invert().undot()

ghostB=source.spatialsoften(1,255,127).converttoyv12.LGhost(3, 0, -128).greyscale.Tweak(0.0, 1.01, 0, 1.25, true, false)
diffB=Subtract(ghostB, start).Levels(127, 1, 129, 0, 255).invert().undot()

diff2=Subtract(ghostA, ghostB).invert()
return diff2
### END SCRIPT ###

then must use mt_merge?

how does it work? .. I'm not able

I tried with...

source = AviSource("D:\clip1.avi")
source2 = AviSource("D:\ghost.avi")
mt_merge(source, source2)



that fool
byme is offline   Reply With Quote
Old 7th September 2013, 14:04   #26  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
Quote:
Originally Posted by byme View Post
mt_merge(source, source2)



that fool
the right usage is mt_merge (clip1,clip2,mask)
feisty2 is offline   Reply With Quote
Old 7th September 2013, 16:15   #27  |  Link
byme
Registered User
 
Join Date: Sep 2008
Location: Italy
Posts: 204
Quote:
Originally Posted by feisty2 View Post
the right usage is mt_merge (clip1,clip2,mask)
with mask gives me error: I don't know what "mask" means

I use masktools-v2.0a48

and then still do not understand how to invoke the clip1 and 2 in mt_merge

clip1 = AviSource("D:\ORIGINAL.avi")
clip2 = AviSource("D:\HALO MASK.avi")
mt_merge (clip1,clip2,mask)

can you tell me what is the correct script to merge ORIGINAL with HALO MASK, to obtain FIXED?

but it is fair use mt_merge in this case?.. or it takes another method for merge?

please

Last edited by byme; 7th September 2013 at 16:29.
byme is offline   Reply With Quote
Old 7th September 2013, 16:38   #28  |  Link
Stereodude
Registered User
 
Join Date: Dec 2002
Location: Region 0
Posts: 1,395
mask is a variable. You don't have a clip set equal to mask.

mt_merge

Quote:
mt_merge : clip clip1, clip clip2, clip mask, bool "luma"(false)

It's the backbone of the framework. It merges two clips according to the mask. The bigger the mask value, the more the second clip will be taken into account ( the actual formula is y = ((256 - m) * x1 + m * x2 + 128) / 256 )
luma is a special mode, where only the luma plane of the mask is used to process all three channels.
u and v are defaulted to 2 (that way, the resulting clip contains the chroma of clip1, and looks right).
Your "halo mask.avi" probably should be mask, ie: mask = AviSource("D:\HALO MASK.avi"), but I'm not sure what should be your clip2.
Stereodude is offline   Reply With Quote
Old 7th September 2013, 17:10   #29  |  Link
byme
Registered User
 
Join Date: Sep 2008
Location: Italy
Posts: 204
Quote:
Originally Posted by Stereodude View Post
mask is a variable. You don't have a clip set equal to mask.

mt_merge



Your "halo mask.avi" probably should be mask, ie: mask = AviSource("D:\HALO MASK.avi"), but I'm not sure what should be your clip2.
thanks, but thus opens without displaying anything

clip1 = avisource("D:\ORIGINAL.avi").ConvertToYV12(Interlaced=False)
clip2 = avisource("D:\ORIGINAL.avi") ### boh
mask = AviSource("D:\HALO MASK.avi")
mt_merge (clip1, clip2, mask)

but in fact do not understand what should be the clip2
byme is offline   Reply With Quote
Old 7th September 2013, 19:28   #30  |  Link
Stereodude
Registered User
 
Join Date: Dec 2002
Location: Region 0
Posts: 1,395
Can you post your full script? The example script from Avisynth_challenged that I think you're copying doesn't use mt_merge.

Last edited by Stereodude; 7th September 2013 at 19:30.
Stereodude is offline   Reply With Quote
Old 7th September 2013, 19:44   #31  |  Link
byme
Registered User
 
Join Date: Sep 2008
Location: Italy
Posts: 204
Quote:
Originally Posted by Stereodude View Post
Can you post your full script? The example script from Avisynth_challenged that I think you're copying doesn't use mt_merge.
I do not have another script

I copied the script of Avisynth_challenged for the mask, and then I tried to use mt_merge

if do not use mt_merge, what should use?
byme is offline   Reply With Quote
Old 9th September 2013, 20:13   #32  |  Link
byme
Registered User
 
Join Date: Sep 2008
Location: Italy
Posts: 204
Please Avisynth_challenged
byme is offline   Reply With Quote
Old 10th September 2013, 23:28   #33  |  Link
ChiDragon
Registered User
 
ChiDragon's Avatar
 
Join Date: Sep 2005
Location: Vancouver
Posts: 600
Have you sent him a PM? He hasn't posted since Feb but has been on the forum today.
ChiDragon is offline   Reply With Quote
Old 11th September 2013, 14:33   #34  |  Link
byme
Registered User
 
Join Date: Sep 2008
Location: Italy
Posts: 204
yes, I sent him a message a few days ago, but did not answer
byme is offline   Reply With Quote
Old 14th February 2021, 01:36   #35  |  Link
smel
Registered User
 
Join Date: Mar 2013
Posts: 8
Is anybody managed to make a script that can reproduce @Avisynth_challenged result posted at #13?
smel is offline   Reply With Quote
Reply

Tags
halo, laserdisc

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 06:50.


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