Вы находитесь на странице: 1из 5

____Software and shit____

First off you need Avisynth, but you should have that already.
dgindex/dgmpegdec:
http://neuron2.net/dgmpgdec/dgmpgdec.html
Unzip this and then copy dgdecode.dll to your avisynth plugins folder. You will
need dgindex.exe later so don't delete the folder you unzipped to.
yatta 7-130b5:
http://ivtc.org/new/beta/yatta_7-130-beta5.rar
Unzip somewhere. Don't start it yet.
Various avisynth plugins:
http://web.missouri.edu/~kes25c/nnedi2.zip
http://web.missouri.edu/~kes25c/TIVTCv105.zip
http://web.missouri.edu/~kes25c/TTempSmoothv094.zip
http://web.missouri.edu/~kes25c/dfttestv16.zip
http://ivtc.org/new/additional/decomb522.zip
http://ivtc.org/new/Telecidehints-1.1.rar
http://ivtc.org/new/additional/fieldhint-0.11.zip
http://home.pages.at/kassandro/RemoveGrain/RemoveGrain.zip
Put them in your avisynth plugins folder.

If you don't already have a folder for commandline tools you need to make one. C
reate a random folder somewhere, rightclick my computer, hit properties, go to a
dvanced, hit environment variables. There should be one called PATH in the top w
indow. Edit it and tack on X:/yourfolder; to the end. (The semicolon is importan
t, make sure you separate your folder from what was there before with one).
Now get the latest x264:
http://x264.nl/
(Put it in the commandline tools folder)
x264 batchfiles:
http://mod16.org/fansub/x264-encode-crf-new.bat
http://mod16.org/fansub/x264-encode-new.bat
Put them in the commandline tools folder, open both in your favorite text editor
and change the line near the top that says SET EXENAME264=x264-r1214.exe to SET
EXENAME264=whateveryoucalledyourx264.exe.
You can also edit these to change your encoding settings, but we'll cover that l
ater.
Perl:
http://strawberryperl.com/
Just install it wherever.
split_aud.pl:
http://mod16.org/fansub/split_aud_0.21.7z
Put it in the commandline tools folder.
For fucked up caps or if you want to reencode the audio you might want faad:
http://mod16.org/fansub/faad.exe
Put it in the commandline tools folder.
mkvtoolnix:
http://bunkus.org/videotools/mkvtoolnix/downloads.html
you should probably have this already, if not just install it
____Preparation and metrics collection____
Unrar the ts (HURR). pros download the rars to another disk than the one they're
going to encode on so unraring doesn't take over 9k minutes.
Start DGIndex, open the .ts, hit save D2V (F4). Save it in the same folder as th
e .ts. That'll also give you an .aac. Close DGIndex when done.
Now start YMC (comes with YATTA) and set the avisynth plugins path if it's the f
irst time you started it. In the upper right corner tick "close when done" and "
launch yatta". Set Mpeg2Dec to DGDecode.
Drag and drop the .d2v you just created on top of YMC (it may take a few seconds
to load). Select it in the job list and in the metrics collection window tick t
he following boxes and move them into the following order:
Crop
Cutter
TFM
TDecimate
Hit configure on the Crop filter and set it to crop 128 pixels top and bottom (t
he reason for this is to get the other windows to fit on your screen; you can sk
ip this if you have a screen res bigger than 1440x1080). Tick the Default box to
save it for next time.
Close the crop window and hit configure on the Cutter filter instead. The purpos
e of this filter is to cut out shit you don't want, like ads and whatever. Hit t
he [ button to mark the start of a cut, use the slider and the arrow keys to nav
igate to the frame you want the cut to stop on, hit ] and then hit "add cut". Co
ntinue until satisfied. Note that the cuts are inclusive, so the frame you press
[ or ] on will get cut out, too. If you get odd frames where it looks like half
of it comes from the actual show and the other half from something else, cut th
at frame out too. When done just hit OK.
Next hit configure on the TFM filter. Depending on how good/bad/ugly the ts is y
ou can set a bit different things here. For good clean HD shows (think bakemonog
atari or gundumb 00) set mode=0, micm=0, slow=1. For ugly upscales (think canaan
or whatever) set micm=2, mode=2, slow=2. Order should always be set to 1 and Fi
eld should always be set to B. PP should be set to anything > 1; 6 is the defaul
t so just leave it at that. You can tick the Default box if you want to save you
r settings. When done just hit OK.
TDecimate has no configuration so now you go back to the Crop filter and set it
to something more sane than 128 pixels top and bottom. The goal is to get rid of
any border noise; how much you crop here doesn't matter in the final encode, so
feel to go insane with overcropping. Usually most sources need at least 8 pixel
s on each side. Use the little zoom box to get a better look. When done close th
e window.
Now hit Start and wait. This step usually doesn't take more than 20-30 minutes o
n a decent computer.

____YATTA____
If you ticked the proper boxes in YMC, YATTA will get autolaunched with the prop
er project file open already. The first thing you do in YATTA if you have a scre
en res smaller than 1440x1080 is press shift+numpad minus, which halves the size
of the video display.
If it's the first time you've started YATTA you need to set the Avisynth plugins
path. Then you should click Settings, go to the Global Settings tab and make su
re the following boxes are ticked:
Save all override files too (save button)
Set nodecimate to c match
Show frame number
Show freezeframes
Show pattern
Show metrics
Also make sure the "Show too short warning" box is unticked. Then close the wind
ow.
Click Tools, go to the AVS Generation tab, select spline36 as the resizer, TDeci
mate as the decimation filter and NNEDI as the postprocessor, then close the too
ls window.
Rightclick the video, go to additional -> cropping & resizing. Tick the "show re
sized" box (again, if you have a screen bigger than 1440x1080 you might not need
this). Set pixel aspect ratio to 1:1 and set the desired output resolution usin
g the boxes with a big X between them. Then crop off the border noise as needed.
This is the cropping that will get used for your final encode so don't overcrop
too much. For 16:9 shows the "ideal" aspect ratio error is 25.00%; if it's more
than 1% off that value you might want to compensate by cropping a bit more or l
ess. When done just close the window.
Click Tools again and go to the Presets tab. Select the default preset in the dr
opdown. Here you can add filtering if you want, but filtering is for fags and ju
st makes encoding slower so I won't really bother with covering this in detail,
ask me on irc instead if you want filtering tips for a particular source. Just a
dd removegrain(mode=1) here and press the Update button, then close the window.
Now click the Save button, then rightclick the video and click "Save all overrid
es (project path)" just to be safe. Then you can close YATTA.
This should give you a big fat Avisynth script.

____Audio____
Start a command prompt, navigate to the folder where you keep the ts etc, and ty
pe
split_aud.pl -vmr -i "lol.aac" -o "hurf.mka" "derp.avs"
and hit enter. This will automagically fix the audio for you and put it in hurf.
mka. If it doesn't work (complains about not finding split_aud.pl etc) try runni
ng it as
perl "X:/lol/split_aud.pl"
instead.

____x264 encoding____
There are two ways of doing this; CRF or target bitrate. CRF ignores the filesiz
e and just tries to get you a given quality. Target bitrate tries to get you the
best possible quality at a given filesize. Unless you really need a specific fi
lesize I'd recommend using CRF, since it's a bit faster and always gives you goo
d quality.
There's also a few x264 encoding settings you might want to customize. Here foll
ows a list of things you might want to change and some words about what they do:
SET bframes=8
More => slower encoding, better compression. Recommended minimum: 4.
SET ref=12
Same effect as bframes. Recommended minimum: 6.
SET subme=10
Same effect as bframes. Recommended minimum: 8.
SET trellis=2
If you need a big speed increase set this to 1, which will lower quality a bit.
SET rc-lookahead=80
If x264 crashes after encoding like 60-70 frames lower this by 10 at a time unti
l it stops doing that.
Customize these to your liking, then open a command prompt and say
x264-encode-crf-new input.avs output.mkv 15
Where 15 is the desired quality level (lower = better quality, higher filesize,
higher = lower quality, smaller filesize). 15 is usually a relatively sane value
; I wouldn't go under 14 or over 18.
If you want to encode target bitrate-based you use
x264-encode-new input.avs output.mkv targetbitrate
Where targetbitrate is the, uh, target bitrate in kilobits per second. You can c
alculate exact filesizes with a bitrate calculator if you want to (megui has one
, xvid has one, and there's several standalone ones), or you can use the old rul
e of thumb that says that a bitrate of ~1100 gives you ~230mb for 25 minutes wit
h an audio bitrate of ~140kbps, while a bitrate of ~900 gives you ~180mb for 25
minutes with the same audio bitrate.

____Chapters____
Copy the following to an empty text file:
CHAPTER01=00:00:00.000
CHAPTER01NAME=lol hi
After encoding is done, drag and drop the mkv you just encoded on top of Aegisub
. Find the places where you want to add chapters (hold down shift and press the
arrow keys when the video position slider is selected to seek to keyframes) and
copy the timestamps to the text file you just created (remember that Aegisub has
one less leading zero than the chapter file does; if you forget this mkvmerge w
ill hate you). Figuring out how to create more than one chapter is left as an ex
cercise to the reader.
You can and should name your chapters whatever you want.

____Muxing____
If you can't figure mkvmerge gui out you should probably go kill yourself.
A few notes though:
- remember to set track names and languages (set the video track's language to "
und" (undetermined)
- click the video track, go to the format specific options tab and set the desir
ed display resolution there (x264 writes a dumb value that is technically correc
t but isn't as nice)
- set the "default track" property of all tracks to "yes" (this probably never m
atters in practice, but it's nice to have set it properly) [obviously this doesn
't apply if you have multiple subtitle tracks; if you do I'll let you figure out
how to handle that yourself]
- chapters are added under the global tab. remember to set the language to engli
sh.

Вам также может понравиться