Deblock QED
From Avisynth wiki
(Difference between revisions)
(→Changelog) |
m (→External Links: better link) |
||
| (27 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {{ | + | {{FilterCat4|External_filters|Scripts|Restoration_filters|Deblockers}} |
| − | {{ | + | {{Filter3 |
|Didée | |Didée | ||
| − | | | + | |2011-11-29 |
|[[Media:Deblock_QED_MT2Mod.avsi|Deblock_QED_MT2Mod.avsi]] | |[[Media:Deblock_QED_MT2Mod.avsi|Deblock_QED_MT2Mod.avsi]] | ||
|Deblockers | |Deblockers | ||
| | | | ||
| − | + | |6=[http://forum.doom9.org/showthread.php?t=154777 Doom9 Thread]}} | |
| − | + | ||
| − | + | ||
| − | | | + | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| + | == Description == | ||
Designed to provide 8x8 deblocking sensitive to the amount of blocking in the source, compared to other deblockers which apply a uniform deblocking across every frame. | Designed to provide 8x8 deblocking sensitive to the amount of blocking in the source, compared to other deblockers which apply a uniform deblocking across every frame. | ||
| + | <br> | ||
| + | <br> | ||
| + | == Requirements == | ||
| + | *AviSynth 2.5.8 or later | ||
| + | *[[FAQ_different_types_content#How_do_I_recognize_progressive.2C_interlaced.2C_telecined.2C_hybrid_and_blended_content.3F|Progressive]] input only | ||
| + | *Supported color formats: [[YV12]] | ||
| + | * Width and height need to be [[Modulo|mod8]]. | ||
| − | === | + | === Required Plugins === |
| + | Latest versions of the following filters are recommended unless stated otherwise.<br> | ||
| + | *[[DctFilter]] | ||
*[[DeBlock]] | *[[DeBlock]] | ||
| − | *[[MaskTools2]] | + | *[[MaskTools2]] |
| − | + | <br> | |
| − | == | + | == [[Script variables|Syntax and Parameters]] == |
| + | :{{Template:FuncDef|DeBlock_QED (clip clp, int "quant1", int "quant2", int "aOff1", int "bOff1", int "aOff2", int "bOff2", int "uv")}} | ||
| + | <br> | ||
| + | ::{{Par2|clp|clip| }} | ||
| + | :::Input clip. | ||
| + | <br> | ||
| + | ::{{Par2|quant1|int|24}} | ||
| + | :::Strength of block edge deblocking. | ||
| − | {{ | + | ::{{Par2|quant2|int|26}} |
| − | Strength of block | + | :::Strength of block internal deblocking. |
| + | <br> | ||
| + | ::{{Par2|aOff1|int|1}} | ||
| + | :::Halfway "sensitivity" and halfway a strength modifier for borders. | ||
| + | ::{{Par2|aOff2|int|1}} | ||
| + | :::Halfway "sensitivity" and halfway a strength modifier for block interiors. | ||
| + | <br> | ||
| + | ::{{Par2|bOff1|int|2}} | ||
| + | :::"Sensitivity to detect blocking" for borders. | ||
| + | ::{{Par2|bOff2|int|2}} | ||
| + | :::"Sensitivity to detect blocking" for block interiors. | ||
| + | <br> | ||
| + | ::*{{Template:FuncDef|<tt>aOff</tt>}} and {{Template:FuncDef|<tt>bOff</tt>}} controls block detection and removal strength, for {{Template:FuncDef|<tt>quant1</tt>}} and {{Template:FuncDef|<tt>quant2</tt>}} respectively. See [[DeBlock]] for more information. | ||
| + | <br> | ||
| + | ::{{Par2|uv|int|3}} | ||
| + | :::Deblock chroma: | ||
| + | ::::* 2 : Copy chroma from source. | ||
| + | ::::* 3 : Process chroma. | ||
| + | ::::* 1/-1 : Process chroma with normal/strong Deblock(). | ||
| + | <br> | ||
| − | + | == Examples == | |
| − | + | Deblock_QED with default settings: | |
| + | [[AviSource]]("Blah.avi") | ||
| + | Deblock_QED(quant1=24, quant=26, aOff1=1, aOff2=1, bOff1=2, bOff2=2, uv=3) | ||
| + | <br> | ||
| − | + | == Changelog == | |
| − | + | Changes 2011-11-29: (06_taro) | |
| − | + | - Replaced (chroma=uv>2?"process":"ignore") by (chroma=uv>2?"process":"copy") to avoid garbage clip when uv=2. | |
| − | + | The formal parameter is not used by MaskTools2 any more, if ever used. | |
| − | + | Foxyshadis once mentioned chroma="ignore" but I had never found a document containing it.<br> | |
| + | Changes 2010-10-16: (Bi11) | ||
| + | - Replaced 'relative' with the new 'mode' parameter in mt_LutSpa(), starting from MaskTools 2.0a45 | ||
| + | - Changed Quant and Offset defaults to 24,26,1,1,2,2 to increase effectiveness, but still within sensible limits. | ||
| + | (Details: http://forum.doom9.org/showthread.php?p=810932#post810932)<br> | ||
| + | Changes 2010-08-18: (Bi11) | ||
| + | - Replaced AddBorders with PointResize | ||
| + | - Changed Quant and Offset defaults to 18,19,3,4,1,1 to reduce blurring<br> | ||
| + | Changes 2010-05-25: (Bi11) | ||
| + | - Explicitly specified parameters of mt_LutSpa() | ||
| + | (required due to position of new 'biased' parameter, starting from MaskTools 2.0a43) | ||
| + | - Non mod 16 input is now padded with borders internally<br> | ||
| + | Changes 2008-08-18: (Didée) | ||
| + | - Replaced the ugly stackXXX cascade with mt_LutSpa() (requires MaskTools v2.0a35) | ||
| + | - Changed Quant and Offset defaults to 24,28,2,4,4,8<br> | ||
| + | Changes 2005-10-28: (Didée) | ||
| + | - Initial release | ||
| + | <br> | ||
| − | + | ==External Links == | |
| − | + | * [http://forum.doom9.org/showthread.php?t=154777 Doom9 Forum] - Discussion about the updated_Deblock_QED_MT2. | |
| − | * | + | |
| − | + | ||
| − | + | ||
| − | == | + | * [http://forum.doom9.org/showthread.php?p=913365 Doom9 Forum] - Didée gives a short [http://forum.doom9.org/showpost.php?p=913365&postcount=4 description] of Deblock_QED and some [http://forum.doom9.org/showpost.php?p=913394&postcount=6 insight] on how Deblock_QED works. Also a good thread for other deblocking scripts and plugins. |
| − | + | * [http://forum.videohelp.com/threads/361152-Correct-usage-of-Deblock_QED-for-Interlaced-footage VideoHelp Forum] - How to correctly use Deblock_QED with interlaced footage. Originally suggested by [http://forum.doom9.org/showpost.php?p=934083&postcount=884 Didée]. Additional [http://forum.doom9.org/showpost.php?p=1121603&postcount=8 information.] | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | * [https://web.archive.org/web/20130727122722/http://videoprocessing.fr.yuku.com/topic/12 VideoProcessing Forum] - Didée's [https://web.archive.org/web/20131103161801/http://videoprocessing.fr.yuku.com/sreply/413/MDeblock-03-released original] Deblock_QED post. It's a very informational thread. | |
| − | + | <br> | |
| + | <br> | ||
| + | ----------------------------------------------- | ||
| + | '''Back to [[External_filters#Deblocking|External Filters]] ←''' | ||
| + | ----------------------------------------------- | ||
Latest revision as of 18:23, 22 October 2022
| Abstract | |
|---|---|
| Author | Didée |
| Version | 2011-11-29 |
| Download | Deblock_QED_MT2Mod.avsi |
| Category | Deblockers |
| License | |
| Discussion | Doom9 Thread |
Contents |
[edit] Description
Designed to provide 8x8 deblocking sensitive to the amount of blocking in the source, compared to other deblockers which apply a uniform deblocking across every frame.
[edit] Requirements
- AviSynth 2.5.8 or later
- Progressive input only
- Supported color formats: YV12
- Width and height need to be mod8.
[edit] Required Plugins
Latest versions of the following filters are recommended unless stated otherwise.
[edit] Syntax and Parameters
- DeBlock_QED (clip clp, int "quant1", int "quant2", int "aOff1", int "bOff1", int "aOff2", int "bOff2", int "uv")
- clip clp =
- Input clip.
- clip clp =
- int quant1 = 24
- Strength of block edge deblocking.
- int quant1 = 24
- int quant2 = 26
- Strength of block internal deblocking.
- int quant2 = 26
- int aOff1 = 1
- Halfway "sensitivity" and halfway a strength modifier for borders.
- int aOff2 = 1
- Halfway "sensitivity" and halfway a strength modifier for block interiors.
- int aOff1 = 1
- int bOff1 = 2
- "Sensitivity to detect blocking" for borders.
- int bOff2 = 2
- "Sensitivity to detect blocking" for block interiors.
- int bOff1 = 2
- aOff and bOff controls block detection and removal strength, for quant1 and quant2 respectively. See DeBlock for more information.
- int uv = 3
- Deblock chroma:
- 2 : Copy chroma from source.
- 3 : Process chroma.
- 1/-1 : Process chroma with normal/strong Deblock().
- Deblock chroma:
- int uv = 3
[edit] Examples
Deblock_QED with default settings:
AviSource("Blah.avi") Deblock_QED(quant1=24, quant=26, aOff1=1, aOff2=1, bOff1=2, bOff2=2, uv=3)
[edit] Changelog
Changes 2011-11-29: (06_taro)
- Replaced (chroma=uv>2?"process":"ignore") by (chroma=uv>2?"process":"copy") to avoid garbage clip when uv=2.
The formal parameter is not used by MaskTools2 any more, if ever used.
Foxyshadis once mentioned chroma="ignore" but I had never found a document containing it.
Changes 2010-10-16: (Bi11)
- Replaced 'relative' with the new 'mode' parameter in mt_LutSpa(), starting from MaskTools 2.0a45
- Changed Quant and Offset defaults to 24,26,1,1,2,2 to increase effectiveness, but still within sensible limits.
(Details: http://forum.doom9.org/showthread.php?p=810932#post810932)
Changes 2010-08-18: (Bi11)
- Replaced AddBorders with PointResize
- Changed Quant and Offset defaults to 18,19,3,4,1,1 to reduce blurring
Changes 2010-05-25: (Bi11)
- Explicitly specified parameters of mt_LutSpa()
(required due to position of new 'biased' parameter, starting from MaskTools 2.0a43)
- Non mod 16 input is now padded with borders internally
Changes 2008-08-18: (Didée)
- Replaced the ugly stackXXX cascade with mt_LutSpa() (requires MaskTools v2.0a35)
- Changed Quant and Offset defaults to 24,28,2,4,4,8
Changes 2005-10-28: (Didée)
- Initial release
[edit] External Links
- Doom9 Forum - Discussion about the updated_Deblock_QED_MT2.
- Doom9 Forum - Didée gives a short description of Deblock_QED and some insight on how Deblock_QED works. Also a good thread for other deblocking scripts and plugins.
- VideoHelp Forum - How to correctly use Deblock_QED with interlaced footage. Originally suggested by Didée. Additional information.
- VideoProcessing Forum - Didée's original Deblock_QED post. It's a very informational thread.
Back to External Filters ←