How to rip Blu-ray to MP4 with H264 video using Handbrake
Handbrake is a pretty popular program as it has been around for quite a few years and as the number of visits to this guide can tell is among the most popular tools for DVD to H.264 conversion. The latest version added Blu-ray support, so we will use it in this guide in order to create a high definition 1080p MP4 file with H.264 video.
You can download Handbrake from our downloads database using the link below.
Before starting the encoding process with Handbrake you need to use an unlocking software to circumvent the Blu-ray’s protection. I really suggest you let AnyDVD HD do that job. You can download it here. Besides just running AnyDVD HD in the background, a good idea would be to rip the whole disc to the hard drive first. Read this guide to find out how you can do that.
Open up Handbrake. Make sure the High Profile (1) is selected and then select Source -> Video File (2).
Browse to the BDMV folder of your Blu-ray disc and inside the STREAM folder select the biggest m2ts file and click Open. Unfortunately Handbrake does not support seamless branching Blu-rays yet so if you don’t have just one big m2ts file follow this guide to demux your Blu-ray disc manually and remux it in an mkv file. Then import the mkv file and follow the rest of this guide.
With the movie loaded it is time to set the output file by clicking Browse (1). The MP4 container should be already selected. Now in the picture tab (2) you can set the output size. In this example we are keeping the full resolution so we selected Strict anamorphic. If you want to downscale to 720p select Loose in the anamorphic setting, set the Modulus to 2 and manually set the width to 1280. Cropping should be set to Automatic (3) in order to remove the black bars from the movie. Do not worry about the 1920×798 resolution in this example, the movie is 1080p quality-wise, we just got rid of the black bars by cropping them. Open the Video (4) tab and move to the next step.
The codec we will use is of course H.264. Now a few words about the settings here. In this example I will use constant quality (1) with a 20 value. Constant quality is a faster encoding method than the traditional 2-pass option and tries to keep a constant quality on all your files, regardless of the movie lenght or content. That however means that you cannot know how big the file will be as it depends on the movie length, the CQ setting and the actual content. Usual values range from 18 to 26, with 18 being the “best” and 26 the “worse” quality. I am using this option for my mkv backups as I prefer to base my encoding on video quality and not file size.
Of course, you can always select the 2-pass option by setting a Target Size and enable 2-Pass Encoding. The Turbo first pass option will help you save some time without a slight decrease on quality so if you want to encode faster, select it as well. I suggest you give at least 4GB to your file if you are using 1080p and at least 2GB for 720p. If you go over 4GB select Large file size next to the MP4 container option. Now click the Audio (2) tab.
Here you have to select the audio track you want to add in the MP4 file (1). Selecting AC3 Passthru (2) will actually make an AC3 track off your DTS audio as DTS is not supported by the MP4 format. You can also downmix to stereo AAC using Dolby Pro Logic II. You can preserve you DTS audio by using the MKV container instead of MP4 and Handbrake will copy the Core stream for you if you select DTS Passthru (not available when using MP4). Learn more about the DTS-HD audio in Blu-ray discs here and about Handbrake’s audio options here.
Make sure you click Add track (3) after selecting the right track and settings and that it appears in the list below. Then click Subtitles (4).
Here you can add subtitle streams in your MP4 file. Unfortunately Handbrake does not support processing Blu-ray subs, so you keep to have them in SRT format. If you do, import them (1) and then after setting the language (2) and if you want them to appear by default, click add (3) to add them to the list below.
That’s all. Just click the Start button at the top and a few hours later you will have a HD MP4 file.
If you have problems you can use the comments form below in order to ask any question you may have. You can also check the rest of the Blu-ray rip guides here.