Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 15th January 2022, 09:25   #1  |  Link
doctorkhv
Registered User
 
Join Date: Mar 2019
Posts: 48
Very difficult deflicker

What kind of deflicker to fix such a video?
https://drive.google.com/file/d/1tqX...ew?usp=sharing
doctorkhv is offline   Reply With Quote
Old 15th January 2022, 11:17   #2  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
In AviSynth you can try with
Code:
deflicker()
descratch()
spotless()
Don't overdo though in order not to destroy details and the vintage look

Left: original
Right: deflicked
https://www.mediafire.com/file/e0y1x...icked.mp4/file

Last edited by Sharc; 15th January 2022 at 11:40. Reason: link added
Sharc is offline   Reply With Quote
Old 15th January 2022, 11:52   #3  |  Link
doctorkhv
Registered User
 
Join Date: Mar 2019
Posts: 48
Not bad, but:

1. Changed color space.
probably https://forum.doom9.org/showthread.php?t=175401

2. The flickering of three large spots on the right has not been eliminated.
doctorkhv is offline   Reply With Quote
Old 15th January 2022, 18:00   #4  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,345
Quote:
Originally Posted by doctorkhv View Post

1. Changed color space.
probably https://forum.doom9.org/showthread.php?t=175401

The actual "colorspace" does not change , it's probably your method of viewing

Your provided source file was untagged 4:2:0 , but at 1440x1080 - so many programs will assume 709 for the RGB display conversion because the height is >576

Sharc's was resized to 1440x540 ,but the encoding was also untagged . Many programs will use 601 instead of 709 for the display conversion, because the height is 540 (<576).

If you are encoding a file you can tag the proper colorimetry flags. Depending on your workflow and programs, there might be other considerations as well, you'd have to provide more info
poisondeathray is offline   Reply With Quote
Old 15th January 2022, 19:02   #5  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,691
One seldom-discussed method to suppress flicker is to use DCT=1 in the MAnalyze line when using MDegrain to reduce noise. When used after Deflicker you often get extremely good results. I use this on film sources all the time. I've queued up this link to take you directly to a "before/after" which shows flicker reduction:

https://www.youtube.com/watch?v=tBAHzO7rJS0&t=115s

Here is the code I use (in addition to a Deflicker call):

Code:
  prefiltered = RemoveGrain(stabcrop,2)
  superfilt =   MSuper(prefiltered, hpad=32, vpad=32,pel=2)
  super=        MSuper(stabcrop, hpad=32, vpad=32,pel=2)

  halfblksize= (block_size>4)   ? block_size/2 : 4
  halfoverlap= (block_over>2)   ? block_over/2 : 2

  bvec1 =  MAnalyse(superfilt, isb = true,  delta = 1, blksize=block_size, overlap=block_over,dct=1)
  bvec1 =  MRecalculate(super, bvec1, blksize=halfblksize, overlap=halfoverlap,thSAD=100) 

  fvec1 =  MAnalyse(superfilt, isb = false, delta = 1, blksize=block_size, overlap=block_over,dct=1)
  fvec1 =  MRecalculate(super, fvec1, blksize=halfblksize, overlap=halfoverlap,thSAD=100)

  bvec2 =  MAnalyse(superfilt, isb = true,  delta = 2, blksize=block_size, overlap=block_over,dct=1)
  bvec2 =  MRecalculate(super, bvec2, blksize=halfblksize, overlap=halfoverlap,thSAD=100)

  fvec2 =  MAnalyse(superfilt, isb = false, delta = 2, blksize=block_size, overlap=block_over,dct=1)
  fvec2 =  MRecalculate(super, fvec2, blksize=halfblksize, overlap=halfoverlap,thSAD=100)

  denoised=stabcrop.MDegrain2(super, bvec1,fvec1,bvec2,fvec2,thSAD=denoising_strength).levels(0,gamma,255,0,255).tweak(sat=saturation).unsharpmask(PRE_sharp_ness,PRE_radi_us,0)
johnmeyer is offline   Reply With Quote
Old 15th January 2022, 23:19   #6  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,531
Good work, John !
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."
Emulgator is offline   Reply With Quote
Old 16th January 2022, 07:36   #7  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
John,
Code:
super=        MSuper(stabcrop, hpad=32, vpad=32,pel=2,Levels=1)
I think you can add the levels=1 thing above, maybe a bit faster.
(All levels only needed for MAnalyse() on Superfilt, there is no MAnalyse() on Super clip)
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 16th January 2022, 16:22   #8  |  Link
lansing
Registered User
 
Join Date: Sep 2006
Posts: 1,657
There is Neat Video
https://www.youtube.com/watch?v=r_F6D5lvB3I
lansing is offline   Reply With Quote
Reply

Tags
deflicker, difficult deflicker

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 14:28.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.