BluRay Elementary Stream (ES) Processing Guide PDF Print E-mail
Sunday, 13 April 2008 05:08

This guide will show you how to process raw 1080p video and raw lossless HD audio straight from BluRay disc/iso for viewing on your NMT.  It is completely GUI based so you will not have to type any command lines.  Basically just click and go. 

I have been working on this guide on and off for the last couple months but keep in mind half of it was written while I was completely baked out of my mind but I have gone over it sober and it makes sense to me and seems to be in order.  Some of the diagrams may appear a little confusing but I have confidence those reading this are smart enough to figure it out. 

All of the methods in my guide have been tested from iNTERNAL HDD and I cannot guarantee  results when streaming over a network.  The guide is also not 100% complete yet hence the v1.0.  I hope to be able to eventually finish the subtitle section and add some stuff to other sections but that may or may not happen.  Originally it was going to be a BluRay/HD-DVD ES guide but now that HD-DVD is out of the picture I decided to focus on BluRay.  Please note I did 'copy and paste' one section of this guide from another forum which I do give a link to.  Also note that I personally prefer to keep BluRay in it's original M2TS container and that is reflected in the guide. 

I do this because I may want to author these files onto BluRay Disc in the future and they need to be in an M2TS container for that.  You can choose either TS or M2TS when muxing.  I hope this guide is able to help some of you to get the most out of your NMT.  Please post any questions you might have and either I or some one else will do our best to help.   Enjoy!

Hardware Requirements
* NMT (Duh :P)
* BD-Rom drive (OPTIONAL)


Software Requirements

* Axx to BluRay ISO's (OPTIONAL)

* AnyDVD HD  http://www.slysoft.com/en/anydvdhd.html (COMMERCIAL) (Can rip ALL discs) (OPTIONAL)

* DVDFab HD Decrypter   http://www.dvdfab.com/free.htm (Can only rip SOME discs) (OPTIONAL)

* TsRemux   http://forum.doom9.org/showthread.php?t=125447

* tsMuxeR  http://forum.doom9.org/showthread.php?t=134104

* RemuxToolUI   http://www.networkedmediatank.com/viewtopic.php?t=1921

* BDedit    http://forum.doom9.org/showthread.php?t=125903

* TSSplitter  http://www.ffprojects.net/tssplitter/tssplitter.htm 

* eac3to http://forum.doom9.org/showthread.php?t=125966) (You will need libav + Sonic Cineplayer HD-DVD filters)

* Eac3to_and_More_GUI  http://forum.doom9.org/showthread.php?t=135095 (Note: I use v1.05b1 - newer versions have         different layout but the instructions are pretty much the same)

* Surcode DTS Encoder http://www.surcode.com/low/dvdDts/dvdDts.htm (COMMERCIAL)



Ripping


Step 1
-------

-If your source is BluRay disc rip the disc with AnyDVD HD/DVDFab HD Decypter (self explanitory)

Step 2
--------

-Now that the files are on your HDD, one way or the other, you will need to figure out which one is your main movie file(s).  It will be the biggest M2TS file in the bunch.  If you have several M2TS files with the movie spread across them this is called Seamless Branching.  If your disc/iso does not have seamless branching please proceed to the audio section of the guide.  There are different procedures for MPEG2 and AVC seamless branching.  This is how you handle it:



Seamless Branching (MPEG2)
                                            

 BDedit + TSSplitter
 ----------------------

 http://forum.slysoft.com/showthread.php?t=11770

Qoute from the above forum
Our goal is to find and identify the different movie stream in correct chronological order -

Note:
Seamless branching have 2 or more xxxxx.m2ts files that when concatenated together comprise the entire movie. They are either one of 2 types:

Easy ones (e.g. The Patriot, 00138 & 00139.m2ts), where 2 large xxxxx.m2ts files are obviously the movie and can easily be verified beginning to end in show time. These are easy to manipulate and will look & feel like xxxxx.evo’s present in HD-DVD’s.

Hard ones (e.g. Waiting, Close Encounters), where multiple xxxxx.m2ts files are spread about and finding the correct order the conventional way would be a nightmare…a marvelous program, BDedit, to the rescue.

Open BDedit

Browse for location of movie "c:\targetmovie\BDMV"

A slew of info should come up; the one we're interested in is on the play list tab. Use the xxxxx.mpls arrow to scroll down through each xxxxx.mpls file, there may be a lot (waiting had 480+). When scrolling pay attention to the subjugate .m2ts files in the window below

- vast majority will have only 1
- some will have a couple
- 1 or 2 will have 20+... that’s our movie file with the correct xxxxx.m2ts chorological order listed


 -Open TSSplitter

-> File -> Open for joining

When adding files for joining, make sure to select "all files" in drop down, not the default "TS files."

In the example directly above, we’re joining Waiting together in the correct order specified by BDedit

 
 Now you have to remux the file to fix timestamps/headers and this is how you do it:
 
 
  1. Open TsRemux and select your newly joined M2TS file. 
  2. Select the main video track and audio you want to keep. 
  3. Select M2TS under 'Output Format'
  4. Give your new file a name/location
  5. Click 'Remux'
  6. After that you're seamless branching BluRay is ready for further processing if necessary 
  

  
   
  
  RemuxToolUI
  ---------------
  
  TBA
   http://www.networkedmediatank.com/viewtopic.php?t=1921
   
   
                                                                       Seamless Branching (AVC)


  
  -If you have a seamless branching title that is encoded with AVC it will need further processing.   Follow the above steps for MPEG2 Seamless Branching but exclude the final remuxing with TsRemux:
   
  1. Open TsRemux and input your joined M2TS file
  2. Right click on the AVC video stream and choose 'Demux AVC Video Stream to elementary stream'
  3. Name it Video.264 (you can use any name just make sure to use .264 extension ) and click 'Save'
  3a. Right click on your chosen audio stream and choose 'Demux Audio stream to elementary stream'
  3b. Give your file a name (AC3=*.ac3 / DTS=*.dts / DTS-MA=*.dtshd / TrueHD=*.mlp /  LPCM=*.pcm) (Not pictured)
  3c. If you are planning on doing DTS-MA/TrueHD -> LPCM you will need to process the audio before continuing to the next step.
 
 

  4. Open tsMuxeR and add your Video.264 file then your audio
  5. Select 'M2TS Muxing'
  6. Press 'Start Muxing'
  7. Done
 
  
  

-Now you are ready to move on to audio :)  


   
AUDIO


AC3/DTS

TsRemux

 (1)select your main M2TS file and just select the main video track and the AC3/DTS audio track. 
 
 (2)Select M2TS in 'Output Format' and a location/name for your new M2TS file.
 
 (3)Select M2TS and press 'remux'.  After this you will have an M2TS file that will play on the NMT.
 
 


tsMuxeR

(1) Input your main M2TS file and select the main video track and AC3/DTS audio. 

(2) Select M2TS muxing.  Press 'Start Muxing'.

(3) Done.

RemuxTool

(1) Input your main M2TS file and select

(2) Click 'Save As', when prompted select a name and save as 'M2TS(Raw)'.

(3) Done.

LPCM

-You can play 5.1/7.1 LPCM loseless HD audio tracks on the NMT via HDMI.  SPDIF will only give you 2ch.  For some reason you need to have two audio tracks when using LPCM or you will get no sound.  This is how you do it with:


TsRemux

1. Open TsRemux and input your M2TS file
2. Choose your main video file, LPCM audio, and the next smallest audio track
3. Select M2TS in 'Output Format'
4. Press 'Remux'
5. Done


tsMuxeR

1. Open tsMuxeR and add your M2TS file
2. Select your Video + LPCM audio + 2nd audio
3. Select 'M2TS' muxing
4. Press 'Start Muxing'
5. Done


RemuxToolUI

1. Open RemuxToolUI and input your M2TS file
2. Select your Video + LPCM audio + 2nd audio
3. Click 'Save As', name your file, and select 'M2TS Raw'
4. Done


LPCM -> DTS


-If you have an SPDIF AVR you can transcode LPCM -> DTS.  You will need the Surcode DTS encoder.  Here is the easiest way to do it:


1. Open Eac3to_And_More_GUI.  Two windows will open.  Keep both open.  In the large window click on the 'Paths/Sources' tab.  Provide the path to eac3to.exe and the path to your output file.
2. Click 'Add Source File'
3. Click 'List Tracks'.  The video and audio tracks will show up in the small window. (Only located in 'Eac3to Audio' tab in newer versions)


4. Click on the 'Eac3to Audio' tab and select the correct LPCM track number
5. Name the track 'Audio' (or whatever you want)
6. Save as type 'dts'
7. Copy all other settings in diagram
8. Press 'Run Command Line'



9. Open tsMuxeR and add your M2TS file
10. Keep your main video and remove/uncheck all unwanted audio streams
11. Add your DTS file as first audio stream
12. Select 'M2TS Muxing'
13. Press 'Start Muxing'
14. Done

 DTS-HD Master Audio (core)
 
 As of this writing DTS-MA core pass through is not supported so you have to do it yourself in order to hear the 'core' of a DTS-MA track.  This is how you do it with:

  
 TsRemux

 
 (1) Select the main M2TS file and select your main video track and the DTS-HD audio track. 
 
 (2) Check 'DTS HD to DTS' box.
 
 (3) Select M2TS under output format and press 'remux'.  You will then have a working DTS track.
 

  
  tsMuxeR
  ----------
 
 (1) Select the main M2TS file, select your main video track and DTS-HD audio track. 
 
 (2) Click on the DTS-HD track and Under 'General Track Options'  Check 'DTS-HD -> DTS'. 
 
 (3) Select 'M2TS Muxing', name the file and Press 'Sart Muxing'. 
 
 (4) Done.
 
 

   
   RemuxToolUI
   ---------------
  
  
  (1) Input your main M2TS file, select the main video and audio track.
 
  (2) Check 'Core dts-HD'
 
  (3) Click 'Save As', when prompted name the file and select save as M2TS(Raw).
 
  (4) Done.
 

 
DTS-MA -> LPCM

-If you have HDMI audio you can transcode DTS-MA -> LPCM to retain the lossless HD audio.  Here is the easiest way to do it:


1. Open Eac3to_And_More_GUI -> Confirm path to eac3to.exe and your output path(optional)
2. Press 'Add Source File' and add your M2TS file
3. Press 'List Tracks' and the tracks will show up in the small window (only located in 'Eac3to Audio' tab in newer    versions)


4. Go to the 'Eac3to Audio' tab and select your DTS-MA track
5. Name the file 'Audio' (or whatever you want)
6. Save as type 'wav'
7. Press 'Run Command Line'

8. Open tsMuxeR and add your M2TS file
9. Keep your main video -> remove all but one audio track -> 'add' your LPCM audio as first audio track
10. Select 'M2TS Muxing'
11. Press 'Start Muxing'
12. Done 

TrueHD (Core)

If you just want the 640k AC3 'core' of a TrueHD track this is how you do it with:

TsRemux
-----------

    1.  Open TsRemux and select your main M2TS file. 
    2.  Select the main video track and the TrueHD track. 
    3.  Check 'TrueHD to AC3'. 
    4.  Select M2TS under 'Output Format'. 
    5.  Give your file a name/location
    6.  Press 'remux'.  You will then have a standard 640k AC3 track that is playable on the NMT.
   

   
tsMuxeR
----------

    1. Open tsMuxeR and 'add' your M2TS file
    2. Select/check your main video and TrueHD audio tracks
    3. Single-click on your TrueHD track and in 'General Track Options' check 'Down convert TRUE-HD to AC3'
    4. Select 'M2TS muxing'
    5. Select your filename/location
    6. Press 'Start muxing'
    7. Done


    
   
RemuxToolUI
---------------

    1. Open RemuxToolUI and 'input' your M2TS file
    2. Select your video and TrueHD track by single clicking on the streams
    3. Check 'Core Dolby TrueHD'
    4. Click 'Save As', name your file and select M2TS(Raw)
    5. Done

    
TrueHD -> DTS

     1. Open Eac3to_And_More_GUI and specify the path to eac3to.exe
     2. Specify your output path (optional)
     3. Click 'Add Source File' and select your M2TS file
     4. Click 'List Tracks' and the tracks will show up in the small window (only located in 'Eac3to Audio' tab in newer versions)

    



     5. Select your TrueHD track
     6. Name your file
     7. Save as type 'dts' (set bitrate @ 1536)
     8. Click 'Run Command Line'
    
 

     9. Open tsMuxeR and 'add' your M2TS file
     10. Remove unwanted audio streams and retain main video then 'add' your DTS track as first audio track
     11. Select 'M2TS muxing'
     12. Give your file a name/location
     13. Click 'Start muxing'
     14. Done

     
TrueHD -> LPCM

If you have HDMI audio you can transcode Dolby TrueHD to LPCM and this the easiest way to do it:

1. Open Eac3to+And+More+GUI and specify your path to eac3to.exe  (Keep both windows open)
2. Specify your output path (optional)
3. Press 'Add Source File' and select your M2TS file
4. Press 'List Tracks' (Only located in 'Eac3to Audio' tab in newer versions) and the video/audio tracks will be shown in the small window

5. Click on 'Eac3to Audio' tab
6. Select your TrueHD track
7. Name your file
8. Save as type 'wav'
9. Press 'Run Command Line'

10. Open tsMuxeR and 'add' your M2TS file
11. 'Add' your LPCM track and 'up' it to first audio -> 'remove' all other audio stream except one track
12. 'Choose M2Ts muxing
13.  Give your new file a name/location
14. Pres 'Start muxing'
15. Done


                                                                             Subtitles
          
         
-Well to be honest BluRay subtitle processing for the NMT can be VERY tricky and time consuming.  BluRay subs, SUP files, have to be converted into SRT format and while there are handful of apps that do that I can not find one that is 100% accurate. 

It would involve literally going through all the subs in each movie and manually fixing/OCRing certain characters/character sets and that can literally take hours.  This has been holding up the publishing of this guide and I am tired of trying to figure it out.   My best advice for those of you who have to have subs is to hop on to Google and do a search for SRT subs for your movie.  There are lots of subtitle sites out there so it shouldn't be too hard to find what you're looking for.  You will need to place the SRT file in the same directory as your TS/M2TS file and make sure it has the same name:

Movie.m2ts
Movie.srt

You may have to change M2TS -> TS to get the subs to work.  This is bug and has been noted in the official bug list thread.  I apologize and I hope to eventually find an app that is 100% accurate.  Time will tell.

Article published with permission from EPiPHON3 of the networked media tank forum. We thanked him for the hardwork in writing this great user guide!



Add this page to your favorite Social Bookmarking websites
Reddit! Del.icio.us! Mixx! Google! Live! Facebook! Technorati! StumbleUpon! MySpace! Joomla Free PHP
 

User Login






Lost Password?
Forgot your username?
No account yet? Register

Shopping Cart

Shopping Cart

Your Cart is currently empty.

Subscribe Mailing List

RSS