+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 23
Hackers Guild Thread, Converting Blu-Ray Rips to x264 within an .MKV container in Knowledge Zone; Programs Required: Newest Full version of K-Lite Codec Pack. I used 5.4.4 Full. Code: http://www.free-codecs.com/K_lite_co...k_download.htm Avisynth. I had huge problems ...
  1. #1

    Join Date
    Aug 2009
    Posts
    57

    Default Converting Blu-Ray Rips to x264 within an .MKV container

    Programs Required:


    1. Download and install the newest version of the K-Lite codec pack. I'm not sure whether all the profiles work, so probably just go with "Profile 7: Lots of Stuff (With Player)" because I know it works, and then finish the install

    2.1.1. A few things need to be tweaked/changed around within the way K-Lite works to get it to function correctly. First, VC-1 must be enabled in ffdshow. To do this, go "Start > Programs > K-Lite Codec Pack > Configuration > ffdshow Video Decoder".

    2.1.2. Once the ffdshow Video Decoder configuration is open, select "Codecs" in the left pane, and search for "VC-1" in the right. For the VC-1 decoder, by default, it is "Disabled". Selec this, and change to "libavcodec". Then press Apply to save changes.

    2.2.1. Now we need to change VC-1's default decoder. Go "Start > Programs > K-Lite Codec Pack > Tools > Win7DSFilterTweaker".


    2.2.2. Scroll down the list of 32-Bit Direct Show Filters until you see "Set as Default VC-1 decoder:". Select "ffdshow".

    2.3.1. Finally, the splitter used for the .M2TS (Blu-Ray video files) files needs to be changed. Go "Start > Programs > K-Lite Codec Pack > Configuration > Manage Prefered Source Filters".
    2.3.2. Scroll down until you find "M2TS" and select "Haali".


    3. Download and install AviSynth. I'm not gonna post a screenshot of that, because if you can't install that on your own, you really shouldn't be encoding Blu-Ray to x.264 :p
    4. Download EAC3TO and extract it. You can extract it anywhere you like, but I chose the to create a folder called "EAC3TO" in the root directory of C:. Try and make this something small, and easy. It will help later.


    5. Download and install AnyDVD HD
    6. Once AnyDVD HD is installed, right click it's icon in the bottom right corner of the task bar, and select "Settings"

    6.1. Once you have opened settings, click "Video Blu-Ray" in the left pane, and tick "Enable Blu-Ray Support" and "Remove Blu-Ray Region Code".
    Last edited by crazybiker; 01-07-2010 at 03:28 AM.

  2. #2

    Join Date
    Aug 2009
    Posts
    57

    Default

    7. Download MeGUI using the link above.
    7.1. Once you have extracted the files (Make it somewhere easy like your desktop), run "MeGUI.exe".
    7.2.1. To update everything properly, you need to make sure you are connected to the development server for it's updates. To do this, Open the program and go "Options > Settings" or "Ctrl+S".
    7.2.2. Select the "Extra Config" tab and then click the "Configure Servers" button.

    7.2.3. Click the drop-down box, and change the "Auto-Update Servers" from "Stable" to "Development". Then Press "Ok"

    7.2.4. Now Press "Save" in the main settings window.

    7.3.1. Now go "Options > Update" or "Ctrl+U" and we can start doing the actual updating.

    7.3.2. Now give it a minute to load all the updates (There will be quite a few the first time you do it), and once it has stabilised, press "Update"

    7.3.3. Nearing the end of the update procedure, you'll 4 windows for importing presets. Select EVERYTHING. If you get a message saying "Problem importing xxxxx *Scratchpad*" Just "Overwrite profile".
    7.3.4. After all of the imports are complete, MeGUI will ask for you to restart the program. Just click yes.
    7.3.5. Now once the program restarts, you can just close it again. We've finished everything relating to the installing and the most-part of setting it all up. Now we need to continue on with the actual process of ripping, and converting it.



    8.1. Now it's time to start ripping the Blu-Ray. Open AnyDVD HD and then put in the disc. Once the disk goes in, from the liittle icon in the bottom right corner, you will get a little balloon message saying the disc will be ready shortly.

    8.2. Pretty much after that balloon notification goes away, your ready to rip. So go ahead, and right click the little icon, and select "Rip Video DVD to Harddisk..."

    8.3. Another windows should open up. Your source directory (Which should be your Blu-Ray drive) should already be selected, so leave that (Unless for some unknown reason something else is selected). Then select your destination directory. In my case, I chose my the root folder of my W drive. Then press "Copy DVD"

    8.4. Let it do it's thing. For a full blu-ray disk, you're looking for about 40-50 minutes to rip the movie, depending on your drive. If everything in the last few steps has gone well, you should see something like this:

    8.5. Once it's done, you won't get any flashy message saying so, all you get is the program saying "Done" on the same screen where it was previously telling you the percentage that had been completed. Once you see that, feel free to close the program, it's no longer any use to us.

    8.6. Now, for a little future planning, (This is only required if the name of the movie you ripped is more than one word) to make things easier later, more specifically, EAC3TO, open up the drive/directory that you ripped the Blu-Ray too, and replace all the spaces in the folders name, with underscores.
    Last edited by crazybiker; 01-07-2010 at 03:29 AM.

  3. #3

    Join Date
    Aug 2009
    Posts
    57

    Default

    9.0. Now we get to basically start the final leg of it all. Open up MeGUI again.
    9.1. Go "Tools > AVS Script Creator" or "Ctrl+R"

    9.2. Select the Blu-Ray video file by pressing the 3 dots button to the right of the dialog box, and browsing to the directory you rippped it too. Once your in the main folder it's usually located in "BDMV\Stream\xxxxx.m2ts". It should be the largest .m2ts file there. In my case, it's
    Code:
    W:\The_Dark_Knight\BDMW\Stream\00007.m2ts
    . Then press Open.

    9.3. Give the program a few seconds and a preview window should open up. Leave it open
    9.4. Within the AVS script creator, more options should now be available. Tick "Crop" and then press "Auto Crop". NOTE: This will ONLY work if the preview window is left open.

    9.5. Once the auto crop has done it's thing, tick the "Resize" box, and then tick the "Suggest Resolution" and then un-tick "Suggest Resolution"

    9.6. Now use the drop-down box to change the "Input DAR" to "ITU 16:9 NTSC (1.822784)"

    9.7. Untick the checkbox for "On Save close and load to be encoded" and press the "Save" button. It will save the .AVS file to the location of where it finds the movie.

    9.8. Feel free to close the AVS Script Creator window now. You may also close the entire MeGUI window for now. Now we have to move onto extracting the audio, which uses EAC3TO, so as I said, close MeGUI if you want to make things a little easier.
    Last edited by crazybiker; 01-07-2010 at 03:29 AM.

  4. #4

    Join Date
    Aug 2009
    Posts
    57

    Default

    10.1. Time to start extracting the audio. This is where my knowledge really fades away, so, if anyone can see anything incorrect here, please, feel free and let me know. First we need to open command prompt. Do so if you know, if you don't,go "Start > Run > Type 'cmd' " or press "Ctrl + R and type 'cmd' ". Then press "Ok"

    10.2. Now, what you need to do, is changed the directory Command Prompt is looking in to the directory you extracted EAC3TO. If you listened to me, you should be able to directly type my string in to do it, otherwise, you will need to find it out. The command for opening a folder is:
    Code:
    cd <drive letter>:\<directory 1>\<directory 2>\<directory 3>\
    If for some reason, you decided to make life difficult and extracted EAC3TO more than three folders deep, than the pattern just keeps going, I'm just not gonna sit here and type it down to the windows limit of 32000. (This guide's taking long enough :p)

    For me, I type:
    Code:
    cd c:\eac3to
    If you haven't typed something correctly, like forgotten a drive letter, or a backslash, or the folder simply isn't in that location. You will get a message saying:
    Code:
    The system cannot find the path specified
    In that case, go back and try it again

    If it HAS worked out correctly, it won't give you any special message, instead, it'll just have what used to be just:
    Code:
    C:\
    To what it should be for this to finally work now:
    Code:
    C:\EAC3TO>
    Hopefully your Command Prompt window should look something like:


    10.3.1. NOTE: All strings from here on in, will only work if you have successfully opened the EAC3TO directory in Command Prompt. Now, this is where things may get slightly confusing, as I guarantee all of us have placed our movie in different locations. Bear with me though, I'll try and make this as simple as possible.
    What we need to do here, is open the main .M2TS file, with the program to search for the audio streams. The string you have to enter will be:
    Code:
    eac3to <drive letter>:\<directory 1>\<directory 2><directory 3><directory 4><main .m2ts file name>.m2ts
    NOTE: Remember how I said to rename the output folder back in step 8.6? Well guess what, if you've done it, your fine here, if not, you have to remove the spaces from your folders names because this program will not work with spaces in folder names.

    In my case, with the folder stored in the root directory of my W drive, I must type:
    Code:
    eac3to W:\the_dark_knight\bdmv\stream\00007.m2ts
    If everythings worked out, your command prompt window should look a little something like this:


    10.3.2. Here's just the little rundown of what those mean

    1) "Chapters, 39 Chapters" That's just the chapters in the movie. If you want a little more information about the movie, look slightly above that in white bold.

    2) "VC-1, 1080P24 /1.001 <16:9>" That's the main video stream, encoded in VC-1, has a resolution of 1080P, runs at an average of 24 Frames Per Second, and has an aspect Ratio of 16:9

    3) "AC3, English, 5.1 Channels, 640KBPS, 48kHz". That's the Audio stream, and the one that I will be using. It's encoded in AC3, spoken in english, utilizes 5.1 Surround sound, and is at a bitrate of 640kbps. NOTE: You'll need to remember what type of stream it is you are using, whether it's AC3 or DTS for later. For AC3 go to 10.4 for DTS go to 10.5

    4) "True HD/AC3" That's basically the same thing, as you can see, it's got #3 embedded into it anyway.

    5-11) They're all audio streams for different languages.

    12-35) All the subtitles. You can extract these if you want, but I don't know how, and it's not necessary, so I won't be explaining how to do so :p

    10.4. To extract the audio of an AC3 stream, you must use the following command:
    Code:
    eac3to "<Source Drive Letter>:\<Source Folders>\<File name>.m2ts" <Track #>: "<Destination Drive Letter>:\<Destination Folders>\Audio Track.ac3"
    Following that, using my encode as an example, the command would end up being:
    Code:
    eac3to w:\the_dark_knight\bdmv\stream\00007.m2ts" 3: "w:\the_dark_knight\audio_track.ac3"
    If all has worked out correctly, command prompt should show something like this:


    Once it has finished, it should say "Done" and look a little something like:


    10.5. For DTS/TrueHD Audio, I'm extremely sorry, but I haven't dealt with that yet, so I'm not sure on how to do it. Once I come across one, and figure out how to do it correctly, then I shall update this thread. In the mean time, just search for extracting DTS audio from .M2TS files on google....Once again, I apologize.

    10.6. Now you should have successfully extracted the audio from the blu-ray movie. You can now close Command Prompt by pressing the X in the top right corner, or by typing "Exit". Whatever suits you.
    Last edited by crazybiker; 01-07-2010 at 03:30 AM.

  5. #5

    Join Date
    Aug 2009
    Posts
    57

    Default

    11.1. To continue on with this next step (The last thing now, no more opening and closing of anything apart from things within MeGUI)


    11.2.1. Open the AviSynth Script file, by clicking the box "..." that corresponds with the AviSynth Script.


    11.2.2. Browse to wherever you saved the AviSynth Script file, and press "Open".


    11.2.3. A preview windows should open up, similar to that of the one you opened when you created the AviSynth Script. You can close that, as you don't need it at all.


    11.3.1. Under the "Encoder Settings", select "x264: *scratchpad*", and press the "config" button to the right.


    11.3.2. To set up this encoding profile properly, tick the "Advanced Settings" checkbox.


    11.3.3. From here on in with the encoding settings, there are too many things to change for me to type every single one out, so I'm just gonna post the screenshots of what they should look like, and you can adjust everything accordingly. Make sure the "Main" tab is open, and adjust settings accordingly.


    11.3.4. Now open the "Frame-Type" tab, and adjust settings accordingly.


    11.3.5. Now open the "Rate Control" tab, and adjust settings accordinly.


    11.3.6. Now open the "Analysis" tab, and adjust settings accordingly.


    11.3.7. Once those settings are put in, and are all correct, press the "New" button down the bottom of the window, and input a name and press "Ok". This is your new encoding profile that you can select instead of doing this all the time. I'm just naming mine "Custom x264 Profile".


    11.3.8. Then just press "Ok" in the Encoder Config window.
    Last edited by crazybiker; 01-07-2010 at 03:30 AM.

  6. #6

    Join Date
    Aug 2009
    Posts
    57

    Default

    11.4.1. In the main window of MeGUI, press the "AutoEncode" button.


    11.4.2. Set the container to "MKV" by pressing the arrow and opening the drop-down box and selecting MKV.


    11.4.3. Now, with the file-size, it really depends on the type of movie. As a standard, (ie, action movies with the average length), I use 12634MB (DVD9+DVD5). But something that doesn't need as much quality, can be reduced a little. Though this is slightly more complicated, 2 movies that I know of at the moment, The Dark Knight and Transformers 2: IMAX Edition, use 2 different aspect ratios throughout the movie, so they can't be cropped, and in that case, you should increase the file-size to accomodate for the wasted space because of the black bars. In my case, I'm encoding The Dark Knight here, so I'm gonna use 15360MB (15GB).

    To set the file's output size, press the arrow next to "File Size" to open a drop down box, and then click "Select Size"


    11.4.4. A new dialog box should open up where you can input the custom file size. Type in your file-size, and press "Ok"


    11.4.5. Tick the "Add Additional Content (audio, subs, chapters)" box, and press "Queue".



    11.5.1. Once you pressed the "Queue" button in the other dialog box, a new one should have opened up. This is where you add your audio, as well as other things like subtitles.

    11.5.2. Click the button "..." next to the "Input" box for the Audio stream


    11.5.3. Browse to wherever you saved your audio stream with EAC3TO, select it, and then press "Open"


    11.5.4. Once you have inserted the audio stream, press "Go" in that dialog box.


    11.6. Once you have pressed the "Go" button on that last dialog-box, it should close all those other windows, and leave you with just the plain MeGUI window. Now all the processes have been queued, and are ready to be processed.

    11.7. To start the encoding, open the "Queue" tab, and press "Start"

    11.8. Once you press start, a new window will open up telling you how long left, and so forth. Expect to see that for a very long time :p.

    When I did my encode, it took something like 14 hours, on and overclocked Quad-Core.








    Thanks:


    I'd like to say a HUGE thanks to Leo of this forum. I wouldn't have been able to get anywhere without his HUGE help, and quite frankly, his mini tutorial he wrote up for me. Thank you.

    Also thanks to CHAMAVELI for adding all the GamRR tags onto the tutorial images.

    ...and I suppose I should thank the guys at RiboLabs, considering I used a lot of their tutorial aswell.

    Thanks, and I hope you guys understand it. I couldn't have made it any easier :p
    Last edited by crazybiker; 01-07-2010 at 03:33 AM. Reason: Adding the Thanks.

  7. #7
    http://z0r.de/2077 Sabin1981's Avatar
    Join Date
    Aug 2009
    Location
    Tonsberg, Norway
    Posts
    3,523

    Default

    Duuuuuuuuuuuuuuuuuuuuuuuuuuuuude. That was absolutely EPIC!!

  8. #8

    Join Date
    Aug 2009
    Posts
    57

    Default

    LOL...That took me about 2 weeks to write up..

    I don't think I even want to LOOK at MeGUI again for another month.

  9. #9
    I am your Leader! Speed's Avatar
    Join Date
    Jul 2009
    Location
    Northampton
    Posts
    5,967

    Default

    Crazybiker,

    I'm going to be honest with you. I expected a LONG tutorial but.. this is supreme. Really, Well Fucking Done on this. I KNOW how much you've worked on this, because when we've spoken to eachother on MSN.
    It's taken you a good what 2-3 weeks to get it to this, and I know this isn't no copy and paster, you've done this all by hand, by yourself. Well Done.

    What I'd suggest now, is if you ever find out anyone wants to know how to rip a BluRay to a MKV, link them to this forum, because I would suspect barely any sites have this.
    Well Done, and stickied because it's worth every hit.

    @ All Members; I expect everyone to Click Thanks on every post here, because Crazy deserves it.


  10. #10

    Join Date
    Aug 2009
    Posts
    57

    Default

    Don't you worry, everyone who needs to know, is getting sent here, there's no way I'm letting that tutorial get un-used :p

+ Reply to Thread
Page 1 of 3 1 2 3 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts