30 Days of Linux: Day 6 – Blu Ray ripping time with MakeMKV and Handbrake

Did some testing with MakeMKV and Handbrake.  MakeMKV is designed to rip your Blu Ray discs to an MKV container format.  What you do from there is more important, as you will end up with a huge file in the neighborhood of 30-70 odd Gigabytes!  This is where Handbrake comes in (install instructions for both below).  With Handbrake, you trans-code the video (transforming its internal format).  This will result, when done properly, into a much smaller file size, and often a better file all together.  Getting the “proper” or “correct” settings is the hard part.

Getting the right settings involves some trial and error.  I could go through the endless settings, but what works for me, may not for you.  I can* however, give you some insight:

Read on for more:

First we need to install both (My test system: Debian/Ubuntu/Mint)

Handbrake:

  1. Open up the terminal
  2. sudo apt-add-repository ppa:stebbins/handbrake-snapshots
  3. sudo apt-get update
  4. sudo apt-get install handbrake-gtk
  5. That’s it!

MakeMKV:

  1. Download the binary code and source code of MakeMKV
  2. http://www.makemkv.com/download/makemkv-bin-1.8.1.tar.gz
  3. http://www.makemkv.com/download/makemkv-oss-1.8.1.tar.gz
  4. Note: full forum post regarding above is here: http://www.makemkv.com/forum2/viewtopic.php?f=3&t=224
  5. Install GNU compiler, linker, header and library files for the libraries “glibc”, “openssl-0.9.8”, “zlib”, “expat” and “qt4” by opening Terminal Emulator in the Applications Menu under Accessories and typing
  6. sudo apt-get install build-essential libc6-dev libssl-dev libexpat1-dev libgl1-mesa-dev libqt4-dev
  7. Navigate to Downloads within the Home folder
  8. Open and extract both makemkv-bin-1.8.1.tar.gz and makemkv-oss-1.8.1.tar.gz with Archive Manager.
  9. Return to Terminal Emulator and navigate to the extracted folder of the source code by typing
  10. cd ~/Downloads/makemkv-oss-1.8.1/
  11. Compile the source code by typing
  12. make -f makefile.linux
  13. and
  14. sudo make -f makefile.linux install
  15. Now navigate to the binary code by typing
  16. cd ~/Downloads/makemkv-bin-1.8.1/
  17. Compile the binary code by typing
  18. make -f makefile.linux
  19. and
  20. sudo make -f makefile.linux install
  21. That’s IT!  Exhausting right!?!?

MakeMKV decryption:

Ok, so now lets dive in.  Put your Blu Ray disc into your Blu Ray Drive. Proceed to open up MakeMKV and click the big ol’ drive icon:

MakeMKV will now read/preview the decoding/decryption of your disc.  You may choose to only rip a certain title, and that is entirely up to you.  Typically the main movie is in the first five titles (t01-t05), or seen by being the largest file size in the first 1-10 titles.  Be warned, if you decide to rip the entire movie, it can take some time.  For my Core 2 Duo Intel processor on the ol’ HTPC, it took roughtly 30-40 min.  Take note of where your download files are being stored for the next step

SPECIAL NOTE: time for a Pro Tip bro – after MakeMKV reads your disc, hit the stream button at the top of the application to enable a UPnP protocol stream of your move!  This is fairly painless to play back in XBMC (VLC can do this as well):

Handbrake transcode:

This is where things get complicated, and I really could go on and on in this section.  The preferred general settings are with the  Normal and High Profile Settings.  We could go ON and ON forever on what to tweak and what not to tweak.  At the bottom of this post is a good set of suggested settings I found, as well as some links to some helpful posts.

What I have see many people do, is use the base Apple TV (1280 x 720) preset, then modify it to include Large File Size (top half of program, check box).  This is the part where you REALLY have to experiment.  If you leave a comment below, I will do my best to help you.  The other typical setup is to use the MKV format, instead of Apple’s MP4 format.  In either case, the H.264 codec is preferred (see video section tab in application).  Please do also take note of the “Picture Settings” button at the top.  This is where you can modify filters (deinterlacing), and adjust the resolution, among other things.

One of many preferred Blu Ray presets:

——————————-

DVD
——————————-

Base Preset: High Profile

MP4 File
Large File Size: On
Web Optimized: On

  • Picture:
    • Anamorphic: Loose
    • Cropping: Automatic
  • Video Filters:
    • Decomb: Default
    • Others: Off
  • Video:
    • Codec: H.264
    • Framerate: Same as source, Variable
    • Constant Quality: RF19-20
  • Audio:
    • Track 1:
      • Source: AC3 Dolby Surround
      • Codec: AAC (faac)
      • Mixdown: Dolby Pro Logic II
    • Track 2:
      • Source: AC3 Dolby Surround
      • Codec: AA3 Passthru
      • Mixdown: None
  • Advanced:
    • Adaptive Direct Mode: Automatic

——————————-
Bluray
——————————-
Base Preset: High Profile

MP4 File
Large File Size: On
Web Optimized: On

  • Picture:
    • Anamorphic: None
    • Keep Aspect Ratio: On
    • Cropping: Automatic
  • Video Filters:
    • Decomb: Default
    • Others: Off
  • Video:
    • Codec: H.264
    • Framerate: Same as source, Variable
    • Constant Quality: RF21-22
  • Audio:
    • Track 1:
      • Source: DTS 5.1ch
      • Codec: AC3 (ffmpeg)
      • Mixdown: Dolby Pro Logic II
    • Track 2:
      • Source: DTS 5.1ch
      • Codec: AC3 (ffmpeg)
      • Mixdown: 6-channel discrete
      • Bitrate: 640
  • Advanced:
    • Adaptive Direct Mode: Automatic
Advertisements

About professorkaos64

www.libregeek.org

Posted on 20130616, in Uncategorized and tagged , , , , , , , , . Bookmark the permalink. 2 Comments.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s