MDec2

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(redirect for convenient searching)
 
(MDec2: add documentation)
 
Line 1: Line 1:
#REDIRECT [[External_filters#IVTC_.26_Decimation]]
+
{{FilterCat5|External_filters|Plugins|Plugins_x64|IVTC|Decimation}}
{{FilterCat|External_filters|Restoration_filters|IVTC}}
+
[[Category:Plugins]]
 +
{{Filter3
 +
|1={{Author/StainlessS}}
 +
|2=v1.02
 +
|3=[https://web.archive.org/web/20200526063000if_/https://files.videohelp.com/u/223002/MDec2_x86_x64_dll_v1.02_20180426.zip MDec2_x86_x64_dll_v1.02_20180426.zip]
 +
|4=[[:Category:Support_filters|Support filters]]
 +
|5=[https://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
 +
|6=[https://forum.doom9.org/showthread.php?t=168397 Doom9 Forum]
 +
}}
 +
<br>
 +
== Description ==
 +
MDec2, MultiDecimate like decimating filter.
 +
<br>
 +
<br>
 +
== Requirements ==
 +
* [x86]: [[AviSynth+]] or [https://sourceforge.net/projects/avisynth2/ AviSynth 2.6]
 +
* [x64]: [[AviSynth+]]
 +
* Supported color formats: [[RGB24]], [[RGB32]], [[YUY2]], [[Y8]], [[YV12]], [[YV16]], [[YV24]], [[YV411]]
 +
<br>
 +
* [https://www.microsoft.com/en-us/download/details.aspx?id=26368 Microsoft Visual C++ 2008 Redistributable Package (x86 / x64)] <includeonly>[[VC_9.0]]</includeonly>
 +
:<span style="color:red">***</span> <tt>vcredist_x86.exe</tt> is required for <tt>MDec2-x86</tt>
 +
:<span style="color:red">***</span> <tt>vcredist_x64.exe</tt> is required for <tt>MDec2-x64</tt>
 +
<br>
 +
 
 +
== [[Script variables|Syntax and Parameters]] ==
 +
<pre>
 +
MDEC2(clip c,float "rate"=24.0,bool "show"=false,bool "create"=false,string "dir"="C:\",bool "chroma"=true,bool "ver"=false)
 +
 
 +
MDec2 is a 2 pass decimating filter, acting much like the Multidecimate filter by Donald A. Graft.
 +
Requires MultiDecimate.Exe & ProcessMD.Exe from MultiDecimate package.
 +
 
 +
Args:-
 +
 
 +
c, clip. No default
 +
 
 +
Rate=24.0, final output frame rate, used only on 2nd pass.
 +
 
 +
show=false. 1st pass, shows metrics on frame, 2nd pass shows frame being used.
 +
 
 +
create=false. Set true for 1st pass, false on 2nd pass after using MultiDecimate.Exe.
 +
 
 +
dir="C:\". Path to data files (mfile.txt, cfile.txt, dfile.txt).
 +
 
 +
chroma=true. If false then only use luma for metrics. (RGB not used).
 +
 
 +
ver=false. True shows version on frame.
 +
 
 +
See MultiDecimate docs for further info.
 +
</pre>
 +
 
 +
=== Metrics ===
 +
<pre>
 +
Metrics:-
 +
MDec2, modified metrics based on FDecimate by Donald Graft.
 +
Splits frames into blocks and returns metric of block with greatest difference.
 +
YUV Metrics weight combined chroma with same weight as luma.
 +
 
 +
NOTE, if wanting to eg decimate 29.97 to 25.0, then numbers dont work and will throw an error because of
 +
mismatch to what it is expecting. In such circomstance, use something like:-
 +
>>>>>>>>>>>
 +
    SHOW=True
 +
    ORG=Last
 +
    AssumeFPS(30.0,sync_audio=True)
 +
#    ResampleAudio(ORG.AudioRate)
 +
    Mdec2(Rate=25.0,create=True,Show=True,Dir="")    # Pass 1 [Dir="", files in current directory]
 +
    ###
 +
    Use MultiDecimate.Exe, eg drop 1 frame in every 6.
 +
    ######
 +
    SHOW=False
 +
    ORG=Last
 +
    AssumeFPS(30.0,sync_audio=True)
 +
    ResampleAudio(ORG.AudioRate)
 +
    Mdec2(Rate=25.0,create=False,Show=SHOW,Dir="")    # Pass 2, output 25 fps.
 +
</pre>
 +
<br>
 +
 
 +
== Examples ==
 +
[[TODO]]
 +
<br>
 +
<br>
 +
== Changelog ==
 +
<pre>
 +
v1.00,  9 Aug 2013. Early release.
 +
v1.01, 30 Mar 2015. Recompile v2.6 dll with Avisynth Version 6 Header.
 +
v1.02, 26 Apr 2018. Fix pitch can change. Add x64 dll. Recompile VS2008.
 +
</pre>
 +
<br>
 +
 
 +
== Archived Downloads ==
 +
{| class="wikitable" border="1"; width="500px"
 +
|-
 +
!!width="100px"| Version
 +
!!width="200px"| Download
 +
!!width="200px"| Mirror
 +
|-
 +
!v1.02
 +
|[https://web.archive.org/web/20200526063000if_/https://files.videohelp.com/u/223002/MDec2_x86_x64_dll_v1.02_20180426.zip MDec2_x86_x64_dll_v1.02_20180426.zip]
 +
|[http://www.mediafire.com/file/lew18etev20cj6d/MDec2_x86_x64_dll_v1.02_20180426.zip/file MDec2_x86_x64_dll_v1.02_20180426.zip]
 +
|}
 +
<br>
 +
== External Links ==
 +
<br>
 +
<br>
 +
-----------------------------------------------
 +
'''Back to [[External_filters#IVTC_.26_Decimation|External Filters]] &larr;'''
 +
-----------------------------------------------

Latest revision as of 05:40, 26 May 2020

Abstract
Author StainlessS
Version v1.02
Download MDec2_x86_x64_dll_v1.02_20180426.zip
Category Support filters
License GPLv2
Discussion Doom9 Forum


Contents

[edit] Description

MDec2, MultiDecimate like decimating filter.

[edit] Requirements


*** vcredist_x86.exe is required for MDec2-x86
*** vcredist_x64.exe is required for MDec2-x64


[edit] Syntax and Parameters

MDEC2(clip c,float "rate"=24.0,bool "show"=false,bool "create"=false,string "dir"="C:\",bool "chroma"=true,bool "ver"=false)

MDec2 is a 2 pass decimating filter, acting much like the Multidecimate filter by Donald A. Graft.
Requires MultiDecimate.Exe & ProcessMD.Exe from MultiDecimate package.

Args:-

 c, clip. No default

 Rate=24.0, final output frame rate, used only on 2nd pass.

 show=false. 1st pass, shows metrics on frame, 2nd pass shows frame being used.

 create=false. Set true for 1st pass, false on 2nd pass after using MultiDecimate.Exe.

 dir="C:\". Path to data files (mfile.txt, cfile.txt, dfile.txt).

 chroma=true. If false then only use luma for metrics. (RGB not used).

 ver=false. True shows version on frame.

 See MultiDecimate docs for further info.

[edit] Metrics

Metrics:-
 MDec2, modified metrics based on FDecimate by Donald Graft.
 Splits frames into blocks and returns metric of block with greatest difference.
 YUV Metrics weight combined chroma with same weight as luma.

NOTE, if wanting to eg decimate 29.97 to 25.0, then numbers dont work and will throw an error because of
mismatch to what it is expecting. In such circomstance, use something like:-
>>>>>>>>>>>
    SHOW=True
    ORG=Last
    AssumeFPS(30.0,sync_audio=True)
#    ResampleAudio(ORG.AudioRate)
    Mdec2(Rate=25.0,create=True,Show=True,Dir="")    # Pass 1 [Dir="", files in current directory]
    ###
    Use MultiDecimate.Exe, eg drop 1 frame in every 6.
    ######
    SHOW=False
    ORG=Last
    AssumeFPS(30.0,sync_audio=True)
    ResampleAudio(ORG.AudioRate)
    Mdec2(Rate=25.0,create=False,Show=SHOW,Dir="")    # Pass 2, output 25 fps.


[edit] Examples

TODO

[edit] Changelog

 v1.00,  9 Aug 2013. Early release.
 v1.01, 30 Mar 2015. Recompile v2.6 dll with Avisynth Version 6 Header.
 v1.02, 26 Apr 2018. Fix pitch can change. Add x64 dll. Recompile VS2008.


[edit] Archived Downloads

Version Download Mirror
v1.02 MDec2_x86_x64_dll_v1.02_20180426.zip MDec2_x86_x64_dll_v1.02_20180426.zip


[edit] External Links




Back to External Filters


Personal tools