« BACK | Writing AviSynth Scripts | NEXT » |
VIDEO 1/3: Installations
Instructions
I. Download AMVapp
(1) It might be useful to have File Extensions showing-- like "AMVapp31.zip" (Google how)
(2) Right-click > extract...
(3) At this point, you can delete the .zip if you want...
(4) If possible, right-click > run as admin...
a. UnZip contents (1)(2)(3)
b. Install the following (4):
________________ b. Install the following (4):
- avisynth
- avspluginspack
- avspmod
c. Download & Install CCCP- avspluginspack
- avspmod
(1) It might be useful to have File Extensions showing-- like "AMVapp31.zip" (Google how)
(2) Right-click > extract...
(3) At this point, you can delete the .zip if you want...
(4) If possible, right-click > run as admin...
What is AviSynth?
I like to think of AviSynth as a programing/scripting language you can use to manipulate your footage. Yes, this means you type commands, and stuff happens to your video (or audio) :P
Here's an example script you can write with AvsPmod: (or even plain old Notepad)
Translated to English, this basically means:
Here's an example script you can write with AvsPmod: (or even plain old Notepad)
avisource("C:\AMV\randomclip.avi")
crop(8,0,-8,-0)
spline36resize(704,396)
1. go get your .avi clip from that location on your computer
2. then cut off 8 pixels from the left; 0 from the top; 8 from the right and; 0 from the bottom
3. then Resize your clip to a Resolution of 704x396 pixels using a spline36 method
2. then cut off 8 pixels from the left; 0 from the top; 8 from the right and; 0 from the bottom
3. then Resize your clip to a Resolution of 704x396 pixels using a spline36 method
VIDEO 2/3: How do I use AviSynth?
Instructions
Or create scripts manually [+]
---------------
1. Drag-and-Drop your footage into AvsPmod (or make script manually as indicated)
2. Using the bar on the bottom, preview how your footage looks
-if directshowsource() is used, change it to ffvideosource() for better frame-accuracy
-if that still doesn't work, find out what codec your video uses and download/install it.
3. On a new line in the script box, type the command you want (see examples below)
4. Press & Release F5 on your keyboard to refresh the script
5. Use the bar on the bottom to preview how your footage looks using the new script
6. Go to File > Save Script as... > Pick a location > Save
(Remember where you saved the .avs file-- you'll need it for later...)
1. Drag-and-Drop your footage into AvsPmod (or make script manually as indicated)
2. Using the bar on the bottom, preview how your footage looks
-if directshowsource() is used, change it to ffvideosource() for better frame-accuracy
-Press & Release F5 on your keyboard to refresh the script
-if your footage doesn't show up, try changing the sourcecall to DSS2()-if that still doesn't work, find out what codec your video uses and download/install it.
3. On a new line in the script box, type the command you want (see examples below)
4. Press & Release F5 on your keyboard to refresh the script
5. Use the bar on the bottom to preview how your footage looks using the new script
6. Go to File > Save Script as... > Pick a location > Save
(Remember where you saved the .avs file-- you'll need it for later...)
VIDEO 3/3: Preparing Your Footage with AviSynth
Examples: What can I do with AviSynth?
The number of things you can do to your footage is pretty much endless,
but here is one example of a full script with sort descriptions of what each line does:
NOTE: you may not need any of these functions so don't just blindly copy/paste it into your own script!
but here is one example of a full script with sort descriptions of what each line does:
MPEG2Source("C:\SOURCE\DVD_Index.d2v", cpu=0) # declares and gets source footage
tfm(mode=1,pp=5,slow=2,micmatching=2,clip2=tdeint(mode=2,type=3))
# removes interlacing
tdecimate() # removes duplicate frames (29.97fps-->23.976fps)
ttempsmooth() # cleaning filter (noise removal)
crop(8,0,-8,-0) # removes 8px black borders on left/right
spline36resize(704,396) # resizes to a smaller 16:9 resolution
lsfmod() # sharpening filter
gradfunkmirror() # gradient restoration
assumefps(23.98) # framerate change via speed adjustment
# This is a Comment (anything after a '#' symbol is not read by AviSynth)
# Notice how the sequential order of commands is important;
# For example, you need to declare your source footage before doing anything to it.
Well, hopefully that wasn't so bad. Because at this point, it's all about familiarizing yourself with AviSynth usage. The next few articles under Preparing & Cleaning shall deal with specific scenarios that you may or may not have to deal with in your own footage; like Interlacing, Frame rate Adjustments, Cropping/Resizing/Aspect Ratio, and Cleaning.
TIPS:
|
« BACK | (DONE: Writing AviSynth Scripts) | NEXT: Interlacing » |
6 comments:
Questions/Comments? Typos/Errors? Tips? Related Links?
Feel free to post a comment below. Your feedback is valuable.
hi, im a complete beginner at all this. i have followed all your steps so far,however when I try to preview my footage in AvsPmod, it says "Script error:there is no function named "MPEG2 Source" (New file, line 1)" i have no idea what this means, I have followed your steps so far. Any advise? thanks
Hmmm... well for one thing "MPEG2 Source" should not have a space in it. The two words should be together like "MPEG2Source()" in your script. Try changing that and refresh your script by hitting [f5] on your keyboard. If that doesn't work, perhaps something went wrong with the avisynth or plugins-pack installation.
It also depends on the file extension type you are opening. Since you mentioned "MPEG2 Source", I'll assume you are trying to feed avspmod a .d2v or .vob file? I forget if you also need to install DGMPGDec for those cases, but it wouldn't hurt to install that too.
Otherwise, go through a typical uninstall-reinstall routine:
-First, uninstall any instances of avisynth and it's plugins in case you have conflicting files. (something like 'ccleaner' may help)
-Then, download the AMVapp linked above, and make sure you have fully unzipped "AMVapp31.zip" first (right-click > extract).
-Then, go to the extracted files and install avisynth and plugins-pack as administrator (right-click > run as admin...)
If that doesn't work, IDK, there may be compatibility issues depending on your operating system? (The computer in the video above was running 64-bit Windows 7, and I don't know how well things work on others like Windows 8)
Hope this helps.
thanks for quick reply. im doing it as a uni project haha so rushing. thanks i'll have a go and get back
hi, same person again. I re-installed but am now getting a new error code when i try preview :
Evaluate: System exception - Access violation
I'm running as administrator. It can't have installed bad again??
for now I think I'll rip it straight to .avi and use it for the minute
it didn't have any interlacing in the programme before so am praying it works
any more advice? this should do anyway
thanks
There is a possibility Full Administrative Rights is not enabled on your machine. If you can find a tutorial on YouTube for 'Enabling Full Administrative Rights,' you might get it to work.
In terms of advice: If you start a project that you know you can finish, do finish it, otherwise your project may not be able to pick up where it left off.
Hope this helps :)
Post a Comment