View Full Version : Am I using the right filters when cleaning VHS footage (PAL)
leonid_makarovsky
6th January 2005, 06:41
After reading this forum for a while I copied the script from one of the recent posts. The script cleans the footage from VHS noise. The only thing I added on my own was Cnr2(clip). The VHS is PAL. Just wanna make sure I'm not missing anything or not putting anything extra. Also the The footage is in Huffyuv 704x576 file and I'm resizing it to half D1.
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Cnr2.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\2.0\LoadPluginEx2.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\2.0\DustV5.dll")
Import("I:\Leonid\Downloads\AVISynth\LimitedSharpen\LimitedSharpen.avsi")
clip = AVISource("PAL.avi")
clip = AssumeTFF(clip)
clip = Cnr2(clip)
clip = Undot(clip)
clip = PixieDust(clip)
clip = LimitedSharpen(clip)
clip = Undot(clip)
clip = LanczosResize(clip, 352, 576)
Some of the unclear parts are:
1. Was I supposed to put Cnr2 before and after Undot?
2. Having Undot twice is kind of confusing.
--Leonid
Someone also suggested using Convolution3d instead of first Undot.
Yuri
6th January 2005, 15:10
For VHS filtering I would strongly recommend considering:
cleaning filters:
------------------
removedirt() # a must if film footage is involved
DeGrainMedian(limitY=5,limitUV=10,mode=2) # optional
PixieDust(Limit=2) # almost a must for VHS filtering
FFT3DFilter(sigma=2) # surely a must for VHS filtering
hybridFupp(...) # should be checked out first for quality purposes
sharpness restoration filters:
------------------------------
LimitedSharpen(Lmode=2)
unfilter(50,0) # horizontal sharpening (optional)
As for CNR2 - try avoiding it because it produces ugly artefacts though cleans out colour noise pretty well. FFT3DFilter(sigma=2/3) is quite successful at colour noise filtering as well (thousands of thanks to Fizik - http://forum.doom9.org/showthread.php?s=&threadid=85790)
leonid_makarovsky
6th January 2005, 23:00
Originally posted by Yuri
For VHS filtering I would strongly recommend considering:
cleaning filters:
------------------
removedirt() # a must if film footage is involved
How would I know if it's a film footage or not? I know it's a concert filmed in London and I know that top a field and a bottom field are the same - so it's not interlaced.
>DeGrainMedian(limitY=5,limitUV=10,mode=2) # optional
What does it do?
So you're saying that FFT3DFilter will do parts what cnr2 is supposed to do, correct?
--Leonid
Socio
7th January 2005, 02:14
You can also try IIP it has done an amazing job on everything thing I have thrown at it.
It uses Pixedust so you could just replace Pixedust with IIP and still use the other plugins but I would give IIP a shot by it self first, you may not need anything else.
http://forum.doom9.org/showthread.php?s=&threadid=70916&perpage=20&pagenumber=1
theReal
7th January 2005, 03:09
How would I know if it's a film footage or not? I know it's a concert filmed in London and I know that top a field and a bottom field are the same - so it's not interlaced.If it's not interlaced you can be pretty sure it's film footage, however I don't believe too much film grain is left in a VHS recording so the removedirt() filter may not be necessary.
leonid_makarovsky
7th January 2005, 03:50
Originally posted by Socio
You can also try IIP it has done an amazing job on everything thing I have thrown at it.
Thank you. In description it says that it's for upconversion from DVD resolutions to HDTV resolutions. It doesn't say anything abou VHS.
From the description it looks like I don't need anything else. I don't need LimitedSharpen for instance, right?
--Leonid
Socio
7th January 2005, 05:18
Originally posted by leonid_makarovsky
Thank you. In description it says that it's for upconversion from DVD resolutions to HDTV resolutions. It doesn't say anything abou VHS.
From the description it looks like I don't need anything else. I don't need LimitedSharpen for instance, right?
--Leonid
Correct,
However if you like LimitedSharpen you can find a IIP/LimitedSharpen combo script in the LimitedSharpen Thread (http://forum.doom9.org/showthread.php?s=&threadid=84196) That version is the version I use but either produces remarkable results.
leonid_makarovsky
13th January 2005, 08:23
Originally posted by Yuri
For VHS filtering I would strongly recommend considering:
FFT3DFilter(sigma=2) # surely a must for VHS filtering
I've struggled with it for a while, but I can't seem to load this plugin. It just wouldn't load. Any clue? Thanks.
--Leonid
leonid_makarovsky
13th January 2005, 08:24
Originally posted by Socio
You can also try IIP it has done an amazing job on everything thing I have thrown at it.
I loaded all the plugins required, but when I imported iip.avsi, it said unsharpmask function is not found.
--Leonid
Didée
13th January 2005, 09:11
For running iiP, you need >this< (http://www.avisynth.org/warpenterprises/files/warpsharppackage_25_dll_20031103.zip) warpsharp.dll plugin.
Boulder
13th January 2005, 09:28
Originally posted by theReal
If it's not interlaced you can be pretty sure it's film footage, however I don't believe too much film grain is left in a VHS recording so the removedirt() filter may not be necessary.
However, VHS captures tend to be noisy so RemoveDirt will help greatly. I've been doing some VHS->DVD transfers lately and with RemoveGrain+RemoveDirt combo I can get very clean but not overfiltered video.
scharfis_brain
13th January 2005, 14:39
@Boulder: try you filter chain with an additional depaninterleave!
It will greatly improove the quality, because most stuff on video/film is panning zooming :)
Boulder
13th January 2005, 14:44
I'm not sure if it were useful as the material I've been transferring is some Finnish TV series from the late '80s and early '90s which have not yet been released on DVD yet. Or does the filter help with VHS picture always being slightly unstable?
scharfis_brain
13th January 2005, 14:52
depaninterleave
shifts (pan, rotate, zoom) predecessing and following frames around the current frame so they are matching it best.
this means, if there is a panning-only scene, all those frames are identical (exept the borders, of course)
this additional means, one is able to rais the noise-threshold and get a greatly improoved image.
read the documentation of depan.
it can explain this much better.
when it comes to denoising, I ALWAYS use depan. It is a MUST.
Boulder
13th January 2005, 14:58
Hmm, I have to play with it in the weekend. I still have some 12 hours of material to process:D
scharfis_brain
13th January 2005, 15:03
I still have some 12 hours of material to process
It won't become faster using depan ;)
Boulder
13th January 2005, 15:16
Unfortunately so true:D
The scheme looks very interesting. In fact it might be a killer way to deal with all my analogue caps, be it from cable or VHS. The fact that the processing gets quite slow doesn't matter that much as my clips are usually 50 minutes max.
leonid_makarovsky
13th January 2005, 16:32
By the way, do I need to apply different filters for NTSC VHS as compared to PAL VHS source?
--Leonid
Boulder
13th January 2005, 16:36
No, I don't think so -- except that GuavaComb probably works best with NTSC sources and you might also be able to IVTC the clips to get progressive output.
leonid_makarovsky
13th January 2005, 16:39
Originally posted by Didé¥_
For running iiP, you need >this< (http://www.avisynth.org/warpenterprises/files/warpsharppackage_25_dll_20031103.zip) warpsharp.dll plugin.
You know I was trying to load it and struggled with this for couple of hours before I gave up. It just wouldn't load.
I copied it to avisynth/plugin directory. Wouldn't load.
Then I also copied LoadPluginEx.dll to plugin directory. Then LoadPluginEx.dll wouldn't load. Then I tried to load it from package directory. Nothing would load. Then I gave up and loaded warpsharp_25_dll_20030103, but obviously it didn't work. Any help is appreciated. I run AVISynth 2.5.
--Leonid
Boulder
13th January 2005, 16:46
You must remove all the WarpSharp and LoadPluginEx plugins from the autoloading plugins directory. Place the plugin Didée pointed you to to a separate directory and use LoadPlugin in your script. That's how I got it to work.
leonid_makarovsky
13th January 2005, 16:52
Originally posted by Boulder
You must remove all the WarpSharp and LoadPluginEx plugins from the autoloading plugins directory. Place the plugin Did饟pointed you to to a separate directory and use LoadPlugin in your script. That's how I got it to work.
Originally neither WarpSharp nor LoadPluginEx were in my plugin directory. Are you saying that I need to copy warpsharp.dll to a completely separate directory alone *WITHOUT* LoadPluginEx.dll and try to load it? I'll give it a shot at home. Also what parameters would you recommend for just a VHS source footage for:
1. Progressive PAL (352x576)
2. Interlaced PAL
3. Interlaced NTSC (704x480)
--Leonid
Boulder
13th January 2005, 16:59
I'm not 100% sure but I think that the WarpSharp dll includes a working LoadPluginEx function so you'll just need to load that one. Autoloading any WarpSharp plugin has never worked for me.
What comes to the scripts, there's a huge amount of information regarding VHS processing. I suggest you use the search..however, I've been using only RemoveGrain(mode=5,modeU=2).RemoveDirt(mthreshold=100,cthreshold=30) for denoising. Plus all the normal stuff like cropping and resizing and treating interlaced material properly.
leonid_makarovsky
13th January 2005, 17:20
Originally posted by Boulder
I'm not 100% sure but I think that the WarpSharp dll includes a working LoadPluginEx function so you'll just need to load that one. Autoloading any WarpSharp plugin has never worked for me.
So basically I create a separate directory say C:\MyWarpSharp and put warpsharp.dll alone there and load from there, right? I'm not at home now so I can't try. Therefore I asked.
What comes to the scripts, there's a huge amount of information regarding VHS processing. I suggest you use the search..however, I've been using only RemoveGrain(mode=5,modeU=2).RemoveDirt(mthreshold=100,cthreshold=30) for denoising. Plus all the normal stuff like cropping and resizing and treating interlaced material properly.
I don't think I have any grain. My VCR has different modes for output. It has Auto, Edit, Sharp, Soft if autotracking is on. If autotracking is off it has Norm, Edit, Sharp, Soft. I usually put autotracking on and use either Auto or Sharp. It gives the better picture to my eyes. Edit mode is when no filtering done to the footage inside VCR. But then I see bunch of blue doted lines in the footage (in Edit mode). When I use Auto or Sharp, sometimes there are blue and green shaped areas (noise) that move around from frame to frame. That noise is what I want to remove. Is it what is referred as Chroma noise? Actually PixieDust does the job. At least I see the static objects look a like from frame to frame.
--Leonid
Didée
13th January 2005, 17:33
It was a long time ago when I captured something from VHS. iiP didn't even exist then. So the following is just a wild guess:
SetMemoryMax( [50% of RAM] )
#
# Can be autoloaded:
LoadPlugin("C:\Anwendungen\AviSynth 2.5\mpeg2dec3.dll")
LoadPlugin("C:\Anwendungen\AviSynth 2.5\unfilter.dll") #
LoadPlugin("C:\Anwendungen\AviSynth 2.5\undot.dll") #
LoadPlugin("C:\Anwendungen\AviSynth 2.5\masktools.dll") # All these plugins
# Should not // can not be autoloaded:
LoadPlugin("C:\Anwendungen\AviSynth 2.5\warpsharp.dll") #
LoadPlugin("C:\Anwendungen\AviSynth25\LoadPluginEx.dll") # are REQUIRED!
LoadPlugin("C:\Anwendungen\AviSynth2\dustv5.dll") #
#-----------------------------------------------------------------
Import("path\to\iiP.avs")
#-----------------------------------------------------------------
mpeg2source("path\to\your\source.d2v")
crop(whatever, true)
iip( dest_x = xx, dest_y = yy,
\ duststr = 4, dustweight = 1.0,
\ ss1_x = 1.33, ss1_y = 1.66,
\ detailcontr1 = 127, detailcontr2 = 208,
\ contr_radius = 3, PixSharp = 0.3,
\ ss2_x = 2.5, ss2_y = 3.5,
\ Xstren = 208, Xlimit = 255,
\ subpelstren = 0.0, flatweight = 0,
\ antiflicker1 = true, antiflicker2 = true,
\ protect_floor= 0, protect_bias = 12,
\ dering = -100, dering_weight= 1.0,
\ dering_floor = 8, dering_bias = 12,
\ detail_floor = 24,
\ EQ = 2, exborder = false,
\ warp_Y = true, warp_UV = true,
\ debug="dering | protect | detail | compareH | compareV | compareT | showall",
\ cropx = 40, cropy = 20
\ )
return( last )
Boulder
13th January 2005, 17:35
Originally posted by leonid_makarovsky
So basically I create a separate directory say C:\MyWarpSharp and put warpsharp.dll alone there and load from there, right? I'm not at home now so I can't try. Therefore I asked.
Exactly.
I don't think I have any grain.
The name of the filter may suggest that it can only be used against film grain but RemoveGrain is actually a spatial denoiser. RemoveDirt is also a denoiser, it's a temporal one.
Chroma noise is noise in the chroma channel (chroma=colors, luma=brightness to put it simply). If you want to see some chroma noise, install ffdshow and play some AVI file in a media player. You can make ffdshow produce chroma noise on the video. It's not exactly what you might have in your capture but it will give you some clues.
Socio
16th January 2005, 01:58
Here is a zip with three cab's in the cab's are three versions of the LoadpluginEX.dll
The Warpsharp 2003_1103.cab has the LoadpluginEX that works for me, it also has a warpsharp.dll in it.
Warpsharp cab zip (http://www.geocities.com/wilbertdijkhof/ws.zip)
leonid_makarovsky
16th January 2005, 08:31
Originally posted by Socio
Here is a zip with three cab's in the cab's are three versions of the LoadpluginEX.dll
The Warpsharp 2003_1103.cab has the LoadpluginEX that works for me, it also has a warpsharp.dll in it.
Warpsharp cab zip (http://www.geocities.com/wilbertdijkhof/ws.zip)
Yes, I did have this version. I copied your version 2003_1103.cab and it's identical to what I have. I created a separate directory. Copied warpsharp.dll there alone and then tried to load warpsharp.dll from there. Open failure. I even re-installed the latest AVISynth. Didn't help. Then I tried to load LoadPluginEx.dll from WarpSharpPackage directory. Couldn't load. I also tried to load avsshifter.dll. Also couldn't load. I don't know what's going on, but I'm just unable to load this warpsharp.dll.
--Leonid
Didée
16th January 2005, 16:50
leonid_makarovsky:
To be able to use the filters in that warpsharp packe, the following DLLs *must* be present in your /system32 directory:
- msvcr70.dll
- msvcr71.dll
- msvcp71.dll
If these are not in your Windows directory, you have to get them. It just won't work without these.
leonid_makarovsky
16th January 2005, 19:53
Originally posted by Didée
leonid_makarovsky:
To be able to use the filters in that warpsharp packe, the following DLLs *must* be present in your /system32 directory:
- msvcr70.dll
- msvcr71.dll
- msvcp71.dll
If these are not in your Windows directory, you have to get them. It just won't work without these.
Thanks a lot. I didn't have msvcp71.dll in my Windows/System32 directory. Now it works. I don't have msvcr70.dll and it works without it.
I tried iip (I blindly copied your "wild guess" parameters for VHS. So I had this:
clip = iip( clip, dest_x = 704, dest_y = 480,
\ duststr = 4, dustweight = 1.0,
\ ss1_x = 1.33, ss1_y = 1.66,
\ detailcontr1 = 127, detailcontr2 = 208,
\ contr_radius = 3, PixSharp = 0.3,
\ ss2_x = 2.5, ss2_y = 3.5,
\ Xstren = 208, Xlimit = 255,
\ subpelstren = 0.0, flatweight = 0,
\ antiflicker1 = true, antiflicker2 = true,
\ protect_floor= 0, protect_bias = 12,
\ dering = -100, dering_weight= 1.0,
\ dering_floor = 8, dering_bias = 12,
\ detail_floor = 24,
\ EQ = 2, exborder = false,
\ warp_Y = true, warp_UV = true,
\ debug="dering | protect | detail | compareH | compareV | compareT | showall",
\ cropx = 40, cropy = 20
\ )
clip = convertToYUY2(clip)
clip = LimitedSharpen(clip)
Yes, I used LimitedSharpen after iip and it gave *MUCH* sharper image. It looks so incredible I can't believe it.. The footage I'm using right now is NTSC interlaced off of VHS.
One thing though. It looks like it outputs in YV12 colorspace. My input is YUY2 and I need the same thing on output. Is there any version that doesn't convert to YV12 and not using YV12 at all? I actually tried to tamper with your iip.avsi source to replace YV12 with YUY2, but obviously I failed. I'm not advanced at avisynth libraries. So if you have any version that works purely with RGB or YUY2, I'd love to get it. Thank you.
And yet one other thing. Do I need to use undot after limitedsharpen or not?
--Leonid
Socio
17th January 2005, 22:19
Too many plugins need YV12 so getting something that can do what IIP can do strictly staying in YUY2 will be pretty difficult maybe even impossible. I would stick with IIP and just convert it to YUY2 after. With VHS you would probably not even notice a difference anyway.
Socio
17th January 2005, 22:41
I did some VHS stuff over the weekend using version 5 of Didee’s IIP and the settings that Didee posted above. Here are some pics that demonstrate the amazing power of IIP. The first pic is unfiltered, the second just IIP. The third pic is where I took it one step further and I added Fizick's DeFreq at DeFreq(fx=30,fy=-40) before IIP and Sh0dan's MipSmooth at MipSmooth(preset="MovieLQ")after IIP to smooth out the image a bit.
IIP no doubt takes longer than most anything else but the outcome is well worth it at least for me anyway.
Unfilterd image
http://img17.exs.cx/img17/848/vhsnorm1ri.jpg
Cropped and processed with IIP using Didees posted settings
http://img17.exs.cx/img17/637/vhsiip3pk.jpg
Cropped, and processed with DeFreq, IIP, and MipSmooth
http://img17.exs.cx/img17/1115/vhsmip2cv.jpg
leonid_makarovsky
17th January 2005, 22:58
Originally posted by Socio
The first pic is unfiltered, the second just IIP.
Well, the first picture shows the woman with a skin problem. :D Perhaps too much suntan and then the skin falls off. So if the movie maker intended to show an ill woman will IIP cure her? :) :)
--Leonid
scharfis_brain
17th January 2005, 23:16
somehow, the first image doesn't look like typical noisy VHS-stuff.
it looks like it has been compressed heavily. (lots of blocks!)
Dreassica
17th January 2005, 23:21
the jpg also has dvd framesize, either its dvd source or he just resized it, but then it wouldnt be "unfiltered" anymore.
Socio
17th January 2005, 23:47
It is the movie Phenomenon on VHS captured via NeroVision Express video capture software from the s-video in on my PCTV card. I used the DVD compliant template in NeroVision when capturing it thus the DVD frame size, this makes it easier to burn to DVD after processing.
leonid_makarovsky
17th January 2005, 23:50
Originally posted by Socio
It is the movie Phenomenon on VHS captured via NeroVision Express video capture software from the s-video in on my PCTV card. I used the DVD compliant template in NeroVision when capturing it thus the DVD frame size, this makes it easier to burn to DVD after processing.
So you captured it in MPEG-2 or into AVI?
--Leonid
Socio
17th January 2005, 23:56
Mpeg2, .mpg to be exact.
scharfis_brain
18th January 2005, 00:06
capture lossless.
you'll get much more natural images!
theReal
18th January 2005, 19:06
Lossless or at least high quality MJPEG - capturing to MPEG2 directly is very lossy because of the realtime compression.
Mpeg2, .mpg to be exact.MPEG2 is more exact than ".mpg" (which could be any MPEG, 1 or 2)
Socio
21st January 2005, 01:37
I re-captured the VHS movie using RGB24 instead of YUY2 and then exported it from Nerovision as a high quality progressive Mpeg2 and got a much cleaner image. I ran it though IIP then did the mipsmooth (watching live video it really did not need it) and now the VHS turned DVD looks real good. I updated the pics in my previous post to reflect the new capture. It still shows if you have a crappy VHS capture IIP can do wonders for it.
Side note: I watched the filterd movie via Intervideo's WinDVD6 , then I kicked in something called TrimensionDNM and it made the movie look DVD quality. If someone wants to create a kick butt Avisynth filter just figure out what that WinDVD'6's TrimensionDNM filter does and make one for Avisynth.:D
leonid_makarovsky
21st January 2005, 01:45
Originally posted by Socio
I re-captured the VHS movie using RGB24 instead of YUY2 and then
I can't capture in RGB24. I will lose frames. Plus my TV Tuner card is 4:2:2 and it doesn't support 4:4:4. I believe Huffyuv compression with YUY2 is good enough.
I actually did try capturing uncompressed with Hauppauge WinTV Go one time and remember that it gave me worse image than combination of YUY2 and Huffyuv codec.
exported it from Nerovision as a high quality progressive Mpeg2 and got a much cleaner image. I ran it though IIP then did the mipsmooth (watching live video it really did not need it) and now the VHS turned DVD looks real good. I updated the pics in my previous post to reflect the new capture. It still shows if you have a crappy VHS capture IIP can do wonders for it.
Do you happen to have an AVISynth code that you used? Can you post it?
I actually tried to compare iip to fft3dfilter. I believe I will be going with fft3dfilter. I used iip and at some point I noticed that a few frames had very ugly artifacts. I can post the pictures. Maybe I didn't supply the correct setting. I used it for NTSC video. IIP gives a sharper image than fft3dFilter.
--Leonid
Socio
21st January 2005, 03:57
What code do you want, the call script or the IIP that I used?
Also fft3dFilter is a denoiser and it is about as slow maybe slower than IIP, I would have to test it again to be sure. IIP is a denoiser and sharpener. So if you use fft3dFilter you would probably need to use LimitedSharpen after the fft3dFilter to get some good sharpening.
leonid_makarovsky
21st January 2005, 05:24
Originally posted by Socio
What code do you want, the call script or the IIP that I used?
The call script. What parameters you call iip with. And just the whole source file dot avs.
Also fft3dFilter is a denoiser and it is about as slow maybe slower than IIP, I would have to test it again to be sure. IIP is a denoiser and sharpener. So if you use fft3dFilter you would probably need to use LimitedSharpen after the fft3dFilter to get some good sharpening.
Here is the unfiltered frame:
http://us.geocities.com/leonid_makarovsky/Temp/original.JPG
Here's the iip frame with the following code:
Import("iip.avsi")
Import("LimitedSharpen.avsi")
clip = AVISource("L:\Starlicks.avi")
clip = AssumeTFF(clip)
clip = iip(clip, dest_x = 704, dest_y = 480,
\ duststr = 4, dustweight = 1.0, ss1_x = 1.33, ss1_y = 1.66,
\ detailcontr1 = 127, detailcontr2 = 208, contr_radius = 3,
\ PixSharp = 0.3, ss2_x = 2.5, ss2_y = 3.5,
\ Xstren = 208, Xlimit = 255, subpelstren = 0.0, flatweight = 0,
\ antiflicker1 = true, antiflicker2 = true,
\ protect_floor= 0, protect_bias = 12,
\ dering = -100, dering_weight= 1.0, dering_floor = 8, dering_bias = 12,
\ detail_floor = 24, EQ = 2, exborder = false,
\ warp_Y = true, warp_UV = true,
\ debug = "dering | protect | detail | compareH | compareV | compareT | showall",
\ cropx = 40, cropy = 20)
clip = convertToYUY2(clip)
clip = LimitedSharpen(clip)
return clip
http://us.geocities.com/leonid_makarovsky/Temp/iip.JPG
Now if you notice, there's something wrong with colors and shades on the face. It's too contrast as if there's a special cinematograph effect. Doesn't look natural.
Here's the shot with fft3dfilter with the following code:
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\2.0\LoadPluginEx2.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\2.0\DustV5.dll")
Import("LimitedSharpen.avsi")
clip = AVISource("L:\Starlicks.avi")
clip = AssumeTFF(clip)
clip = PixieDust(clip)
clip = convertToYV12(clip)
clip = fft3dfilter(clip, sigma = 2)
clip = convertToYUY2(clip)
clip = LimitedSharpen(clip)
return clip
http://us.geocities.com/leonid_makarovsky/Temp/fft3dfilter.JPG
If you notice that I'm not doing a right thing, please let me know.
--Leonid
Socio
21st January 2005, 05:51
I see, for the color try adding ColorMatrix in to the mix, if you do not want to use mipsmoother just remove it, or you want to use it but it smoothes to much change it to MovieHQ.
Change the SetMemoryMax to half your ram as per Didee's instructions.
Here is what I used, a combo of defreq,IIP,mipsmooth, and colormatrix:
SetMemoryMax(512)
Import("C:\Program Files\AviSynth 2.5\plugins\IIP.avs")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MipSmooth.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\defreq.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\undot.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MaskTools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\WarpSharp.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\UnFilter.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\colormatrix.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\LoadPluginEx.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\dustv5.dll")
DeFreq(fx=30,fy=-40)
iip( duststr = 4, dustweight = 1.0,
\ ss1_x = 1.33, ss1_y = 1.66,
\ detailcontr1 = 127, detailcontr2 = 208,
\ contr_radius = 3, PixSharp = 0.3,
\ ss2_x = 2.5, ss2_y = 3.5,
\ Xstren = 208, Xlimit = 255,
\ subpelstren = 0.0, flatweight = 0,
\ antiflicker1 = true, antiflicker2 = true,
\ protect_floor= 0, protect_bias = 12,
\ dering = -100, dering_weight= 1.0,
\ dering_floor = 8, dering_bias = 12,
\ detail_floor = 24,
\ EQ = 2, exborder = false,
\ warp_Y = true, warp_UV = true,
\ debug="dering | protect | detail | compareH | compareV | compareT | showall",
\ cropx = 40, cropy = 20
\ )
return( last )
MipSmooth(preset="MovieLQ")
ColorMatrix()
Boulder
21st January 2005, 06:07
Originally posted by leonid_makarovsky
I can't capture in RGB24. I will lose frames. Plus my TV Tuner card is 4:2:2 and it doesn't support 4:4:4. I believe Huffyuv compression with YUY2 is good enough.
I actually did try capturing uncompressed with Hauppauge WinTV Go one time and remember that it gave me worse image than combination of YUY2 and Huffyuv codec.
You should definitely get the best quality from YUY2 HuffYUV. It's completely lossless and YUY2 is the native colorspace of the card. If I remember correctly, RGB data is actually converted from YUY2 which the capture card captures in.
Socio
21st January 2005, 17:51
leonid,
If you want better sharpening you can try these settings, this turns off IIP's sharpening and uses Limitedsharpen in it's place.
SetMemoryMax(512)
Import("C:\Program Files\AviSynth 2.5\plugins\IIPX.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MipSmooth.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\defreq.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\undot.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MaskTools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\WarpSharp.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\UnFilter.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\colormatrix.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\LoadPluginEx.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\dustv5.dll")
DeFreq(fx=30,fy=-40)
iip( duststr = 4, dustweight = 1.0,
\ ss1_x = 1.33, ss1_y = 1.66,
\ detailcontr1 = 127, detailcontr2 = 208,
\ contr_radius = 3, PixSharp = 0.3,
\ ss2_x = 2.5, ss2_y = 3.5,
\ Xstren = 0, Xlimit = 255,
\ subpelstren = 0.0, flatweight = 0,
\ antiflicker1 = true, antiflicker2 = true,
\ protect_floor= 0, protect_bias = 12,
\ dering = -100, dering_weight= 1.0,
\ dering_floor = 8, dering_bias = 12,
\ detail_floor = 24,
\ EQ = 2, exborder = false,
\ warp_Y = true, warp_UV = true,
\ debug="dering | protect | detail | compareH | compareV | compareT | showall",
\ cropx = 40, cropy = 20
\ )
return( last )
LimitedSharpen( ss_x=1.5, ss_y=1.5,
\ Smode=3, strength=40, radius=2,
\ Lmode=1, wide=false, overshoot=1,
\ soft=false, edgemode=0, special=false,
\ exborder=0 )
MipSmooth(preset="MovieLQ")
ColorMatrix()
leonid_makarovsky
24th January 2005, 15:10
Thank you guys. I'll try tonight.
--Leonid
Socio
24th January 2005, 15:40
I mentioned TrimensionDNM a couple posts up and thought I would post a link to the TrimensionDNM site so everyone here would know what I am referring to in that post. You can also download a demo in their download section, it’s pretty interesting stuff.
http://www.trimension.com/
leonid_makarovsky
27th January 2005, 20:24
Socio,
I tried your settings. Fft3d denoiser and iip were very very close. Yet, I still saw a bit of artifacts with iip. So I guess I will most likely will go with fft3d. However, iip does give a sharper image. I use PixieDust followed by fft3d followed by LimitedSharpen. One other good thing about fft3d was that it uses previous and next frames. And I notice if there're static objects, they look identical on previous and next frames. On VHS where you have the noise and the noise is different when you advance to the next frame, there's nothing like that with fftdenoiser combined with PixieDust.
One other thing I may try is not to use PixieDust, but to use IIP with your settings followed by fft3d denoiser followed by LimitedSharpen. What do you think of this idea? But that's going to be really really slow.
--Leonid
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.