HD Encoding Guide

From 0xWIKI
Jump to: navigation, search

Contents

Ripping Video

Using AnyDVD

To rip the video, use SlySoft AnyDVD HD. This can be downloaded from http://www.slysoft.com/en/download.html


It’s as easy as right clicking on the tray icon and clicking “Rip Video DVD to Harddisk”.


HD01.jpg


Once that is open, choose the drive to read and where to put the rip.


HD02.jpg


Select the Copy DVD button when ready.


Prepping HD-DVD

Directory Layout

With a HD DVD, the files you have to worry about are located under <MovieTitle>\HVDVD_TS folder. The main movie is called FEATURE.EVO or FEATURE_1.EVO. When demuxing most movies, they are split into multiple files. EVOdemux will read both when you add just the first.


HD03.jpg

Demuxing Streams

The next step is to demux the video and audio streams using EVOdemux. The easiest way is to drag and drop the FEATURE.EVO or FEATURE_1.EVO into the program.


HD04.jpg

Once the video is opened, go to the Video/Audio tab and deselect all but the top video and audio tracks.


HD05.jpg

Also deselect the subtitles. The easiest way to get usable subtitles is from http://subscene.com/search.aspx


HD06.jpg

The final step with EVOdemux is to confirm proper configuration. The Important setting here is the output folder.


HD07.jpg


Once the settings are confirmed, click the Demux button at the bottom.

Renaming Demuxed Streams

Once demuxed, you will have output that looks like this:


HD08.jpg

Rename the files as to make it easy to keep track of things.


HD09.jpg

Audio Conversion

Next on the agenda is to manipulate the demuxed streams to something usable. First up is the Audio. Use eac3to to convert the audio to a usable ac3 audio stream.


On the Converstion Options 1 page:

Set the AC-3 bit-rate to 640 kbit

Select “Downmix to 6Ch”


HD10.jpg


The output file is automatically named the same as the input file name. The only difference is the extension.

On the Conversion Options 2 page:

Select “Strip VC-1 PullDown”


HD11.jpg


Click the Convert button at the bottom.


**Note**

It is very important the command prompt that is opened does NOT lose focus until it starts converting. If it does, the command being sent gets interrupted and you have to close the command prompt and click convert again.

Upon a successful conversion, you will get the following success screen.


HD12.jpg

Once conversion is successful, you can delete the excess files.


HD13.jpg

HD14.jpg

Video Conversion

To prepare the video, you need to add the demuxed video file into tsMuxeR.


The important settings to set/change are:

Remove Pulldown (this will automatically change the framerate to 23.976)

Change the Output to M2TS muxing


Once this is done, select Start muxing.


HD15.jpg

You will get the following complete message if muxing is successful.


HD16.jpg


You can delete the extra files at this point. This leaves you with only .ac3 and .m2ts files

HD17.jpg


You are now ready to [#Encode_01 encode].

Prepping BluRay – Easy Discs

Directory Layout

With a BluRay disc, the files to worry about are located under the <MovieTitle>\BDMV\STREAM folder. The main movie chunk of the video can be all contained in one file or split into many files. This guide walks you through the easiest setup where the entire video is contained within one contiguous file. If this is the case, one file always towers above the rest size wise.


HD18.jpg

Moving & Renaming Stream

The first step is to move the main movie to your working directory where you will manipulate the audio and video streams.


HD19.jpg

Then rename the file to the name of the movie as to keep things from getting confused.


HD20.jpg

Demuxing Audio

Use tsMuxer to demux the audio stream or streams you want to keep. To do this, deselect all streams but what you want to keep. If it is a DTS-HD or TRUE-HD audio stream, you will want to select downconvert to DTS or AC3 to make it useable. Click Start demuxing when you are ready.


HD21.jpg

You will get a complete screen when this is done, make sure there were no problems encountered.


HD22.jpg

After demuxing, the files should look like this.


HD23.jpg

Renaming Demuxed Streams

You will want to rename the audio track to something more comprehensive, perhaps including the language, if you have more than one demuxed. Otherwise if you only demuxed one, it doesn’t really matter but you can still rename it to remove the track number.


HD24.jpg


You are now ready to [#Encode_01 encode].

Prepping BluRay – Medially Difficult Discs

Directory Layout

With a BluRay disc, the files to worry about are located under the <MovieTitle>\BDMV\STREAM folder. The main movie chunk of the video can be all contained in one file or split into many files. This guide walks you through the medially difficult setup where the video is contained within two files. If this is the case, two files, almost always numerically close or sequential, that tower above the rest will be the entire movie. This is usually pretty easy to spot as the rest of the files will be inconsequential in comparison.


HD25.jpg

Remuxing Streams

To deal with this, add the first of the files into tsMuxeR.


HD26.jpg

In tsMuxeR, click the append button, browse to the second half of the video and add that.


HD27.jpg


At this point, you will deselect all the streams you don’t want to keep. Choose for the output to be to an M2TS container and select where and what to name the output.


**Note**

LPCM audio in most cases and for most people will be useless. Don’t even bother with it.

Make sure the muxing went without incident.


HD28.jpg

Demuxing Audio

Open the .m2ts file just created using tsMuxeR and demux the audio stream or streams as the case may be.


HD29.jpg


Choose to demux for the output and click Start demuxing when ready.

Renaming Demuxed Streams

Rename tracks to something comprehensive if multiple tracks were demuxed, perhaps include the language of the track in the name. In this example there is just one audio stream extracted.


HD30.jpg

HD31.jpg


You are now ready to [#Encode_01 encode].

Prepping BluRay – Difficult Discs

Directory Layout

With a BluRay disc, the files to worry about are located under the <MovieTitle>\BDMV\STREAM folder. The main movie chunk of the video can be all contained in one file or split into many files. This guide walks you through the most pain in the ass difficult possibility that presently exists. This is easy to spot, no stream file stands out above the rest. In the below example, the files are sorted by size to show this as there are a massive number of files.


HD32.jpg

Finding Correct Playlist

When you encounter a video title like this, you need to first aquire which is the correct playlist to use. This is where the BDedit tool comes in. Open the BDedit utility and start by configuring it.


HD33.jpg


The important setting is the top one “Auto Read” make sure this is checked.

Once configured, open the video under the BDMV tab.


HD34.jpg


Next goto the playlist tab and go through the list of playlists. Make note, in notepad, of the number for the playlists that look legitimate. Off times there will be more than one that look legitimate. The fakes or non-relevant ones only have a couple of items in them or they have just the same video number repeating over and over a bunch of times. When you find the ones that look legitimate, there are a couple ways to determine the correct playlist. In the event of this example movie, there are 2 playlists that look legitimate and they both are, one is for the theatrical version of the movie, one is for the extended unrated version. Some movies have decoys (take Waiting for instance). The trick to find the real version is to compile each different version in tsMuxeR and mux it. Then watch it before its encoded. If it’s a fake, the audio generally goes out of sync, there is artifacting or other obvious signs within the first few minutes of the video.


HD35.jpg

Below is the correct playlist for the extended version of this movie.

HD36.jpg

Remuxing Streams

This is now much easier to reassemble than in times past. Rather than the old method of appending each stream individually, you can now open the playlist. In the previous steps you should have found the appropriate playlist or at least narrowed it down. Now you select add and browse to the playlists directory and open the one you want. This will give you the following output.


HD37.jpg

Only select the streams you want to keep. In this example, there are multiple video streams and a DTS-HD audio stream. We only need to keep the 1080p video stream and the DTS-HD audio stream. As this is an HD audio stream, it should be downconverted to make it more useable.


HD38.jpg


For the output, select M2TS muxing, browse to the working folder and choose a name for the muxed output. Choose to start muxing when ready.

Demuxing Audio

Once muxing is completed, open just the newly created .m2ts file in tsMuxeR and demux the audio stream or streams.


HD39.jpg


Once demuxed, rename the audio stream or streams as appropriate.


You are now ready to [#Encode_01 encode].

Encoding

Creating AviSynth Script

Once your video files are prepped and packaged into a workable m2ts container, you can begin the encoding process. This work is all done using MeGUI and the programs it controls.


First up is to create an AviSynth script.


HD40.jpg

Open the appropriate .m2ts file that has been created under the Video Input field.


HD41.jpg

Leaving the auto preview open, deselect resize, select crop and click Auto Crop. Click ‘Save’ when the autocrop has been detected to remove the black bars at the top and bottom of the video.


HD42.jpg


**Note**

It’s very important that if it detects to crop the right or left, that you set that back to ‘0’. The encode will fail if you don’t correct this.

Choose Encoding Profile

Once the AviSynth script is created, it will automatically be loaded into MeGUI. Next up is to select appropriate Encoder settings. If a title being encoded is an HD DVD, use the “x264: SA-HD-DVD” profile. If it’s a BluRay title, use the “x264: SA-Blu-ray” profile. Select the MKV file format to select a matroska output container.

Note
With the latest version of MeGUI, the profiles have been renamed to:
"x264: Standalone-HD-DVD"
"x264: Standalone-Blu-ray"


HD43.jpg

Calculate Bitrate

Next up on the agenda is to calculate the bitrate to use to target a specific file size.


HD44.jpg

The bitrate calculator will automatically load the settings for the video from the AviSynth script that is currently loaded. First select the audio track by clicking the select button. This will compensate for the size of the audio track so you can still hit the target file size. With most 1080p video, you will want to target the size for a DVD-9 disc. This provides an adequate bitrate to retain excellent quality throughout the video without any artifacting, bright spots or any other deformities that are unacceptable while making the video size acceptable to be backed up by modern DVD burners.


HD45.jpg


Once you have selected the audio and the file size, the bitrate will automatically be calculated. To apply this to the current encoding profile, click the apply button.


HD46.jpg


Then click Yes.

Enqueue

This brings you back to the encoding screen. Now you need to click the Enqueue button. This will put it in your queue.


HD47.jpg


Go to the Queue tab to see whats there. There will be an analysis pass and an encode pass. Without the analysis pass, the encoder is unable to target a specific size for the video that is output.

Muxing & Subtitles

After you click the start encoding button, a .mkv file will be created allowing you to queue the muxing job to give you the finished product.


HD48.jpg

Using the muxer, add the video, audio and (if you have them) subtitle (in .srt format) files to the appropriate places. Subtitles can be gotten from http://subscene.com/search.aspx if they are needed.


HD49.jpg


Under Output, choose a descriptive file name. Click Queue when ready.


HD50.jpg


After the final muxing is done, you can delete all but the finished product.

Personal tools