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 5th February 2006, 22:26   #1  |  Link
Osmiridium
A bit dense... :)
 
Join Date: Oct 2005
Location: Scotland, UK
Posts: 9
Another deflicker idea

Hiya people

Recently I've been struggling to get rid of flicker on a capture from an old local history video. If I haven't been using the existing filters properly - then my apologies to the authors.

Strong temporal smoothing was able to kill the flicker - but of course smoothed out way too much detail. But then an idea struck while reading about Fizick's EquLines filter. What if I used a super-smoothed clip merely as a reference - and fed the average luma for each line of this reference clip back into the source clip? I knocked together a little scriptette and plugin-ette to test this - and (for my video at least) it worked pretty well. Detail was preserved, and the flicker was very much reduced.

It may be of use to someone else - so here it is then. Each clip can be in YUY2 or YV12 format - but their heights must be the same. I should say I'm very much a video newbie, so I hope this hasn't all been done before.


Code:
LoadPlugin("wdeflicker.dll")

dodgy=AviSource("flickery_clip.avi")
smoothed=dodgy.TemporalSoften(5,40,40,70) # Smooth out any flicker

WDeflicker(dodgy,smoothed) # Deflicker clip "dodgy", using clip "smoothed"
Attached Files
File Type: zip wdeflicker.zip (19.5 KB, 1010 views)
Osmiridium is offline   Reply With Quote
Old 6th February 2006, 07:53   #2  |  Link
Mug Funky
interlace this!
 
Mug Funky's Avatar
 
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,555
you might want to try tsp's medianblurt as a smoother if you're only using if for averageluma. it'll be pretty slow though.

good idea.
__________________
sucking the life out of your videos since 2004
Mug Funky is offline   Reply With Quote
Old 24th April 2006, 11:53   #3  |  Link
O.S.D
Registered User
 
Join Date: Oct 2003
Posts: 15
Hi

I want to know what this means:

dodgy=AviSource("flickery_clip.avi")

and can i replace it? becouse if i use it the AviSource
get loaded twise and the filters before this filter getts bypassed.

O.S.D is offline   Reply With Quote
Old 26th April 2006, 10:56   #4  |  Link
Osmiridium
A bit dense... :)
 
Join Date: Oct 2005
Location: Scotland, UK
Posts: 9
Hiya O.S.D.

Sorry it's taken a day or two to get back to you. If I've understood what you're doing, you simply have to change the "dodgy=" line to:

Code:
dodgy=last
You might find it useful to play around a little with the TemporalSoften parameters (the values I gave seemed to work best on my particular clip). Or use Mug Funky's medianblurt suggestion instead of TemporalSoften. If your values are too strong dark horizontal lines may appear in scenes with high contrast.

I should remind you too that other deflicker filters are available, which may be more suited to your clip.
Osmiridium is offline   Reply With Quote
Old 6th June 2006, 21:00   #5  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,986
Worked VERY well for me. I was encoding Rebel Without a Cause (classic!) - an NTSC DVD that had been remastered very nicely. Excellent contrast and noise removal for such old film. Unfortunately, there was a lot of flickering, either as a byproduct of filtering, or the film itself.

WDeFlicker did the job perfectly, using the settings mentioned on this page. It's a little slow - full speed playback takes about 50% of my FX-55 equivalent, so encoding takes a little longer than usual, but it totally took care of the problem.

Encoding cropped anamorphic with AC3 audio to 1/2 DVD+R was transparent (perhaps superior), no other filtering. Very nice.

~MiSfit
__________________
These are all my personal statements, not those of my employer :)

Last edited by Blue_MiSfit; 7th June 2006 at 11:21.
Blue_MiSfit is offline   Reply With Quote
Reply

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 12:04.


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