How to Use Avisynth
Total Page:16
File Type:pdf, Size:1020Kb
Forumotion Share : Welcome learningfilters Notifications How to use AVISynth Author Message DarkDream787 Subject: How to use AVISynth Sun Aug 02, 2015 3:29 am Needed Software MeGui (The main program you will be using for setting up and preparing your source files for encoding or editing) AVISynth (The program you use to apply filters to your video which make changes and improve the source video as needed) Optional Software None IMPORTANT NOTE: Click on the word "Spoiler" or just above the line when wanting to open and close larger images that are put into spoiler tags. Also, this is not my full tutorial and lacks details and things that are in my full tutorial. This is just the information you will need in order to understand how to use AVISynth and make your encodes look better. Basically an edited cutout from my unfinished full tutorial with new information added as well. You pay attention to this and you will understand how to use avisynth and end up with more properly filtered encodes than blindly guessing. (If you don't care to read how I learned about this program and how to use it, feel free to skip down to the part where I begin to explain how to use it) Back when I always wanted to encode in 2002 or so, most of the people on forums I asked for help in were asses or didn't bother to try and teach you much. Every time I went for help I ended up with a common answer and it was usually just use AVISynth with VirtualDubMod or GordianKnot with no information on how to use it or what it was. If I asked how to use it, they would just tell you read through all the threads and not even point you to one with information. I installed AVISynth and could never figure out how to use it. I thought it was a program that you run like any other but I later learned it didn't work like that. I was told it was all scripts and code but no one would tell me how to use it. I had no idea how to use it, and I didn't know anything about search engines like Google back then either or what they even were, until I got into computer tech classes a couple years later. So easier help than a stuck up forum, wasn't really available to me at that point. I ended up just deciding, screw it and using a basic program for encoding AVI files which was called VirtualDubMod, and while it got the job done with acceptable quality, I never got the quality I had wanted and I never figured out how to use avisynth with it. I eventually got desperate enough, that I decided to try again several years later. A newer program called MeGui had come out and I gave it a try. I had met someone who used to go by the name of GameStar and that's how I learned of MeGui's existance. I never heard from that person again and they never taught me how to use it. I played around with it and looked up some information about MeGui and what all of the features did. Thanks to MeGui I learned AVISynth is all script based and you write lines of code into a document, then feed it through your encoding program by certain means, such as directly or by frameservering to your program. MeGui will make you a basic script after you get it all set up and begin to use it. I didn't know that when I began playing with it, and when I saw this script that was basic, that only had simple things in it, I realized, "Oh, so that's how it works" and I began to play with it. I tried many many lines and filters just to see how to use them and or what they did. I pretty much learned it the way I did HTML. Someone made me a website when I was 13, and I went through every single line and copied and pasted them one at a time to see what they did until I finally became really good with HTML withinin the year and did the website on my own after that. College made it even easier to understand many years later. Well in this case MeGui made a basic script, and I began to play with it and experiment until I got it down. Okay so to make things simple, I figured I would explain how to use AVISynth in detail and give some examples of when you need to use what filters to fix your video up. I didn't have any teachers to teach me, all I had was a forum that when I came across a new issue on the video that I didn't know what it was or how to fix it, I would ask what it was called and ask for suggestions on filters to try out. Then I would try every filter that was for the issue and pick the one I found to do the best job with the least damage or side effects. Well my goal here is try and make this a lot easier for people new to this program and or that have no idea how to use it either. So lets begin! This is not a one day and your a pro kind of thing to learn, it will take lots of reading and experience to get this down. I will handle the giving you material to read so your not looking endlessly all over the net for the information, and you will handle the trying it out and getting experience with it until you get good at it. Okay first, I am going to mention the different types of things you will come across when working with DVD's and video sources, tell you their technical term, and the types of filters needed to fix those things you come across. The first and most common thing you will come across is called Noise, or Grain. It can make the video look dirty and you will see a lot of moving speckles or artifacts all over the video. You can expect to see this in almost every DVD you work on, it will just be different levels. Some will barely have any and some will have a lot of it. Forumotion Here is an example picture of Swhatr eI a:m talking about. (Notice all the speckles or dot like marks all over the iWmealgceo)me learningfilters Notifications When you remove the noise or grain it looks more like this. Here is another example using a different source (Notice the speckles or noise on the darker parts of his jacket) Forumotion Share : Welcome learningfilters Notifications When you remove/reduce the noise or grain it looks more like this. Now denoising and removing grain if done too strongly can smooth details out of your video and make the video look washed out like in the above pictures. In the first example, I used the default settings of deen twice so you could see the effect of denoising alot more easier so its not going to look the best it could. I purposely overdid it for that example to help you see what noise/grain looks like. I also brightened it up a small bit and made a few other tweaks. You will notice in the first example, the details in the mountains look smudged or washed out now. Sometimes this is acceptable in my eyes like above when the source was that bad, but its not something you want to do to good clean sources so use weaker denoise settings. In the second example, I purposely overdid it once again so that it was easier for you to see what grain/noise is. I would not be doing it this strongly in my encodes and the settings I use look much better than these. Once again, its cleaned up and looks better, but because I did it so strongly and without a mask of any kind to protect lines, you can also see the detail loss in the fine details. If you look closely at the fine details on the green wall in the background, you will now notice it looks like smudged watercolor paints instead of a detailed image. This is again, a side effect of denoising too strongly. While denoising usually makes the picture look better and more cleaned up, its fairly easy to go overboard with it. It can also cause color banding which we will get into later. So be careful to not use a denoiser when it isn't needed or when it causes banding when used. Also be careful not to use one that has too strong of settings unless of course you like the cleaned up look and don't mind the detail loss, but if your encoding for people to download, they will probly not like you destroying or smoothing out the details so strongly, so use weaker settings. The best denoising filter I have come across is deen. The problem with deen though is its default settings are VERY strong as you saw above and should be reduced in order to preserve video details or do less damage to them unless its so severe like in the first example above before being denoised, that you cant stand it. That's where the parameters in the script comes in and we will get around to those later.