Guide for Re-encoding Blu-ray to x264 MKV With MeGUI

This guide will show you how to re-encode a Blu-ray movie to a x264 Matroska container (.MKV).

Before starting please note that most computers will take over 32 hours to encode a 1080p movie with the recommended profile here (although you can also do a much faster profile which I will briefly cover). I do not recommend encoding on any laptop/netbook or desktop with lower specs then an Intel 2.4 Ghz Core 2 Duo. On lesser computers you may not be able to multitask or even move your mouse until encoding is complete. It took about 18 hours to encode the movie in this guide at an average of 9.74 FPS on the first pass and 2.78 FPS for the second pass on a Intel Core i7 @ 2.66 Ghz with 12GB of RAM and the HDDs in Raid0. Whatever computer you use, ensure that it has adequate cooling.

You will need:

– A Computer with Windows XP, Windows Vista, or Windows 7 (Windows XP users must have .NET Framework 2.0 installed to use MeGUI, untested in Windows 7 and will remain so until RTM)

AnyDVD HD, version 6.5.4.0 or above although current version is always recommended to remove the latest BD+ protection

AviSynth 2.5, (I used version 2.5.8, install first)

MeGUI latest stable, (install second)

MKVToolnix for Windows, (install third)

ffdshow, media decoder and encoder (may not be required in Windows 7, I used the “tryout” December 22, 2008 build)

Haali Media Splitter

eac3to 3.16 (extract to the root of C:\ or another location you will remember)

– Plugins for AviSynth, Mirror 1, Mirror 2, Mirror 3 (extract to Program Files > AviSynth 2.5 > plugins)

SurCode DVD DTS, DTS audio encoder (not required if the source audio is AC3)

– Blu-ray compatible drive

– Blu-ray Movie

Setup:

Open MeGUI and update everything (an update screen should open on it’s own), when asked to import presets select and import everything. Close MeGUI. It may be a good idea to restart your computer at this time.

Put the Blu-ray disk in your drive.

Step 1:

Rip BD to Harddisk with AnyDVD (ending with step 3).

Step 2:

Open MeGUI.

Go to Menu Bar > Tools > AVS Script Creator.

Input  the main movie, found within BDMV > STREAM (normally the largest *.m2ts). A preview window should open — leave it open.

Step 3:

Leaving the preview window open, pull up the  “AviSynth script creator” window again. More options should be visible.

Tick “Crop” and then click “Auto Crop” (you may need to manually crop).

Next tick “Resize”, if you know what the true resolution is type it in, if not tick “Suggest Resolution (mod16)” then untick “Suggested Resolution (mod16)”.

Set Input DAR to ITU 16:9 NTSC.

If you want to do a 1080p (source) encode skip to step 4 (which I will be doing), if you want to reduce the resolution to 720p continue with this step.

My movie is 1920 x 816 (see the resize field), so I will use a table to figure out what resolution I must use for a 720p encode.

1080p Resolutions:
AR            Resolution

1.333:1 = 1400 x 1080
1.666:1 = 1800 x 1080
1.777:1 = 1920×1080

1.839:1 = 1920 x 1044
1.846:1 = 1920 x 1040
1.853:1 = 1920 x 1036

2.341:1 = 192o x 820
2.352:1 = 1920 x 816 <– this is my source resolution
2.364:1 = 1920 x 812
2.376:1 = 1920 x 808
2.388:1 = 1920 x 804
2.400:1 = 1920 x 800
2.412:1 = 1920 x 796

720p Resolutions:
AR            Resolution

1.333:1 = 960 x 720
1.666:1 = 1200 x 720
1.777:1 = 1280 x 720

1.839:1 = 1280 x 696
1.849:1 = 1280 x 692
1.860:1 = 1280 x 688

2.335:1 = 1280 x 548
2.352:1 = 1280 x 544 <– this is what my 720p resolution will be
2.370:1 = 1280 x 540
2.388:1 = 1280 x 536
2.406:1 = 1280 x 532
2.424:1 = 1280 x 528

Once you figure out your new resolution, type it in the resize fields.

Step 4:

Go to the last tab, titled “Edit”, this is where you can add filters such as ‘sharpen’. Generally with 1080p encodes you will leave the encode as close to the source as possible.

At the bottom of the textbox write:

ConvertToYV12()

While it is very detailed and complex what this actually does, in short it can improve your encode and make everything a little smoother.

If you first would like to do a sample encode enter the following code at the bottom of the text box:

trim(xxxx,yyyy) # xxxx is the starting frame and yyyy is the ending frame so for 500 frames you will type trim(4736,5236)

Uncheck “On Save close and load to be encoded”, and then save.

If the MeGUI Script Creator and preview windows do not close, you can do so.

Step 5:

Now we get to work with the audio.

To check what audio streams you have to work with, open Command Prompt (Start > All Programs > Accessories).

You must change CMD to use the directory eac3to is in. I extracted eac3to to my C drive so I must type “cd c:\eac3to316” (316 is the build number).

I placed Bedtime Stories on my desktop in a folder called “bedtime_stories” so I must type “eac3to c:\users\admin\desktop\bedtime_stories0000.m2ts” (please note that this will not work if you have a space in any of the folders or file names).

After processing the streams, eac3to will list them (explained below).

1)  H.264/AVC this is the video, you can also see that it is 1080 pixels in hight, runs at an average of 24 FPS, and has an aspect ratio of 16:9.

2) DTS Master Audio this is an audio stream, you can see that it has 5.1 channels (used for a 5.1 surround sound system), and has a bitrate of 1509. This is the one we are looking for it can be called many different things, take note whether it is an AC3 stream or not.

3 & 4) AC3 this is another audio stream, Bedtime Stories was released with both French and Spanish languages as extras so this is one of those, bitrate of 640.

5 – 9)  These are all subtitles, I’m not entirely sure what they all are although the movie includes English, French and Spanish subs.

Remember the track position of the desired audio stream.

This guide will now split for extracting the audio,

For AC3:

Use the following command:

eac3to “<drive>:\<folders>\<file name>.m2ts” <track>: “<drive>:\<folders>\audio_track<track number>.ac3”

So if I wanted the spoken language for my movie to be French I would write:

eac3to “c:\users\admin\desktop\bedtime_stories0000.m2ts” 3: “c:\users\admin\desktop\bedtime_stories\audio_track3.ac3”

Wait for eac3to to extract your audio (continue with step 6).

For DTS or True-HD:

If the audio is a form of DTS (such as this one) or True-HD you must have SurCode installed before continuing.

Use the following code:

eac3to “<drive>:\<folders>\<file name>.m2ts” <track>: “<drive>:\<folders>\audio_track<track number>.dts” -1536

I will be using:

eac3to “c:\users\admin\desktop\bedtime_stories0000.m2ts” 2: “c:\users\admin\desktop\bedtime_stories\audio_track2.dts” -1536

Wait for eac3to and SurCode to decode the audio to *.wavs, then encode to a *.dts.

Step 6:

Now that we know what format of audio we have we can calculate the bitrate.

Import the AviSynth Script that we just created (under video not audio), a preview window should open — you can close it.

Set the file format to MKV.

To set the bitrate we must go to Menu > Tools > Bitrate Calculator.

For audio type select the format you will be using (AC3 or DTS), for AC3 set the bitrate to 640 and for DTS set it to 1536.

Now you will have to decide on a bitrate. While every movie is different, I normally choose a bitrate anywhere from 9,000 to 14,000 kilobits/second for 1080p and about half that for 720p based on test encodes. This is definitely an art! For Bedtime Stories I found 12,100 kb/s to be good. If this is your first encode I would recommend using a preset of 1 DVD-9.

Click “Apply” (if asked to copy bitrate to video settings hit Yes).

Step 7:

For encoder settings we will create a custom profile, although use “x264: DXVA-HD-Fast” if your computer is slow or you don’t care much about quality and want to shorten the time to encode by about 3x (then skip to step 8).

Set profile to “x264: DXVA-HD-Insane” and click “Config” to change some settings which will speed things up.

Click on the “New” button call this custom profile what you want, I’m going to call mine “Insane Speedified”

Check Turbo, increase Threads to 6, and change the Deblocking Streagth to -3.

Go to the next tab (titled “RC and ME”), increase Number of Reference Frames to 5, uncheck “No Dct Deimation”, change M.E. Algorithm to “Multi hex”, and increase Psy-Trellis Strength to .8.

Next tap (“Advanced”), increase number of B-frames to 5, check B-pyramid, choose “All” for Macroblock Options.

Click “OK”!

You will be asked if you want to update the selected profile click “Yes”.

Step 8:

Now to encode the movie!

Hit Enqueue (the one in the video encoding box), this will queue your movie.

Go to the next tap called Queue, and hit Start.

A new dialog box will open reporting the current speed at which you are encoding along with other helpful info.

Step 9:

At this point you should have an AC3 or DTS audio stream, and an MKV with no audio. We now need to MUX them together into a single MKV.

Open “mkvmerge GUI” (installed with MKVToolnix) and the folder your files for encoding are in.

Drag both streams to the input box in mkvmerge.

Change the file name of the output so it will not overwrite the source.

Hit “Start muxing” and wait a few minutes… Yay! You completed your first encode, you should now be able to play the movie in your favorite media player!

Additional Notes:

Check back for our guide on adding subs to encodes! While you are waiting (it may be a *long* while out), experiment with SubRip to add subtitles to your encode (this can be helpful when the date or location of a scene is not part of the screen but a subtitle).

Post a comment and let us know if you have any tips, questions, or just want to let us know how it went!

Shouts to all of the people and sources who are not listed. I could never have learned how to encode without them!

Check with your governing laws before downloading/installing/enabling/using any of the programs listed here! You assume full responsibility!

720p Resolutions:
AR Resolution
1.333:1 = 960×720
1.666:1 = 1200×720
1.777:1 = 1280×7201.839:1 = 1280×696
1.849:1 = 1280×692
1.860:1 = 1280×688

2.335:1 = 1280×548
2.352:1 = 1280×544
2.370:1 = 1280×540
2.388:1 = 1280×536
2.406:1 = 1280×532
2.424:1 = 1280×528

1080p Resolutions:
AR Resolution
1.333:1 = 1400×1080
1.666:1 = 1800×1080
1.777:1 = 1920×1080

1.839:1 = 1920×1044
1.846:1 = 1920×1040
1.853:1 = 1920×1036

2.341:1 = 1920×820
2.352:1 = 1920×816
2.364:1 = 1920×812
2.376:1 = 1920×808
2.388:1 = 1920×804
2.400:1 = 1920×800
2.412:1 = 1920×796

May 23, 2009 at 12:59 pm 51 comments

Virtualization For Dummies – Free eBook From Sun Systems

Virtualization For Dummies eBook

Buy hard copy at Amazon

May 14, 2009 at 10:16 pm 2 comments

Sir Kitt, a TV Presentor Robolution

This cool Humanoid was built by builder Orac to interview guests at a TV studio in the UK. Sadly it does not look like the recorded segment will air, replacing it with genuine human. Orac commented that he hopes to “enjoy the fruits of [his] labour” by finding some other job for his little friend! It will be interesting to see where Sir Kitt shows up next!

Links:

Check out how Sir Kitt was built (includes many pictures) at RoboSavvy
Orac’s UK Robot Group

May 14, 2009 at 9:26 pm Leave a comment

Guide for Unprotected Blu-ray ISO Playback with PowerDVD

This guide will show you how to watch ripped Blu-ray movies on your computer/HTPC (Home Theater PC) with PowerDVD.

You will need:

– A Computer with Windows XP, Windows Vista, or Windows 7 (you may run into some trouble with XP)

AnyDVD HD, version 6.5.4.0 or above although current version is recommended to remove the newest BD+ protection

Virtual CloneDrive,  version 5.4.2.8 or above (at time of writing this version is still in beta found at the forum)

ImgBurn, version 2.4.2.0 or above (much better quality over MagicISO)

PowerDVD with Blu-ray support (Dell’s DX version works fine), version 7, 8, and 9 all work

– Blu-ray compatible drive

– Blu-ray Movie

Step 1:

Check if AnyDVD is removing protection from Blu-ray.

check if anydvd is removing BD protection

Step 2:

If not already completed, insert your Blu-ray disk in the drive now.

Right click on the red fox icon and click “Rip Video DVD to Harddisk”.

Step 3:

Once the dialog box opens select the source drive (normally drive E) and the destination (a folder under your desktop works good), click “Copy DVD”.

Step 4:

Within the rip folder add the following folders (some may be empty).

BDMV
—–AUXDATA
—–BACKUP
————BDJO
————CLIPINF
————JAR
————PLAYLIST
—–BDJO
—–CLIPINF
—–JAR
—–META
—–PLAYLIST
—–STREAM
CERTIFICATE

Step 5:

Open ImgBurn and choose “Create Image from Files/Folders” (may differ from version to version).

Step 6:

Drag the BDMV and CERTIFICATE folders (plus any other folders that may be there) to ImgBurn.

Step 7:

Under “Options” set File System to UDF and UDF Revision to 2.5.

Step 8:

Under ‘Labels’ type the name of the movie in the UDF field and select the destination for the ISO. Once complete, continue.

ImgBurn will now create your ISO (this process will only go as fast as your computer/HDD, so RAID0 helps!).

Step 9:

To mount the ISO for playback with PowerDVD go to Start > Computer (“My Computer” for XP users).

In Computer right click on the Virtual CloneDrive  and go Virtual CloneDrive > Mount. Locate the image and select “Open”

AutoPlay should now open and you can watch your movie. Now where’s the popcorn?

Additional Notes:

Post a comment and let us know if you have any troubles.

See our Guide For Blu-ray Quality x264 Encodes!

This guide has been largely based on the “Guide for Unprotected Blu-ray ISO for PowerDVD”, by Adbear… Thanks for this great info mate!

Check SlySoft’s AnyDVD HD forum for unsupported movies and be sure to update AnyDVD often!

Check with your governing laws before installing/enabling/using AnyDVD! You assume full responsibility!

April 24, 2009 at 9:10 pm 3 comments

Solving The Dell Studio XPS 435mt’s Noise Issue

As of February 17 2008 we have not heard any official or unofficial reply from Dell regarding the Dell Studio XPS.

Background:

I have been using Dell hardware since 2002 with Windows XP and have been very happy with the quality and manufacture support (my first Pent4 laptop from Dell has had over $500 in repairs at no cost to me, the second laptop bought in 2007 from Dell has never needed repairs at the time of writing).

Back in November 2008 I ordered a Dell Studio XPS 435mt for HD video editing although due to backorder I received it in December.

Overall the Studio XPS 435mt is well worth the price receiving some of the best benchmarks, but ever since first startup though it has been *very loud*.

What I Did:

1st Round:

About 2 weeks after a call to Dell about this issue, a “computer service person” from Dell came to my house to replace 2 fans which did not help at all. After this attempt from Dell and being told that the noise is in a “normal range”, I checked online for ANYTHING that could solve my problem. At the time (now in early January) I found 2 sites. One was Desktop Review which reported thatonce it [the fans] happened with such suddenness and ferocity that I almost jumped”. The other site was VOIDWARE contributor “hugh” which said that the old case fan is audible” and “wanted to improve the case cooling and noise reduction”. The solution hugh used was to replace the case fan with a Xilence 92mm fan from QuietPC. After hugh’s mods (see WOIDWARE for everything he/she did) they reported that “at 25% fan, it’s pretty much inaudible and the GPU runs at under 50 degrees running the desktop”. After a 4 week backorder on the new fans from QuietPC, and replacing the case fan with the same fan hugh used, my GPU runs at 73C idle (about 30C degrees higher than before the fan replacement) this is not an acceptable temperature.

2nd Round:

Today (Sunday, February 15), being the day after the case fan replacement I’m not entirely sure what I will do as a next step. Some helpful information includes the Dell Community who’s member “oc1” said that “The fan that I took out of my 435MT is rated 70 CFM”, while 70 CFM may be a little high of a number, the Xinence 92mm fan is rated at only 27.45 CFM. oc1 also said that they “got the Nexus fan from endpcnoise.com in Vancouver, Washington”, after a week of usage oc1 said that with the Nexus the CPU was “running from 39 to 44 degrees Celsius” although at the same time admitted “I haven’t really done anything like video rendering that really puts a load on the processors”.

Fixes that I am considering is the Nexus fan, Anti-Vibration Feet (like furniture pads), Anti-Vibration Fan Mount, and Fan Gaskets I may also try Acoustic Materials.

Please comment if you have any tips, or are having the same issue!

–Scotty

Remember to use a static strip before working on electronics.

Neither the author, nor RIBO Labs is affiliated with any of the manufactures, companies, or products listed. We are completely independent.

Check your warranty before making any changes to your computer. You assume full responsibility if you break your computer, get shocked, or anything thing else bad happens! 😛

February 15, 2009 at 1:46 pm 45 comments

Emotiv And Robotics

A new wave of mind control will be upon us soon, this time for the end user!

We have seen the WiiMote bring greater levels of human input to gaming in a huge scale (over 29.62 million Wii units sold at the time of writing). The Wii also brought down the cost of this technology so more people could buy it. The Nintendo DS (NDS) and Apple iPhone brought touchscreens to the mainstream.

So why not take game control to the next level? Emotiv is doing just that, mind control for PC games. I first saw this new interface device back in early 2008 thinking it would be amazing if brought in the real world. My idea was to interface this with a Windows program for remote controlling a NXT robot. If a success, interfacing it with a humanoid robot.

In the last week I have been playing with the SDK to great success! The “EmoKey” program can link different thoughts, emotions, or facial motion to input key commands to your Windows PC which I can then use to control a robot. Sadly the Emotiv EPOC costs $299 (USD), a bit much for what I’d be doing… I did not even know *if* this would work for physical objects (what I am trying to do) up until a few days ago! I was watching a recording of the Discovery’s new show “Prototype This!” where the team built cars that would shut off if the builder gets angry (which also triggered for excitement). There was a beautiful test where they bent a spoon by “pushing” with their mind at the spoon, sending input to the computer, then sending an articular a message to pull on the spoon (seen below).

You can see the full episode on the Discovery website until January 15, 2009.

Video of early beta:

Public release is set for Christmas 2008!

Will this make PC gaming cooler? Will mind control be successful? Will Nintendo fight back? Where will this next gen technology be going next?

Emotiv Demo

Emotiv

October 28, 2008 at 7:59 pm Leave a comment

Gumstix Overo™ Earth To Replace Verdex Line

The GumStix Verdex product line will not be sold after December 2008.

The good news is that the Texas Instruments base “Overo” line will replace the old design, while the Verdex Pro will still be sold. Overo is *smaller* then a single piece of gum (unlike the Verdex and Verdex Pro which are the size of a stick of gum)! Starting price will be less then the XL6P, with more power!

Overo will have a USB Host so existing robotic daughter boards should still will work.

GumStix Overo

October 28, 2008 at 6:08 pm 2 comments

RIBOtic Winter 2007

Although not open to the public, the first ever RIBOtic has taken place at RIBO Labs deep in the Northen Wisconsin forests.

Justin’s robots and my robots fought it out from Friday November 28 to Saturday December 1st.

Justin finaly got his first robot (Lego Mindstorms NXT) after seeing how much fun we had at iHobby Expo 2007.

We first had the Lego Sumo battles. Which with my robots motors at 40% could win. While up here Justin fixed some of his programs which aloud for some cool random movements!

After the sumo robots battled it out, I saw the little Lego heli blades in my collection of parts and said “I wonder if we could make it fly…” After 6 – 8 hours of work, and some of Justin’s and my ideas, we got it to fly! Not the best flyer in the world, but with a hard crank it would lift up 3 feet!

The next day we worked on a LEGO(r) rock crawler, based on a quick through together one that I built 4 days earlyer.

Check out the videos:

–Scotty

February 2, 2008 at 4:11 pm Leave a comment

Robot File Sharing

I have wanted a good place to save and share robot related files. We have YouTube for videos, which works very well. But the file sharing has not come as far yet. This is understandable, though, as more people will watch videos then download files, and they need to make money also.

Listed below are the best file sharing sites yet:

MediaFire – Tons of ads, hard to find the little “download” button once on the page. You can add a description and title for your file. Files will stay online forever.

SkyDrive – Personally, I like the folder layout of SkyDrive, although you can not yet drag files from one folder to another – you must re-upload the files. The files do not have a page for them where you can add a description or title. Online time for files is unlimited.

I feel that we will soon see good file sharing sites like YouTube.

If you know of any good file sharing sites, please let us all know by posting a comment!

–Scotty

February 1, 2008 at 5:02 pm 1 comment

Robotic Wire Protection

My Bioloid has been running quite a bit and the wires are starting to get chewed up, so I have been looking into wire protection. I will put non-abrasion sleeving over the wires then put shrink tubing over the plugs and wire protection to reduce wear on the wire near the plugs.

Right now I am ordering Non-Fray Expandable Braided Sleeving from Cable Organizer. I will let you know how well this form of protection works.

A split wire:

Diagram of the protection concept:

Cable Organizer

–Scotty

Update –

I ordered both 1/8 inch and 1/4 inch sleeving in 1 foot lengths to see which size works best. 

February 1, 2008 at 2:56 pm Leave a comment

Older Posts


Chat

Feeds

Copyright 2008 Scotty Rippel

RSS Recent Robots-Dreams Posts

  • An error has occurred; the feed is probably down. Try again later.

RSS Recent Posts From Artificial Intelligence (aaai.org)

  • An error has occurred; the feed is probably down. Try again later.

RSS Recent Robot Watch Posts

  • An error has occurred; the feed is probably down. Try again later.

Pages

May 2024
S M T W T F S
 1234
567891011
12131415161718
19202122232425
262728293031