Log in

View Full Version : any plugin for ghosting?


aand
18th August 2008, 12:09
I was wondering if the is a way to get rid of this artefacts (they are more noticeable in motion):
http://img512.imageshack.us/img512/2657/snapshot20080818125040gt6.jpg
300kB (http://www.mediafire.com/?ze5ee3myhg2) .mkv sample 1


http://img183.imageshack.us/img183/4724/snapshot20080818124842px7.jpg
5MB (http://www.mediafire.com/?yonyni9mryx) .mkv sample2

On the Avisynth wiki I've found 'Ghostbuster (http://forum.doom9.org/archive/index.php/t-35339.html)' which is too old and doesn't work anymore, so I tried the equivalent "Exorcist" VirtualDub filter which I found to be more damage than restore.

Mystery Keeper
18th August 2008, 14:09
I had to use unblend() once, and it was quite effective. But the source was anime.

mikeytown2
19th August 2008, 10:57
Try http://niiyan.net/?EraseGhost

Amrit
19th August 2008, 18:43
How about bobing then restoring?

Mystery Keeper
19th August 2008, 21:39
How about bobing then restoring?

1) That's a great quality loss.
2) It may not solve the problem at all if there's progressive blending or other filters artifacts.

Amrit
20th August 2008, 04:36
1) That's a great quality loss.
2) It may not solve the problem at all if there's progressive blending or other filters artifacts.

So you advice Unblend on Ghosting?

Mystery Keeper
20th August 2008, 10:07
So you advice Unblend on Ghosting?

I don't know. Only had that problem once on anime, and Unblend solved it completely. But the main rule of video filtering is "There's no universal solution".

FlimsyFeet
20th August 2008, 13:18
"Ghosting" could refer to 2 seperate things - as I understand it, maybe someone else knows better, but it could be either motion afterimages of bright objects in previous frames, caused by blended fields or a side effect of too strong temporal noise filtering. Or it could be repeated fringes to the left or right dues to analogue refelections or interference.

The "streaking" in the first image looks like an analogue artefact, similar to what I get with my cheap TV when there's a picture showing a window with venetian blinds! Unfortunately I don't know what it is that causes this kind of effect, or what you can do about it.

xbox360
20th August 2008, 14:14
Can anyone help translate to english LGhost ( http://nullinfo.s21.xrea.com/#LGhost ) & warpsharp 2008/03/25 ( http://seraphy.fam.cx/~seraphy/program/WarpSharp/index.html ) for Ghosting Usage, please. Thank You very very very much in advance.

Nightshiver
20th August 2008, 23:25
LGhost:

Description

* Plug-ins for the removal of ghost Avisynth
* YUY2 mode and mode YV12
* Brightness only see only brightness changes
* Ghost and the removal of ghost edge brightness (ringing) can be removed

The link you gave for warpsharp doesn't talk about ghost removal, it talks about color conversion.

xbox360
21st August 2008, 04:34
What I meant was translate to english the plugin settings so I know how to tweak them, please help & thank you in advance.

xbox360
28th August 2008, 10:00
Please Help, please !

AVIL
28th August 2008, 12:26
Hi:

I've extracted help from zip, deleted japanese chars and added commentaries (bold text):

LGhost.dll v0.3.01 Copyright(C) 2002, 2003 minamina

Avisynth Plugin - Ghost Reduction (YUY2 and YV12 Only, Luminance Ghost Only)

Colorspaces:

Avisynth
YUY2
YV12

Dll suitable for each avisynth's version:

LGhost1.dll : Avisynth 1.0, 2.0
LGhost.dll : Avisynth 2.5

Loading:
LoadPlugin("LGhost.dll")

Sintax:

LGhost(clip, mode0, shift0, intensity0, ... , mode17, shift17, intensity17)

Parameters:

mode 0 : (default), 1 : 2 : 3 : 4 :
shift (-clip.width ‚clip.width, default 0)
intensity (-128 ‚ 127, default 0)

Examples:

LGhost(mode0 = 1, shift0 = 3, intensity0 = -15)
LGhost(2, 4, 20, 2, 7, 10, 1, -4, -15, 1, -7, -5)



I think only obscure parm is mode but trial and error can do miracles.

Anyway, a few is more than nothing.

Good luck

AVIL
28th August 2008, 21:17
Hi again:

I've found an translation to english of the readme.txt:


LGhost.dll v0.3.01 Copyright(C) 2002, 2003 minamina

Avisynth Plugin - Ghost Reduction (YUY2 and YV12 Only, Luminance Ghost Only)


- Description

Avisynth ghost removal plugin
YUY2 and YV12 luminance ghost and edge ringing removal

LGhost1.dll : Avisynth 1.0, 2.0
LGhost.dll : Avisynth 2.5


- Method of use

LoadPlugin("LGhost.dll")
LGhost(clip, mode0, shift0, intensity0, ... , mode17, shift17, intensity17)

0 - 17 corresponds to up to 18 ghosts

mode 0 : disabled (default)
1 : edge ghost removal
2 : brightness go strike removal
3 : leading edge ghost removal
4 : trailing edge ghost removal
shift shift width (-clip.width to clip.width, default 0)
intensity strength (-128 to 127, default 0)


- Example

LGhost(mode0 = 1, shift0 = 3, intensity0 = -15)
LGhost(2, 4, 20, 2, 7, 10, 1, -4, -15, 1, -7, -5)


- History

2003/03/16 v0.3.01 Avisynth 2.5 version written
YV12 mode written
2002/12/23 v0.2.01 Added leading and trailing edge ghost removal
LGhost.auf.avs bundled
2002/12/15 v0.1.02 Corrected bug when using FrameCache with LGhost
2002/11/11 v0.1.01 Open failure cord/code ??? deletion
2002/11/03 v0.0.03 Setting UI deletion -> LGhost.auf.avs compilation
2002/11/03 WarpSharp added to avsfilter
2002/10/07 v0.0.02 edge ghost removal added
2002/09/26 EraseGhost added to WarpSharp
2002/09/24 v0.0.01 First release

Unauthorized translation to English by Fred Thompson utils@mindspring.com

xbox360
2nd September 2008, 12:46
Thank You very very much ! This is awesome ! I really really really really really apreciate it. Also it would have helped many other leechers !

fjhdavid
4th January 2010, 19:09
xbox 360, did you use the LGhost filter finally?

what about the parameters you choose? what are the results?

did you find another avisynth filter?

thanks
Francois

whatyaar
13th April 2010, 05:28
i also waiting for the xbox360 reply...show us some light dude.

satmonk
11th May 2014, 23:39
LGhost does not have a named argument "mode0"

I cannot get this filter to work :-(

StainlessS
12th May 2014, 07:23
RT_PluginParam() should extract CPP type argument list.
RT_Stats here: http://forum.doom9.org/showthread.php?t=165479

From Docs

RT_PluginParam(String FunctionName)
FunctionName, String, name of Avisynth built-in or Plugin filter or function name.
Returns "", if FunctionName Parameter string not found.
Returns String, the Avisynth CPP Interface style argument specifier string used by Avisynth to determine argument types and optional names.
Optional arguments have square brackets surrounding their name as in [name] and are followed by a type specifier character that gives
the type. Unnamed arguments are not optional. eg "cc[arg1]b[arg2]i" would be two compulsory unnamed clip args, followed by optional
'arg1' of type bool and optional 'arg2' of type int.
# Argument type specifier strings.
c - Video Clip
i - Integer number
f - Float number
s - String
b - boolean
. - Any type (dot)
# Array Specifiers
i* - Integer Array, zero or more
i+ - Integer Array, one or more
.* - Any type Array, zero or more
.+ - Any type Array, one or more
# Etc
To show params:-
colorbars().Killaudio()
S=RT_PluginParam("RT_YStats")
S=RT_StrReplace(S,"[",Chr(10)+"[")
RT_Subtitle(s)

real.finder
31st March 2015, 01:36
xbox 360, did you use the LGhost filter finally?

what about the parameters you choose? what are the results?

did you find another avisynth filter?

thanks
Francois

i also waiting for the xbox360 reply...show us some light dude.

LGhost does not have a named argument "mode0"

I cannot get this filter to work :-(

use value directly by arrangement and it will work, EX:- http://forum.doom9.org/showthread.php?p=1715299#post1715299

it is the best solution available at this moment

http://avisynth.nl/index.php/External_filters#Ghost_Removal

But unfortunately, it doesn't touch chroma, just luma

hope someone update it since it open source

romangal
2nd October 2021, 09:41
So, what about VsLGhost? I try it with avisynth 2.6 and it doesnt work unfortunately. As i understand the vapoursynth version requires avisynth+ version only?

Reel.Deel
2nd October 2021, 09:43
So, what about VsLGhost? I try it with avisynth 2.6 and it doesnt work unfortunately. As i understand the vapoursynth version requires avisynth+ version only?

Yes, VsLGhost uses arrays and requires AviSynth 3.6 or greater to use. You can use the original version if for some reason you do not want to use AVS+, which really there should not be :p

romangal
3rd October 2021, 03:03
Yes, VsLGhost uses arrays and requires AviSynth 3.6 or greater to use. You can use the original version if for some reason you do not want to use AVS+, which really there should not be :p

Thanks. Already using version 3.7 . So i need exactly vslghost because of color halos around edges which vslghost can reduce a little. Authentic lghost has luma effect only. But i still cant understand how disable this annoying color widening edges in red blue and green. Fixchromableedingmod, chromashift(sp) doesnt help - the first reduce saturation, the second just shifting resulting huge color edges still exist. Thanks!

Katie Boundary
3rd October 2021, 06:52
If the source was originally some constant frame rate other than 60 hz, you could try Srestore()