Log in

View Full Version : VHS clean-up - AVS scripts


chipzoller
20th December 2005, 07:48
I'm in the process of reading the guides on capture and editing, but it's very difficult going since I'm still not an expert with AVISynth. I wanted to post some screen shots of the VHS I captured (using Huffyuv) in hopes someone could tell me what the best course of action I might take, point me in the right starting direction rather. As far as I can tell, they look ok. I know I have to do some noise filtering and a bit of cropping on the bottom to remove that inherent vhs blur.

Thanks for any help,


Chip

Guest
20th December 2005, 13:02
Please read and follow forum rules, specifically, rule 12: do not ask what's best. Thank you.

chipzoller
23rd December 2005, 06:49
Then I shall rephrase my question in a form that is not in violation of rule 12:

Based on the attached screen shots, can someone (or people) post an example AVS that could address the issues visually present? I ask this to see examples of some others AVS scripts that handle analog VHS captures so that I can understand filter priority and usage, and to create a model of my own. At this point, having never done this before and wanting to make the video as good as possible, reading the AVISynth manual (which really is mostly a glossary or index of available commands) is useless until I know how to apply filters.

I plan on frameserving this through the TMPGEnc DVD Source Creator eventually to be created into a DVD. By the way, does anyone know if this will frameserve AVS scripts? I couldn't find it on their site.

thanks,


Chip

Revgen
23rd December 2005, 09:07
The Pics you show contain the following.

Rainbows - Check out this thread (http://forum.doom9.org/showthread.php?t=102162) and this thread. (http://forum.doom9.org/showthread.php?t=103191)

Frequency Noise - Try using DeFreq (http://forum.doom9.org/showthread.php?t=82978)

Noise - Many different denoisers to choose from. I'd try taking a look at FFT3DFilter. (http://forum.doom9.org/showthread.php?t=85790)

Your pics are quite small, so there could be some things that I may have missed.

Second of all, all analog captures are different, there is no specific way to deal with all of them. One AVS script may work for one capture while another needs an entirely different script to deal with the problems. You'll just have to experiment to find out what works.


Also, make sure to use the MakeAVIS tool included with FFDshow to turn AVS files into fake AVI files to fool TMPGEnc to encode them.

chipzoller
23rd December 2005, 16:39
Ok, thanks for the starter. I'm having a couple of problems right away.
In my script (which I have thus far):
AVISource("H:\goldeneye.avi")

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\despot.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MSharpen.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MaskTools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MipSmooth.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\defreq.dll")

ConvertToYV12()

DeFreq(show, info)

DeRainbow(10)

ChromaShift(C=-6)

DeSpot(p1=35, p2=14, mthres=25)

I don't see what you mean by MakeAVIS took in FFDShow. I downloaded it but saw nothing like that in it (version from 2002 on SourceForge).

Also, and I apologize for the stupidness of this question. But I'm not sure if when I captured this VHS if I captured it interlaced. I think it's progressive, but am unsure how to be certain. I also captured in YUY2 format, but to use some of these filters I'll have to convert to YV12, I think.

This is really difficult to follow all this stuff when I'm not a video expert or advanced coder, so if any of you know some sites that would help me that would be great. I don't expect any hand-holding to take place in this thread.

thanks,

Chip

Fizick
23rd December 2005, 16:48
chipzoller,
1. Please edit your first post to change topic name.
2. please read Defreq doc, especially words in RED.

Revgen
24th December 2005, 04:13
1) I don't think your video is interlaced since the pics you posted are 320x240. This means it is no longer interlaced since your picture has been halved.

2) Go here (http://ffdshow.sourceforge.net/tikiwiki/tiki-index.php?page=Getting+ffdshow) and download the latest version of FFDShow.

chipzoller
24th December 2005, 06:46
@Revgen - Not sure...It looks progressive to me, but I captured from an older ATI TV Wonder PCI card and 320X240 is pretty close (if not the max) to the max resolution in the YUY2 colorspace. I'll check out ffdshow. thanks.

scharfis_brain
24th December 2005, 10:50
320X240 is pretty close (if not the max) to the max resolution in the YUY2 colorspace.
That's complete nonsene.

Either capture your VHS with 480 (NTSC) / 567 (PAL) lines or forget it...

chipzoller
24th December 2005, 16:29
Gladly, but this card will not support capture at those dimensions.

Wilbert
24th December 2005, 18:07
The used driver won't let you. I think your card has a bt8x8 chip. If you install BTWincap you will be able to cap a full resolution.

chipzoller
25th December 2005, 00:38
I think I tried that once, then my machine wouldn't boot up so I had to remove it. Maybe they've fixed it since then...not sure, I haven't looked into it.

Wilbert
25th December 2005, 02:17
@Anonymouses,

As a reply to your deleted post. You should read the analog capture guide. It contains everything you need to know about horizontal/vertical resolution, and what that implies for your requested capture size.

chipzoller
29th December 2005, 05:44
So I installed the BTWinCap drivers for my ATI TV-Wonder PCI, but when capturing with VDub, my max. res. is still 320X240. Even when I try to force it at 640X480 or so it still captures at the aforementioned resolution.

On another (slightly) unrelated topic, see this thread: http://forum.doom9.org/showthread.php?t=104768

Revgen
29th December 2005, 20:34
Have you tried Dscaler?

It can record up to 720x576 or 720x480 with your chipset.

Go to http://sourceforge.net/project/showfiles.php?group_id=7420 and download the 4.1.15 alpha version.

Make sure that you use the Huffuv CCESP patch version to record and not the FFDshow version.

chipzoller
29th December 2005, 23:29
I'm going to give it a shot and see if it makes a difference...as soon as I'm absolutely sure about my TV tuner chipset (I know it's some Philips type).

As far as creating a script to clean this VHS capture up, I used this for testing purposes to see if these plugins make a difference:

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\despot.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MSharpen.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MaskTools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MipSmooth.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\defreq.dll")

AVISource("H:\goldeneye.avi")
ConvertToYV12()
DeFreq(fx=30,fy=-40)
#DeRainbow(10)
ChromaShift(C=-6)
DeSpot(p1=35, p2=14, mthres=25)

And if you'll look at the script loaded in VDub, I don't notice any difference at all (sorry for the small source resolution).

I've heard a lot of good things about DeFreq, but I'm sure I'm not using it right. It's really complex to use for someone who is not a video expert. So if someone can give me some guidance I would be appreciative.

Revgen
29th December 2005, 23:39
Perhaps you could talk to Fizick. He authored the program.