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 7th October 2011, 17:04   #1  |  Link
VideoFanatic
Registered User
 
Join Date: Sep 2011
Posts: 241
Please suggest a script that will Auto Fix Black & White Levels

I have a 1 hour 20 minute 720 x 480 interlaced wrestling video. The video was from a 15 year old VHS tape transferred to DVD. I then demuxed the DVD into an MPEG2 file. I tried MCTemporalDenoise with this script:

Code:
McTemporalDenoise(settings="medium", interlaced=true)
However that takes over 24 hours! If I try and output my video without that script it takes about 2 hours.

Is there any way I can just use specific settings of McTemporalDenoise to auto fix the black and white levels or is there another script or plugin that can achieve this?

It must take less than 4 hours.

Last edited by VideoFanatic; 8th October 2011 at 01:45.
VideoFanatic is offline   Reply With Quote
Old 7th October 2011, 18:51   #2  |  Link
Mounir
Registered User
 
Join Date: Nov 2006
Posts: 773
fft3dfilter is not good enough ? with the gpu version you could denoise great and fast imo.

for the black/white levels no idea, i prefer a manual method
Mounir is offline   Reply With Quote
Old 7th October 2011, 18:54   #3  |  Link
VideoFanatic
Registered User
 
Join Date: Sep 2011
Posts: 241
I couldn't get fft3dfilter to work. Could you please suggest a script for it?
VideoFanatic is offline   Reply With Quote
Old 7th October 2011, 21:25   #4  |  Link
Mounir
Registered User
 
Join Date: Nov 2006
Posts: 773
Something like that:

fft3dfilter(sigma=2.0,sigma2=4.0,sigma3=7.0,sigma4=8, bt=1, bw=16, bh=16, ow=8, oh=8,plane=1, sharpen=0.0,interlaced=false,dehalo=0.0) # Chroma U
fft3dfilter(sigma=2.0,sigma2=1.5,sigma3=4.0,sigma4=4.0, bt=1, bw=16, bh=16, ow=8, oh=8,plane=2, sharpen=0.0,interlaced=false,dehalo=0.0) # Chroma V
fft3dgpu(bt=3,sigma=1.5,sigma2=1.4,sigma3=2.0,sigma4=9.0,bw=32,bh=32,ow=16,oh=16,sharpen=0,plane=0,mode=1,precision=2,interlaced=false,oldfft=false) # Luma
It's best to filter U,V,Y separately imo
Mounir is offline   Reply With Quote
Old 7th October 2011, 21:31   #5  |  Link
Reuf Toc
Registered User
 
Join Date: Feb 2007
Posts: 65
Are you sure you need such a strong denoiser (talking about MCTemporalDenoise) ?
Plus, it doesn't have for (main) purpose to correct the black and white level as far as I know.

For level correction, you can try AutoLevels.
Reuf Toc is offline   Reply With Quote
Old 7th October 2011, 21:37   #6  |  Link
VideoFanatic
Registered User
 
Join Date: Sep 2011
Posts: 241
Quote:
Something like that:

fft3dfilter(sigma=2.0,sigma2=4.0,sigma3=7.0,sigma4=8, bt=1, bw=16, bh=16, ow=8, oh=8,plane=1, sharpen=0.0,interlaced=false,dehalo=0.0) # Chroma U
fft3dfilter(sigma=2.0,sigma2=1.5,sigma3=4.0,sigma4=4.0, bt=1, bw=16, bh=16, ow=8, oh=8,plane=2, sharpen=0.0,interlaced=false,dehalo=0.0) # Chroma V
fft3dgpu(bt=3,sigma=1.5,sigma2=1.4,sigma3=2.0,sigma4=9.0,bw=32,bh=32,ow=16,oh=16,sharpen=0,plane=0,mode=1,precision=2,interlaced=false,oldfft=false) # Luma
It's best to filter U,V,Y separately imo
Thanks, I'll give that a try. How much faster is the GPU version? Will the code you suggested work for that version?

I noticed that you set interlaced to false but my footage is interlaced. Is false correct and why?

Last edited by VideoFanatic; 7th October 2011 at 21:48.
VideoFanatic is offline   Reply With Quote
Old 7th October 2011, 21:56   #7  |  Link
VideoFanatic
Registered User
 
Join Date: Sep 2011
Posts: 241
Quote:
Originally Posted by Reuf Toc View Post
Are you sure you need such a strong denoiser (talking about MCTemporalDenoise) ?
Plus, it doesn't have for (main) purpose to correct the black and white level as far as I know.

For level correction, you can try AutoLevels.
Yes I need a strong denoiser. McTemporalDenoise does fix the black levels as I've tried it.

Have you tried Autolevels yourself. Does it always work on all your videos?

I need something that I can use on all my videos whether they need fixing or not. I don't have the time to manually check which videos need the colours fixed.

I'm not sure but I think I've looked at comments about that Autolovels script as well as others and they seem to say that they don't always work, that's why I was asking about using McTemporalDenoise just for black level correction as I think that always works.
VideoFanatic is offline   Reply With Quote
Old 8th October 2011, 00:16   #8  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,406
I think it is safe to say that nothing always works.
Asmodian is offline   Reply With Quote
Old 8th October 2011, 15:52   #9  |  Link
VideoFanatic
Registered User
 
Join Date: Sep 2011
Posts: 241
Quote:
Originally Posted by rean View Post
holygamer, see my thread for DenoiseMF for test results. A single replacement of FFT3DFilter to FFT3dGPU is 8x faster on my i7 and video card (5fps and 45 fps). But in a complex script with many filters it will be decreased.
So is that just for denoising or can I just use specific settings to fix black levels. Do I use all that code? It's a bit much to take in!
VideoFanatic is offline   Reply With Quote
Old 8th October 2011, 17:12   #10  |  Link
Mounir
Registered User
 
Join Date: Nov 2006
Posts: 773
for autolevels (white) there is coloryuv see Here but it's not that good as far as i know
Mounir is offline   Reply With Quote
Old 11th October 2011, 22:20   #11  |  Link
Motenai Yoda
Registered User
 
Motenai Yoda's Avatar
 
Join Date: Jan 2010
Posts: 709
Quote:
Originally Posted by holygamer
You seem to know the right settings to get specific things done quickly. I was wondering if you might also know the answer to my question in this thread about black levels?
[Yoda MODE On]
Limited, dynamic in yv12 colorspace is: To 235 for luma y plane from 16, and to 240 for chroma u e v planes from 16.
On playing, stretched to 0/255, dynamic is.
If you filter expanding the dynamic, anything it will be clipped and you solve not, except losing highlight and shadow details.
On decoder, player and vga driver options instead check.
[Yoda MODE Off]
Motenai Yoda is offline   Reply With Quote
Reply

Tags
auto, black, levels, mctemporaldenoise, white

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:06.


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