Cleaning up the footage: The Theory of
Pre-Processing
You've made some avs files, you've maybe deinterlaced,
resized, cropped or whatever. All of these things are about getting
your footage to look right before you edit. Of course, there are more
things you can do to make your footage look good. Iit can be very
useful to clean up the footage before
editing.
This will vastly improve the overall quality of your video.
Of course,
you can try and clean it up after you have made it (I always recommend
that
you do a little of this before compression anyway) but cleaning footage
before
you make your video has the following advantages:
1) Different sources need different
amounts of cleaning. You may have a nice clean modern source like
Princess Mononoke which doesn't require any real cleaning but if you
are
making a 'various source' video using both Mononoke and sources that
aren't as good looking then applying cleaning to the whole video once
it is made runs the risk of making the Mononoke footage look worse.
2) Different sources may require
special tweaks. You may have one source that needs a higher saturation
of colour, or one source that needs Rainbow noise removed and so on.
3) Using cleaner footage will help
your effects. Effects that rely on colour keys will be cleaner and any
Photoshop-style alterations will be easier with clean footage. If
you've sharpened up the image it will be easier to find those edges
when doing masking.
4) Video is easier to clean when it
has no edits. If you have lots of fades, effects and titles these will
all make cleaning the footage that little bit harder.
So as you can see, I think that cleaning things up before you start is
a pretty good idea.
However, adding cleaning funcitons to your avisynth scripts will slow
them down, sometimes considerably, so it is important to consider this.
If you are making clips you may not mind the extra encoding time it
will take as the quality will be good but if you are using the avs
files directly this may become more troublesome.
Pre-processing and editing from AVS
One thing you can do, if you are smart enough, is set up your cleaning
functions and then comment them out by putting a # sign at the start of
a line. This will mean that avisynth will ignore that line. Here's an
example from one of my scripts:
MPEG2Source("L:\BCBA_0618\gunbuster12.d2v",ipp=true,cpu=4)
telecide(order=1,post=2,blend=true,vthresh=30,back=1)
decimate(cycle=5,mode=2,quality=3)
assumefps(24)
#temporalcleaner()
#msmooth(threshold=6,strength=4)
#tweak(sat=1.2)
#mftoon()
converttorgb32()
As you can see, I have a lot of lines that are commented out. These all
change the video quality in some way. However, if I tried to edit with
these lines included it would have been impossibly slow.
So, by taking them out I could edit and then put them back in later as
required.
Of course, you also have to be careful to make sure that any lines you
comment out do not change the video too drastically. If I removed
telecide and decimate then I would have found that many of the frames
would be different because they wouldn't have been IVTC'd. Also, if you
want to get stills or pre-render any sections you will have to do that
from the filtered version of the script.
It's a little complicated, so I only recommend it for people who are
comfortable with what they are doing in avisynth, but it's a very
useful technique for quality - especially with multiple anime videos.
How to clean up the video
This is something I'm not going to talk about here, there is a section
later in the guide which you can look at if you do want to do some
pre-processing. If, on the other hand, you just want to use the footage
as it is you must now decide what to do with the avs files you have...
Using
the Avisynth Files for Footage
AbsoluteDestiny -
May 2004
|