All pastes #1921858 Raw Edit

avi

public text v1 · immutable
#1921858 ·published 2010-08-21 05:56 UTC
rendered paste body
*/////////////////////////////////////////////////////////////*
 // You may find this confusing at first, but once you set  //
 // everything up, things aren't nearly as bad. Feel free   //
 // to ask me questions any time~                           //
*/////////////////////////////////////////////////////////////*


-------------------------------------------------------------------------------------

Software needed:
MEGUI: http://sourceforge.net/projects/megui/
AviSynth: (MEGUI asks you to install it)
MKVToolNix: http://www.videohelp.com/download/mkvtoolnix-unicode-4.2.0-setup.exe
MKVExtractGUI2: http://sourceforge.net/projects/mkvextractgui-2/

Setting everything up:

MEGUI/AviSynth: Install it, and when prompted to install AviSynth, do so. 
                Also install all the "presets"(video and audio) that comes with it
                by selecting them and hitting import.

MKVToolNix:     Nothing special here, just install it.

MKVExtractGUI2: Download it (it's in a .rar file) and extract it to the directory
                where you installed MKVToolNix. It might also be good to make a 
                shortcut on your desktop for ease of access.

----------------------------What to know------------------------------------------

So now that everythings set up, we need to get the materials to work with. But first,
heres what you should know:

".avi" is called a container, which is merely something that video, audio, subtitles,
and other things (chapters, subtitles, etc). The same goes for ".mkv"

".avi" containers are more primitive then ".mkv"s, so they are not as good. However,
they are more widely supported (hence why you can use them on your ps3)

The video and audio inside the containers are compressed and held together by what is
called a "codec". The codecs we will be dealing with are H.264, XviD, MP3, and AAC.
.avi
H.264 (video) Currently the best codec on the market. It is what BluRay Videos use.
      However, .avi containers do not all h264-encoded videos in them.

XviD (video) You might have seen this codec before. It's well known for producing
     good quality videos at lower file sizes.

MP3 (audio) You know what this is.

AAC (audio) You know what this is as well most likely. But this is not supported in .avi,
    hence why we will have to convert it to MP3.

**note** Now you know why .avi files are always the lower quality ones.


----------------------------------Encoding---------------------------------------


Download the .mkv video you are going to convert.

Open MKVExtractGUI2 and select the video. Choose the output to wherever.

Select the "subtitles" track, and all of the font tracks (labeled as attachments)

Leave video, audio, and chapters(might not be there) alone.

Click Extract. 

Next, go to where you extracted the tracks, and install all of the fonts.

**note** Some may already be installed, just skip them. To install, double click them.
         You may delete them when you're done.

Now comes the tricky part. Create a new notepad document, and copy/paste the following:


v=FFVideoSource("x.mkv")
a=FFAudioSource("x.mkv")
AudioDub(v,a)
TextSub("x.ass")
Spline36Resize(720,480)


Now replace "x.mkv" with the full directory path of the mkv video,
and "x.ass" with the full directory path of the subtitle track you extracted.

Save the document as "pickname.avs". Make sure its a ".avs" file, not ".txt".

ALMOST THERE ^_^ stay with me

Open MeGUI. Under Video Encoding, it will say "AVISynth script" with an input box next to it.

Load the .avs file you recently made into that field, as well as the audio input field.

In the Video encoding section, make the encoder settings "XviD: 2pass HQ" OR "XviD: 2pass Fast"
**note** the difference is simply quality vs speed.

Make sure File Format is "AVI" and not "MP4"

For the audio encoder settings, select "Lame MP3: Scratchpad" and hit config.

Settings: 
	leave first two check boxes unchecked
	Channels: Downmux channels to stereo
	SampleRate: Keep original
	Normalize peaks to 100
	Encoding mode: CBR
	Bitrate: 128 OR 192 **192 is better quality at the price of a larger file size
			      However, the difference in quality is not distinguished easily.

It may be easier to save this as a preset by clicking the "new" button in the settings window.
When finished with the settings hit "OK"

Then, hit AutoEncode at the bottom right.

Output Options: 
		Container: AVI
		Name of output: whatever you want.avi

Size and Bitrate:
		you can choose between File size and Average Bitrate.
		for filesize I recommend no more 230 MB and no less than 170**
		
		for average bitrate, No more than 1200 and no less than 750

Now hit Queue. Now go to the "Queue" window and at the bottom, hit "Start"
------------------------------------------------------------------------------------------

When its done (speed varies depending on computer and settings), you can use it on your ps3 d(^_^)b
At first this may seem overwhelming because of all the installation and settings you have to to do,
but after a couple times you'll get used to it and be able to do all the settings and extractions in
less than 5 minutes ^_^

Happy Encoding~