This is my guide for ripping and remuxing Blu-ray disks. The main reason I remux Blu-rays disks is the fact that to get full HD audio using a HTPC you will either need to buy an ASUS Xonar HDAV audio card (over $200-250) or you have to remux the disk into MKV and use FLAC as the audio.
You see, PowerDVD and TotalMedia Theater both downsample the HD audio to 16bits/48kHz no matter what the orginal disk audio specs are. So if your Blu-ray movie has 24bits/48kHz audio (DTS-MA or TrueHD) you will lose some of the quality as it is downsampled. The Xonar card will play the audio unmolested but only with their special edition of TotalMedia Theater.
If you remux the disk you will get the full video and audio quality without losing any little bits to downsampling. Not only that, but if you are like me and you hate all those trailers and commercials at the beginning of each disk this will get rid of them. You will lose the disk’s menu features but I can do without them. And this final thing is the biggest reason for remuxing; saving hard drive space. With a remux you will reduce the size of your disk by 30-60%.
For proper ripping and remuxing you will need the following: (links provided for software)
Now go ahead and install all the above software and we can begin the ripping and remuxing.
The first step of course is the ripping. AnyDVD HD will strip all the AACS and HDCP protections of the Blu-ray disk.
When you insert your Blu-ray movie into the drive you will see the name and size on the My Computer window. This disk is “Standard Operating Procedure” and it’s a 43GB dual layer disk.
To rip the disk to your hard drive you will have to right-click on the AnyDVD HD icon on the Task Bar and select “Rip Video DVD to HardDisk”. You will need to select a location for the disk rip that is more than the actual disk size (43GB). I don’t think you will have any problems since most of us have plenty of free space somewhere on our PC. Below are some of the AnyDVD HD options.
As the disk gets ripped you may want to go do something else. It will take anywhere between 45 minutes to a couple of hours depending on drive speed and disk size.
When AnyDVD HD is done you will have a perfect copy of your Blu-ray disk on your hard drive. You can playback this folder with either PowerDVD or TotalMedia Theater with the above mentioned audio limitations.
To be able to playback the full HD audio you will have to remux the video and audio into an MKV container with the audio converted to FLAC. If you are wondering about FLAC and any quality loss I can assure you that it will be 100% bit-perfect to the original audio. Not only that but you will retain all the multi-channels. The remux will also leave the video alone and will not degrade it in any way. In other words, you will have a perfect 1:1 copy of the original video/audio that will now be easier to playback on your favorite media player application.
Now comes the real nerdy tech part. We will be using eac3to via command line. Yes, you will have to launch command prompt and actually type your command manually. Oh, the horror.
More likely than not, when you launch command prompt it will default to your Users home directory so you will need to re-direct it to the location of your eac3to folder. I put mine on the root directory of my C: drive for easy typing. So, the command line would be this:
chdir c:\eac3to\
Now you are ready to see if your components are properly installed. eac3to has a “test” feature that will give a report of all the filters and applications that are required and tell you if any are missing. Here’s mine:
eac3to v3.14
command line: eac3to -test
——————————————————————————
eac3to (v3.14) is up to date
Nero Audio Decoder (Nero 6 or older) doesn’t seem to be installed
http://www.nero.com/eng/store-blu-ray.html
CAUTION: You need Nero 7. Nero 8 won’t work with eac3to.
ArcSoft DTS Decoder (1.1.0.0) works fine
Sonic Audio Decoder (4.3.0.169) works fine
Haali Matroska Muxer (2009-01-10) is installed
There’s a new version (2009-01-11) available
http://haali.net/mkv
Nero AAC Encoder could not be located
http://www.nero.com/eng/nero-aac-codec.html
Copy NeroAacEnc.exe to the eac3to or to the Windows folder.
Surcode DTS Encoder doesn’t seem to be installed
http://www.surcode.com
MkvToolnix (2.5.3.0, release version) is up to date
Now, you don’t have to worry about all the needed stuff listed there. For the purpose of this guide you will only need the “Arcsoft DTS decoder” which is a part of the TotalMedia Theater installation, Haali Matroska Muxer, and MkvToolnix. As you can see I have all of these installed. Haali shows a newer version available but that seems to be a bug as I have the latest version.
To do the test feature the command is:
eac3to –test
If you noticed that the command is listed at the top of the “test” results.
After you have done the test and you have all the required components installed then you are ready to do your first remux.
Let’s say that you ripped your Blu-ray to your drive (J:) and the folder name was “sop_p2”. You will need to see what the Playlists of the disk are. You will need to tell eac3to to give you a full list of all the Playlists on your rip by typing the following: (Click the screenshot to see the full sized version)
eac3to j:\sop_p2\
Most Blu-rays have the main feature in Playlist #1 like this one. Some seamless branch titles will have multiple main feature playlists (most Pixar titles) and it will take some detective work to figure out which ones is the right one.
Since this one is clearly Playlist #1 we will work with this one to remux only this playlist. To isolate a single Playlist you will use the 1) command to tell eac3to that this is the one we want. Our next command then will be: (Click the screenshot to see the full sized version)
eac3to j:\sop_p2\ 1)
This will show you the full track list for this Playlist. You can see the video track (2:), the four audio tracks (3:-6:), and all the subtitle tracks (7:-18:). Now we can pick which tracks we want to keep or we can extract all and use whichever one you want.
There is two ways that I do the track extraction. The first is by far the easiest so I will show you that one first and then will show you the second one.
To extract every single track from this Playlist you will do the following command:
eac3to j:\sop_p2\ 1) c:\(destination folder)\(title).mkv
Mine looks like this:
eac3to j:\sop_p2\ 1) c:\bd\sop_p2.mkv
When eac3to is done you will have a folder that looks like this: (Click the screenshot to see the full sized version)
You will notice the mkv as the first file. This is the video track. Each of the TrueHD tracks have been extracted and converted to FLAC. The ac3 track is the commentary track. Each subtitle track will give you the information as to how many captions are in each track and whether there is any forced subs. The last file is the Chapters that you can add to have easier time seeking.
I will now give show you the other way to extract the tracks. This method only extracts the tracks that you tell it to do. Let’s say you only want the video track (2:), the English TrueHD audio (3:), the commentary track (6:), the Chapters (1:), and both English sub tracks (7: & 8:) you will do the following command: (This will be a long single command so there is no line break)
eac3to j:\spo_p2\ 1) 1: c:\bd\spo_p2.txt 2: c:\bd\spo_p2.mkv 3: c:\bd\spo_p2.flac 6: c:\bd\spo_p2.ac3 7: c:\bd\spo_p27.sup 8: c:\bd\spo_p28.sup
Each track is called individually by the track# and then the destination, file name and the type of file you want. Chapters can only be .txt files, video tracks can only be .mkv files, subs can only be .sup files, but audio files can be either .flac or .ac3 files.
Another reason to use the second method will be when there is two or more DTS-MA tracks on the Playlist. The Arcsoft DTS decoder can only handle one (1) DTS-MA track at a time so you cannot do a full track extract using the first method I showed you. You will have to pick the individual DTS-MA you want and use this second method to extract.
I have timed both methods and you will find that it takes the exact amount of time to do the second method as it does the first so might as well use the first (unless you have two or more DTS-MA tracks). Not only that, but using the second method does not give you the detail information of the sub track and you will not know if there is any forced subs.
Let’s return to the first method.
With all those files in your extracted folder it is time work on subs. If you are like me and do not care about subs then you can skip this step unless its a foreign language film and you will need this step to create subs for your viewing.
Each of the subtitle .sup files will need to be OCR’d in SupRip so they can be used in the MKV. This will be a bit tedious and may take some time. Another alternative method is to search the web for a .srt file for your movie that has already been extracted and synched to your disk. This will save you lots of time since each .sup file can take between 1-2 hours to get fully OCR’d and corrected. You will see in a minute what I mean.
Launch SupRip and open the English subtitle track and you will see this:
If you click on “Auto-OCR” the app will do its best to OCR all the characters. More likely than not it will only learn and replace an additional 5-10% so you will have to manually do the rest by clicking on each of the missing characters and entering the appropriate letter(s) and hit return to go to the next one. Like this:
After you are done you will switch to the SRT tab and see the timeline and when you are completely finish you will Save the .srt file and that can be used to add subs to your MKV. (The following screencap does not have the OCR complete but you can see what it looks like):
Now that you have all the files needed to make a complete MKV let’s get to the merging part.
If you already installed MKVToolNix you will find an application called “mmg.exe”. This is mkvmerge and you will use it to put all those parts together (merge) and make your final MKV. When you launch mkvmerge you will have the option to select any of the parts that you want to include in your final MKV. In this example I will be selecting the video track (.mkv) and the English TrueHD audio track that was converted to FLAC. You will notice that I did not add any subtitles (.srt files) but if you wanted to add them this would also be the place to add them.
In this second screencap I am showing you where you add the Chapters to assure you have perfect scanning and seeking.
Make sure you have enough room in your destination hard drive and make sure you give the Output file the extension of “.mkv”. When ready, press the “Start muxing” to create your MKV. Depending on size of all the files you will be waiting between 400-1200 seconds (6-20 minutes). Any errors will be displayed in the Warning area but I seldom see any except when there is a subtitle timing error and those are easy to fix.
Now that the final MKV is done lets compare the sizes of the two versions. The original Blu-ray disk was 43.0GB and the final MKV without all that added “stuff” is a reasonable 22.5GB. That is almost a 50% savings in hard drive space. Not only that but now you don’t have to sit through all those bloody trailers, commercials, and previews that are crammed down our throats when the SKIP button is disabled. Not only that but now you can truly enjoy full HD audio on your HTPC without worrying about downsampling.
Now that we have a finished and playble MKV file lets set up your media player. To play the MKV you will need one of the many DirectShow media players out there. I prefer MPC-HC due to its filters that allow hardware acceleration of VC1 files with ATI 4xxx series cards. I have also found that the madFlac filter is by far the best FLAC audio decoder but it is a x86 only filter so if you are using x64 you will be better off trying ffdshow and tweaking it to play. I have no idea how to do it so I won’t even try to tell you how.
madFlac will convert the flac into a bit-perfect LPCM and output it either via HDMI or via any analog 5.1/7.1 connections you have. The audio quality of madFlac is incredible so if you have HDMI audio output be prepare for some audio candy.
My media player of choice is Media Player Classic – Home Cienma (MPC-HC). It is by far the easiest to set-up and it is not a CPU hog. The internal filters are awesome and if you have an ATI video card you can full GPU acceleration with VC1 files. The latest release version is 1.2.908 but there are various SVN nightly releases if you want to tinker.
Here is the screencap of the Blu-ray disk we just remuxed to MKV. (Click for full sized versions)
Here’s filter list during playback of the same file.
I think this is the longest blog posts I have ever made so I am going to end it here. I am sure there are lots of questions people will have so either post a comment, email me, or catch me on Twitter @yesanotherblog and I will try to answer them as best I can.