DeBlock: Difference between revisions

From Avisynth wiki
Jump to navigationJump to search
some minor changes/additions
Line 1: Line 1:
{{FilterCat4|External_filters|Plugins|Restoration_filters|Deblockers}}
{{FilterCat4|External_filters|Plugins|Restoration_filters|Deblockers}}
{{Filter
{{Filter3
|{{Author/Manao}},{{Author/Fizick}}
|{{Author/Manao}},{{Author/Fizick}}
|1.2|[http://avisynth.org.ru/mvtools/deblock12.zip deblock12.zip]
|1.2
|[http://avisynth.org.ru/mvtools/deblock12.zip deblock12.zip]
|Deblocker
|Deblocker
|5=<br>
|5=[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
* [[YV12]]
|6=[http://forum.doom9.org/showthread.php?t=110352 Doom9 Thread]}}
* [[YUY2]]
 
* Width Mod 8
* Height Mod 8
|6=GPL
|7=[http://forum.doom9.org/showthread.php?t=110352 Doom9 Thread]}}
<br>
<br>
Official documentation: http://avisynth.org.ru/mvtools/deblock.html
Official documentation: http://avisynth.org.ru/mvtools/deblock.html
==Description==
==Description==
Line 19: Line 14:
*[http://github.com/tp7/Deblock DeBlock for AviSynth 2.6] - faster and supports all [[planar]] colorspaces. [http://github.com/tp7/Deblock/releases Download] | [http://forum.doom9.org/showthread.php?t=169832 Discussion]
*[http://github.com/tp7/Deblock DeBlock for AviSynth 2.6] - faster and supports all [[planar]] colorspaces. [http://github.com/tp7/Deblock/releases Download] | [http://forum.doom9.org/showthread.php?t=169832 Discussion]
<br>
<br>
== Requirements ==
* AviSynth 2.5.8 or later
* Supported color formats: [[YUY2]], [[YV12]]


*Width and height need to be Mod 8.
<br>
== [[Script variables|Syntax and Parameters]] ==
== [[Script variables|Syntax and Parameters]] ==
:{{FuncDef|Deblock (clip, int "quant", int "aOffset", int "bOffset")}}
:{{FuncDef|Deblock (clip, int "quant", int "aOffset", int "bOffset")}}
<br>
<br>
::{{Par2| |clip| }}
:::Input clip.
::{{Par2|quant|int|25}}
::{{Par2|quant|int|25}}
:::The higher the quant, the stronger the deblocking. Range is from 0 to 60.
:::The higher the quant, the stronger the deblocking. Range is from 0 to 60.
::{{Par2|aOffset|int|0}}
::{{Par2|aOffset|int|0}}
:::Quant modifier to the blocking detector threshold. Setting it higher means than more edges will deblocked.
:::Quant modifier to the blocking detector threshold. Setting it higher means than more edges will deblocked.
::{{Par2|bOffset|int|0}}
::{{Par2|bOffset|int|0}}
:::Another quant modifier, for block detecting and for deblocking's strength. There again, the higher, the stronger.
:::Another quant modifier, for block detecting and for deblocking's strength. There again, the higher, the stronger.
<br>
<br>
::*If ''quant + aOffset'' is less than 16, the filter does nothing at all. The same goes for ''quant + bOffset''.
:*If {{FuncDef3|quant}} + {{FuncDef3|aOffset}} is less than 16, the filter does nothing at all. The same goes for {{FuncDef3|quant}} + {{FuncDef3|bOffset}}.
<br>
<br>


==Examples==
==Examples==
:To deblock the motion compensation (MVTools plugin):
Deblock with default settings:
MPEG2Source("Blocky.dv2")
Deblock(quant=25, aOffset=0, bOffset=0)
 
 
To deblock the motion compensation ([[MVTools]] plugin):
<pre>
<pre>
vectors = source.MVAnalyse(isb = false, lambda = 1000)
vectors = source.MVAnalyse(isb = false, lambda = 1000)

Revision as of 11:34, 15 February 2015

Abstract
Author Manao,Fizick
Version 1.2
Download deblock12.zip
Category Deblocker
License GPLv2
Discussion Doom9 Thread

Official documentation: http://avisynth.org.ru/mvtools/deblock.html

Description

It performs deblocking on the picture, using the deblocking filter of H264. It's useful to deblock the result of MVCompensate of MVTools plugin, etc.


Requirements

  • AviSynth 2.5.8 or later
  • Supported color formats: YUY2, YV12
  • Width and height need to be Mod 8.


Deblock (clip, int "quant", int "aOffset", int "bOffset")


clip   =
Input clip.
int  quant = 25
The higher the quant, the stronger the deblocking. Range is from 0 to 60.
int  aOffset = 0
Quant modifier to the blocking detector threshold. Setting it higher means than more edges will deblocked.
int  bOffset = 0
Another quant modifier, for block detecting and for deblocking's strength. There again, the higher, the stronger.


  • If quant + aOffset is less than 16, the filter does nothing at all. The same goes for quant + bOffset.


Examples

Deblock with default settings:

MPEG2Source("Blocky.dv2")
Deblock(quant=25, aOffset=0, bOffset=0)


To deblock the motion compensation (MVTools plugin):

vectors = source.MVAnalyse(isb = false, lambda = 1000)
compensation = source.MVCompensate(vectors, mode = 0)
compensation.Deblock()





Back to External Filters