Log in

View Full Version : New Deflicker filter for mean intensity stabilization


Fizick
5th June 2004, 02:05
I release the new DeFlicker plugin. It can remove old film intensity flicker by temporal mean luma smoothing.
Also it can correct blinding of automatic gain control after flashes.
The luma stbilizing not only improves visual impression, but can help to following noise reduction.

The filter works by partial compensation of current frame contrast and intensity to the values as in previous frames .

Some comments about filter name - yes, the works and name is similar to Antilicker for Avisynth by D.Graft,
Antiflicker for VirtualDub by D.Graft (sometimes named as "Deflicker", but with filename Deflick.vdf) ,
Deflick-Prepare/Process by Alessandro Malanca, and MSU-Deflicker .

But I decide to complicate this some more :D

http://bag.hotmail.ru

cwolf
26th June 2004, 21:18
The DVD "Dali" has a scene in which he is leaving hospital at night and there's a battalion of photographers spoking flashes, well, you can figure the scene. It's interlaced. I'm trying to smooth the luma in this scene without success. "Deflicker" (between separatefields and weave) is not working and has an inconvenient: it repeats the flash at the "lag" interval, i.e, if the frame n has a flash then in the frame n+lag the flash repeats, maybe because it failed at the frame n ...
The flashes pattern are (most of them): +- half of a field (say, bottom half), next field completely, the other (top) half of next field. My parameters:
deflicker(percent=99,scene=100,lag=10,info=true)
I made an avi of 2Mb, 100 frames, 180x480, in case you want to see it. I don't have a repository. Where can I download it? Can I send it to you?

Fizick
27th June 2004, 00:11
As I understand, you try decrease luma for frames (fields) with flashes. And you do not want use such frames as scene change, correct ? (Why ?)
Yes, in this case you set parameter "percent" correctly (high).
But you must also increase "lag" to prevent echo. And probably use very high "scenechange".
But is not main mode of my deflicker, it is good mostly for middle luma variation.
And current version can stabilize only global field luma,
not "half of a field" (it is strange for film ).

Do not send AVI to me. But register at some free WWW server, and put file there. I shall look at it.

cwolf
3rd July 2004, 13:03
Voilá: dali hospital (http://www.ceciliawolf.pop.com.br/dali hospital amostra.avi)

Fizick
4th July 2004, 16:34
You have very strange clip where some block of lines are bright , and some are dark.
If you really want improve it, you seems need not in global correction, but in local (at line base).
I have not such filter, and have not a time to write it.
But you may try to devide clip to about 120 clips with small height (by crop fuction), apply Deflicker to every one, and after that combine it together. May be it is similar to joke ;) , but see the draft of script:

separatefields()
a1=crop(0,0,720,2).deflicker(some parameters)
a2=crop(0,2,720,2).deflicker(some parameters)
...
a120=crop(0,238,720,2).deflicker(some parameters)
stackvertical(a1,a2,...,a120)
weave()


I never try such script! May be it will not work.
It must be slow. Apply it only to part of clip.
Probably, somebody may suggest the better method.
Or leave your video as it is.

AS
5th July 2004, 11:11
If there is a plugin which allows you to select arbitrary lines (similar to what scharfis requested) then that'd be an easier solution.

krieger2005
24th December 2005, 13:47
Hi Fizick,

i found it usefull to use fitlast-Parameter in Depanstabilisize. Since Deflicker also does not detect scenechanges correct it would be also usefull when deflicker would have some similar option. Is this possibile in future?

Also an other question: Does the filter also processing choma-flickering?

Fizick
24th December 2005, 15:22
1. I have no plan for it. Some scenechane detector is implemented.
2. chroma is not processed.

You can try improve it yourself. The source is GPL.