LMFlicker
From Avisynth wiki
(Difference between revisions)
Raffriff42 (Talk | contribs) (redirect for convenient searching) |
(LMFlicker: add documentation) |
||
Line 1: | Line 1: | ||
− | + | {{FilterCat4|External_filters|Plugins|Restoration_filters|Luma_Equalization}} | |
− | {{ | + | {{Filter3 |
+ | |1={{Author/akupenguin}} | ||
+ | |2=v0.1 | ||
+ | |3=[http://akuvian.org/src/avisynth/flicker/lmflicker-0.10.zip lmflicker-0.10.zip] | ||
+ | |4=Luma Equalization | ||
+ | |5=[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2] | ||
+ | |6=}} | ||
+ | |||
+ | == Description == | ||
+ | [[LMFlicker]] is a filter intended to reduce flickering in some film/vhs transfers. | ||
+ | |||
+ | FieldFade is a similar concept, but applied on a per-field basis, to reduce combing in a video where fades were applied after telecine. | ||
+ | |||
+ | |||
+ | Official homepage: http://akuvian.org/src/avisynth/flicker/ | ||
+ | <br> | ||
+ | <br> | ||
+ | == Requirements == | ||
+ | * [x86]: [[AviSynth+]] or [https://sourceforge.net/projects/avisynth2/ AviSynth 2.5.8 or greater] | ||
+ | * Supported color formats: [[YV12]] | ||
+ | <br> | ||
+ | |||
+ | == [[Script variables|Syntax and Parameters]] == | ||
+ | <pre> | ||
+ | |||
+ | LMFlicker(clip, int startframe, int endframe, int frame, int lthresh, | ||
+ | int cthresh, float scene, bool show, string log, int radius, int blur) | ||
+ | |||
+ | FieldFade(clip, int startframe, int endframe, int frame, int lthresh, | ||
+ | int cthresh, float scene, bool show, string log, int field, | ||
+ | bool chroma, bool affine) | ||
+ | |||
+ | |||
+ | clip: (default=none) | ||
+ | Input clip. | ||
+ | |||
+ | startframe, endframe: (default=-1) | ||
+ | If specified, the filter will process only the frames between startframe | ||
+ | and endframe (inclusive), and pass all others through unmodified. | ||
+ | If only one of these is specified, the other is assumed to be the other end of the video. | ||
+ | |||
+ | frame: (default=-1) | ||
+ | Like start/endframe, but filters only one frame. | ||
+ | |||
+ | lthresh: (default=20, max=255) | ||
+ | cthresh: (default=20, max=255) | ||
+ | When calculating the fade transform, ignore any pixels that differ from | ||
+ | their neighbors by more than this much (luma and chroma are processed independently). | ||
+ | In LMFlicker, this neighbor is temporal. In FieldFade, this neighbor is vertical. | ||
+ | |||
+ | scene: (default=0.6) | ||
+ | If less than this fraction of all pixels pass lthresh and cthresh, then | ||
+ | the frame is considered to be a scene change, and is not modified. | ||
+ | |||
+ | show: unimplemented | ||
+ | |||
+ | log: (default=none) | ||
+ | print some statistics to a file | ||
+ | |||
+ | radius: (default=4, max=20) | ||
+ | Look at this many neighbors when calculating the target brightness. | ||
+ | |||
+ | blur: (default=1) | ||
+ | Run this many iterations of blur() before comparing frames, to reduce noise. | ||
+ | (This affects only the analysis; it doesn't blur the output.) | ||
+ | |||
+ | field: | ||
+ | Which field to modify when equalizing the two. | ||
+ | 0 => modify top field | ||
+ | 1 => modify bottom field | ||
+ | 2 => modify both, to meet in the middle (default) | ||
+ | |||
+ | chroma: (default=true) | ||
+ | Decomb chroma too. | ||
+ | |||
+ | affine: (default=true) | ||
+ | Search for an affine transform (scale and offset) of brightness, | ||
+ | as opposed to just scale. | ||
+ | </pre> | ||
+ | <br> | ||
+ | ==Tips== | ||
+ | <pre> | ||
+ | For LMFlicker, you may want to tweak radius and blur. | ||
+ | All other settings are purely optional and probably don't need to be changed. | ||
+ | LMFlicker should be safe to apply to a whole movie, even if only some parts | ||
+ | need to be deflickered. | ||
+ | |||
+ | Try FieldFade with no arguments. | ||
+ | FieldFade probably has side-effects that I haven't discovered, so should | ||
+ | probably only be applied to the sections that need it. | ||
+ | Don't expect perfect results from FieldFade: I approximate fading as an affine | ||
+ | transform, and that should be good enough. But if you trust the DVD masters to | ||
+ | do the right thing, you wouldn't need this filter in the first place. | ||
+ | </pre> | ||
+ | <br> | ||
+ | |||
+ | == Examples == | ||
+ | LMFlicker with default settings: | ||
+ | [[AviSource]]("blah.avi") | ||
+ | LMFlicker() | ||
+ | |||
+ | |||
+ | FieldFade with default settings: | ||
+ | [[AviSource]]("blah.avi") | ||
+ | FieldFade() | ||
+ | <br> | ||
+ | == Changelog == | ||
+ | Version Date(D/M/Y) Changes<br> | ||
+ | v0.1 2004/10/08 - Initial release | ||
+ | <br> | ||
+ | |||
+ | == Archived Downloads == | ||
+ | {| class="wikitable" border="1"; width="400px" | ||
+ | |- | ||
+ | !!width="100px"| Version | ||
+ | !!width="150px"| Download | ||
+ | !!width="150px"| Mirror | ||
+ | |- | ||
+ | !v0.1 | ||
+ | |[http://akuvian.org/src/avisynth/flicker/lmflicker-0.10.zip lmflicker-0.10.zip] | ||
+ | |[https://web.archive.org/web/20200707183747if_/http://akuvian.org/src/avisynth/flicker/lmflicker-0.10.zip lmflicker-0.10.zip] | ||
+ | |} | ||
+ | <br> | ||
+ | == External Links == | ||
+ | <br> | ||
+ | <br> | ||
+ | ----------------------------------------------- | ||
+ | '''Back to [[External_filters#Luma_Equalization|External Filters]] ←''' |
Latest revision as of 19:50, 7 July 2020
Abstract | |
---|---|
Author | Loren Merritt |
Version | v0.1 |
Download | lmflicker-0.10.zip |
Category | Luma Equalization |
License | GPLv2 |
Discussion |
Contents |
[edit] Description
LMFlicker is a filter intended to reduce flickering in some film/vhs transfers.
FieldFade is a similar concept, but applied on a per-field basis, to reduce combing in a video where fades were applied after telecine.
Official homepage: http://akuvian.org/src/avisynth/flicker/
[edit] Requirements
- [x86]: AviSynth+ or AviSynth 2.5.8 or greater
- Supported color formats: YV12
[edit] Syntax and Parameters
LMFlicker(clip, int startframe, int endframe, int frame, int lthresh, int cthresh, float scene, bool show, string log, int radius, int blur) FieldFade(clip, int startframe, int endframe, int frame, int lthresh, int cthresh, float scene, bool show, string log, int field, bool chroma, bool affine) clip: (default=none) Input clip. startframe, endframe: (default=-1) If specified, the filter will process only the frames between startframe and endframe (inclusive), and pass all others through unmodified. If only one of these is specified, the other is assumed to be the other end of the video. frame: (default=-1) Like start/endframe, but filters only one frame. lthresh: (default=20, max=255) cthresh: (default=20, max=255) When calculating the fade transform, ignore any pixels that differ from their neighbors by more than this much (luma and chroma are processed independently). In LMFlicker, this neighbor is temporal. In FieldFade, this neighbor is vertical. scene: (default=0.6) If less than this fraction of all pixels pass lthresh and cthresh, then the frame is considered to be a scene change, and is not modified. show: unimplemented log: (default=none) print some statistics to a file radius: (default=4, max=20) Look at this many neighbors when calculating the target brightness. blur: (default=1) Run this many iterations of blur() before comparing frames, to reduce noise. (This affects only the analysis; it doesn't blur the output.) field: Which field to modify when equalizing the two. 0 => modify top field 1 => modify bottom field 2 => modify both, to meet in the middle (default) chroma: (default=true) Decomb chroma too. affine: (default=true) Search for an affine transform (scale and offset) of brightness, as opposed to just scale.
[edit] Tips
For LMFlicker, you may want to tweak radius and blur. All other settings are purely optional and probably don't need to be changed. LMFlicker should be safe to apply to a whole movie, even if only some parts need to be deflickered. Try FieldFade with no arguments. FieldFade probably has side-effects that I haven't discovered, so should probably only be applied to the sections that need it. Don't expect perfect results from FieldFade: I approximate fading as an affine transform, and that should be good enough. But if you trust the DVD masters to do the right thing, you wouldn't need this filter in the first place.
[edit] Examples
LMFlicker with default settings:
AviSource("blah.avi") LMFlicker()
FieldFade with default settings:
AviSource("blah.avi") FieldFade()
[edit] Changelog
Version Date(D/M/Y) Changes
v0.1 2004/10/08 - Initial release
[edit] Archived Downloads
Version | Download | Mirror |
---|---|---|
v0.1 | lmflicker-0.10.zip | lmflicker-0.10.zip |
[edit] External Links
Back to External Filters ←