Difference between revisions of "Avs"

From SDA Knowledge Base

Jump to: navigation, search
(Added small video/avs package for installation verification.)
(Association of avs file extension with text editor)
Line 60: Line 60:
 
<br>
 
<br>
 
<div id="workenvironment" style="background:#194BA2;width:100%;"><font size="+1" color="#FFFFFF">&nbsp;Setting up your work environment</font></div>
 
<div id="workenvironment" style="background:#194BA2;width:100%;"><font size="+1" color="#FFFFFF">&nbsp;Setting up your work environment</font></div>
 +
 +
<b>File extensions</b>
  
 
You'll very likely need to rename file extensions but they may be hidden by the operating system.
 
You'll very likely need to rename file extensions but they may be hidden by the operating system.
Line 72: Line 74:
 
<br>
 
<br>
 
[[Image:AviSynth_showhidden.png]]
 
[[Image:AviSynth_showhidden.png]]
 +
 +
 +
<b>Association of avs file extension with text editor</b>
 +
 +
Now that you can see file extensions, let's associate the avs file extension with Notepad or other text editor of your choice.
 +
# open Windows Explorer
 +
# open the <font color=mediumblue>File</font> menu
 +
# select <font color=mediumblue>New</font>
 +
# select <font color=mediumblue>Text Document</font>
 +
# rename the new text file to <font color=mediumblue>New Text Document.avs</font>. It should show up as an unknown type.
 +
# open the avs file or right-click and select Open With. Windows will ask which program you want to use.
 +
# select <font color=mediumblue>Notepad</font> in the list
 +
# place a checkmark in the box that says <font color=mediumblue>"Always use the selected program to open this kind of file"</font>
 +
# click OK
 +
 +
<br>
 +
[[Image:AviSynth_avsnotepad.png]]
  
  

Revision as of 15:19, 4 April 2009

quick link to old guide
quick link to wiki editing
Anchors


Snow's new AviSynth guide. Yeah, I hope I actually finish this.


Ideas for layout

  • Custom table of contents, not so linear.
  • Use PNG! Lossless is cool.
  • Color headings.

Ideas for guide

  • No more follow-these-steps-blindly instructions this time. Learn or gtfo.
  • Include more pictures.. haha this page is going to be like 50 megs (or more?).
  • Maybe separate the guide into multiple pages (see above). Also, won't seem so overwhelming.
  • At the start of each section, show a typical script in progress.
  • Include exercises with downloadable packages containing a video and a partial script.


Stuff to do:

  • Introduction
  • Setting up a work environment
  • Installation
  • Loading the plugins
  • Loading the source files
  • Fixing Constant audio desync
  • Fixing Progressive audio desync
  • Appending
  • Deinterlacing
  • Trimming
  • Resizing
  • Sharpening
  • Cropping / Adding borders
  • Color / Brightness
  • SDA StatID
  • QuickTime compatibility
  • Sample scripts
  • Script verification


Table of contents:

  1. Introduction
  2. Setting up your work environment
  3. Installation



 Introduction

IMPORTANT NOTE: AviSynth scripting is an advanced topic. All beginners are recommended to use Anri-chan instead.

Blah blah blah.



 Setting up your work environment

File extensions

You'll very likely need to rename file extensions but they may be hidden by the operating system.

  1. open Windows Explorer
  2. open the Tools menu
  3. select Folder Options
  4. select the View tab
  5. choose to Show hidden files and folders
  6. uncheck Hide extensions for known file types
  7. click OK to apply changes.


AviSynth showhidden.png


Association of avs file extension with text editor

Now that you can see file extensions, let's associate the avs file extension with Notepad or other text editor of your choice.

  1. open Windows Explorer
  2. open the File menu
  3. select New
  4. select Text Document
  5. rename the new text file to New Text Document.avs. It should show up as an unknown type.
  6. open the avs file or right-click and select Open With. Windows will ask which program you want to use.
  7. select Notepad in the list
  8. place a checkmark in the box that says "Always use the selected program to open this kind of file"
  9. click OK


AviSynth avsnotepad.png



 Installation

Download and install a stable release version of AviSynth

The picture below identifes a stable release.
AviSynth download.png


Download and install necessary AviSynth plugins

Go to Start menu -> [All] Programs -> AviSynth -> Plugin Directory. This will open the directory where AviSynth stores its plugins. Copy the files from inside the AviSynth plugins zip file to the Avisynth plugins directory window you just opened. Note that you can't copy the directory you unzipped in; you have to copy the files inside the directory you unzipped into the AviSynth plugins directory. This is because AviSynth won't recognize the plugins if they are inside a directory inside the AviSynth plugins directory.

The plugins directory should look similar to what's shown in the picture:
AviSynth pluginsdir.png


Download and install VirtualDub

This program will be useful for testing your script as you go along.


Verify that everything is installed properly

Download the following package and unzip the contents anywhere you'd like. Run VirtualDub and drag and drop the avs file into the window. You should see a frame that says "So far so good..".


Personal tools