Mrestore: Difference between revisions

From Avisynth wiki
Jump to navigationJump to search
m 1 revision
m typos and other minor corrections
 
Line 1: Line 1:
{{FilterCat|External_filters|Restoration_filters|Deblenders}}
{{FilterCat4|External_filters|Restoration_filters|Scripts|Deblenders}}
{{Filter|MOmonster|2.3e|[[Media:mrestore.avsi|mrestore.avsi]]|Deblenders|
{{Filter|MOmonster|2.3e|[[Media:mrestore.avsi|mrestore.avsi]]|Deblenders|
* [[YV12]]
* [[YV12]]
|}}
|}}
{{Template:FuncDef|mrestore(clip clp, int ''numr'', int ''denm'', int ''mode'', float ''bf'', bool ''chroma'', int ''dup'', int ''cache'', float ''rx'', float ''ry'', int ''mthr'', clip ''dclip'') }}


== Abstract ==
== Abstract ==
Mrestore is an AviSynth script function that use the conditional frame evaluation for the output calculation.
[[Mrestore]] is an AviSynth script function that use the conditional frame evaluation for the output calculation.
Generally it was written to undo norm-conversions with blends, but the last version can be useful for all decimation ratios between 1.5 and 2.5 (denm/numr).
Generally it was written to undo norm-conversions with blends, but the last version can be useful for all decimation ratios between 1.5 and 2.5 (denm/numr).
It is currently [http://forum.doom9.org/showthread.php?p=1186623#post1186623 obsolete]. [[Srestore]] is the updated function, part of the [[R_pack]].
It is currently [http://forum.doom9.org/showthread.php?p=1186623#post1186623 obsolete]. [[Srestore]] is the updated function, part of the [[R_pack]].


== Requires Filters ==
== Required Filters ==
*[[MaskTools2]]
*[[MaskTools2]]
*[[TIVTC]] Version 1.04 or higher.
*[[TIVTC]] Version 1.04 or higher.


== Parameters ==
== Parameters ==
{{Template:FuncDef|mrestore (clip clp, int ''numr'', int ''denm'', int ''mode'', float ''bf'', bool ''chroma'', int ''dup'', int ''cache'', float ''rx'', float ''ry'', int ''mthr'', clip ''dclip'') }}
<pre>
<pre>
clp - The blended clip to be restored to an unblended, decimated version
clp - The blended clip to be restored to an unblended, decimated version
Line 50: Line 49:
or:
or:


d = last.bob(-0.2,0.6).reduceflicker(strength=1) #Didee use this in restore24
d = last.bob(-0.2,0.6).reduceflicker(strength=1) #Didée used this in restore24


tdeint(mode=1) #or for example yadif(mode=1)
tdeint(mode=1) #or for example yadif(mode=1)

Latest revision as of 14:46, 15 December 2015

Abstract
Author MOmonster
Version 2.3e
Download mrestore.avsi
Category Deblenders
Requirements
License
Discussion

Abstract

Mrestore is an AviSynth script function that use the conditional frame evaluation for the output calculation. Generally it was written to undo norm-conversions with blends, but the last version can be useful for all decimation ratios between 1.5 and 2.5 (denm/numr). It is currently obsolete. Srestore is the updated function, part of the R_pack.

Required Filters

Parameters

mrestore (clip clp, int numr, int denm, int mode, float bf, bool chroma, int dup, int cache, float rx, float ry, int mthr, clip dclip)

clp - The blended clip to be restored to an unblended, decimated version
numr - numerator
denm - denominator  Together these specify the new frame rate, e.g. 30000/1001 is NTSC video rate.
mode - reduction factor, this specifies which frames will be decimated
bf - default 0.6 blend factor
chroma - default false Specifies where to use chroma in the detection clip
dup - default 0
cache - default 5 Specifies number of frames to cache for non-linear request
rx - x detection reduction
ry - y detection reduction
mthr - A parameter which affects the detection
dclip - default clp The detection clip

Examples

	bobbed (or progressive) source

	mrestore()

	------
	or:

	ord = last.getparity() ? 1 : 0

	leakkernelbob(ord,4,true,true)

	mrestore(dclip=last.crop(8,8,-16,-8))


	------
	or:

	d = last.bob(-0.2,0.6).reduceflicker(strength=1)	#Didée used this in restore24

	tdeint(mode=1)						#or for example yadif(mode=1)

	mrestore(mode=-4,dup=1,dclip=d)