dat720
23rd April 2008, 00:33
Edit: I now own a LG GGC-H20L BD/HD Combo Drive and have started testing this guide with Blu-Ray's and so far it looks to work mostly the same!!!!!
This guide covers the compresion to AVI of BluRay/HD if you want a 1:1 copy look at This (http://forum.doom9.org/showthread.php?t=137151) Guide.
Basic requirements are a FAST Multi Core CPU, and plenty of hard drive space, 2GB or more of Ram. The hard drive space is the biggest requirement, using Transformers as an example you will have about 43GB of files after step 2 and still need up to 20GB of space for the final encode, depending on quality settings.
As a guide encoding a 1920x800 px HD/BR runs at between 4 and 8 fps on my Pentium D 935 (Dual Core 3.2ghz) 2gb RAM with SATA HDD's.
The Tools:
AnyDVD HD 6.3.1.7 newer version available - http://www.slysoft.com/en/anydvd.html
eac3to v2.45 - 21/4/08 from http://forum.doom9.org/showthread.php?t=125966
mkvtoolnix 2.2.0 - 4/3/08 from http://www.bunkus.org/videotools/mkvtoolnix/
Mencoder svn rev 26446 - 04/14/08 from http://oss.netfarm.it/mplayer-win32.php
Haali Media Splitter - 29/03/08 from http://haali.cs.msu.ru/mkv/
1) Inspect Disc
The first step involves gathering information about the HD or Blu-Ray you intend to transcode.
code:
eac3to.exe i: log(1).txt
This command creates a log file containing the streams and info about the streams on the HD/BR.
eac3to v2.41
command line: d:\vidtools\eac3to\eac3to.exe i: log(1).txt
------------------------------------------------------------------------------
EVO, 2 video tracks, 5 audio tracks, 12 subtitle tracks, 2:23:26
"Main Movie"
1: Joined EVO file
2: Chapters, 23 chapters with names
3: h264/AVC, 1080p24 /1.001 (16:9)
4: VC-1, 480p30 /1.001 (3:2), -84ms
5: E-AC3, English, 5.1 channels, 1536kbit/s, 48khz, dialnorm: -27dB, -84ms
6: E-AC3, Italian, 5.1 channels, 768kbit/s, 48khz, dialnorm: -27dB, -84ms
"Italian"
7: E-AC3, Spanish, 5.1 channels, 768kbit/s, 48khz, dialnorm: -27dB, -84ms
"Castilian"
8: E-AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB, -84ms
"Director Commentary"
9: E-AC3, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB, -111ms
10: Subtitle, English, "UK"
11: Subtitle, Italian, "Italian"
12: Subtitle, Spanish, "Castilian"
13: Subtitle, Turkish, "Turkish"
14: Subtitle, Modern Greek, "Greek"
15: Subtitle, Polish, "Polish"
16: Subtitle, Hungarian, "Hungarian"
17: Subtitle, Portuguese, "EU"
18: Subtitle, English, "UK Director Commentary"
19: Subtitle, Italian, "Italian Director Commentary"
20: Subtitle, Spanish, "Castilian Director Commentary"
21: Subtitle, English, "HUD"
Creating file "log(1).txt"...
Done.
2) Demux Tracks
Decide what tracks to demux, from the log file I could see I wanted stream 3: and 5:, and set the next command up appropriately,
Code:
eac3to.exe i: 1) 3: HDDVD.mkv 5: HDDVD.ac3 -libav
f:, is my LG BR/HD Combo Drive
1), is the Feature number
3: HDDVD.mkv, tells eac3to to demux video track 3: to a mkv file
5: HDDVD.ac3 -libav, tells eac3to to demux audio track 5: to a ac3 file using the libav encoder
I used -libav as I have read that the cineplayer codec (which I had installed and would account for previous failed attempts) is buggy and does not produce a good ac3 file for encoding purposes, and i am a cheap skate and wanted to see the results with open source/free software (not counting anydvd).
For Blu-Ray movies you may see a comment at the end of the demux process asking you to rerun the same command to process the overlap information.
A good guide for eac3to is available here http://forum.slysoft.com/showthread.php?t=15543
3) Mux the Tracks to MKV
The next step is mux the ac3 audio and video into a mkv file, you could do this with the command line or the GUI, it's up to you.
Code:
mkvmerge -o HDDVD.mkv --display-dimensions 1:1920x1080 -d 1 -A -S HDDVD.mkv -a 0 -D -S HDDVD.ac3 --track-order 0:1,1:0
4) Encode to prefered format
At this point you could use just about any video encoder that is capable of reading MKV file's, I prefer Mencoder, encode the mkv file into a avi with the following command (alter to suit your tastes/requirements you may also want to do test runs using scale=320:-2 which is significantly faster than the 1920 wide movie, about 4 times on my 3.2ghz Pentium D machine)
Code:
mencoder.exe -vf harddup,crop=1920:800:0:142 -priority normal -o Out.avi -ovc xvid -xvidencopts
bitrate=8500:max_bframes=0:vhq=0:me_quality=6:hq_ac:trellis -channels 6 -oac copy In.avi
Lately i have been doing 2 Pass encodes @ 8.5mb/s and the quality is much the same as a single pass but the final avi can be upto 1-1.5gb smaller.
I suggest a GUI to setup the mencoder command line if you aren't familiar with it, I use automen, which has stopped development, do some searching on google and you will find many Frontends for Mencoder, MeGUI and MediaCoder are a couple that spring to mind.
During the encode you can use a command like this to playback the movie to check sync, using mplayer with the -idx option, mplayer will be able to seek during playback
Code:
mplayer.exe -idx Trans.avi
Once it is complete you should have a perfectly synced AVI.
Once you know the stream numbers you want, you could easily setup a batch file to do every step of this automaticly, start with a fresh HD/BR in the drive run the script and your done by morning, something like this:
Code:
@echo off
eac3to.exe i: 1) 3: HDDVD.mkv 5: HDDVD.ac3 -libav
mkvmerge.exe -o HDDVD.mkv --display-dimensions 1:1920x1080 -d 1 -A -S HDDVD.mkv -a 0 -D -S HDDVD.ac3 --track-order 0:1,1:0
mencoder.exe -vf harddup,crop=1920:800:0:142 -priority normal -o Out.avi -ovc xvid -xvidencopts
bitrate=8500:max_bframes=0:vhq=0:me_quality=6:hq_ac:trellis -channels 6 -oac copy In.avi
You could just as easily encode to a different format, search google for mencoder options or read the mencoder/mplayer manual, and you will see how flexible it is.
Go Easy on me, it's my first guide.
update 9th May 2008:
Succesfully encoded movie's using this method:
2 Fast 2 Furious HD
Blazing Saddles HD
I Am Legend BR
King Kong HD
Live Free or Die Hard BR
Meet the Robinsons BR
Predator BR
Rambo 4 BR
Robocop BR
Serenity HD
Terminator 2 HD
Terminator 3 HD
Terminator BR
The Chronicles of Riddick HD
The Fast and the Furious Tokyo Drift HD<= extra steps were required to hard sub the bits not spoken in english
The Fast and the Furious HD
The Fifth Element BR
The Simpsons BR
Transformers HD
If anyone has any comments or suggestions feel free to let me know.
This guide covers the compresion to AVI of BluRay/HD if you want a 1:1 copy look at This (http://forum.doom9.org/showthread.php?t=137151) Guide.
Basic requirements are a FAST Multi Core CPU, and plenty of hard drive space, 2GB or more of Ram. The hard drive space is the biggest requirement, using Transformers as an example you will have about 43GB of files after step 2 and still need up to 20GB of space for the final encode, depending on quality settings.
As a guide encoding a 1920x800 px HD/BR runs at between 4 and 8 fps on my Pentium D 935 (Dual Core 3.2ghz) 2gb RAM with SATA HDD's.
The Tools:
AnyDVD HD 6.3.1.7 newer version available - http://www.slysoft.com/en/anydvd.html
eac3to v2.45 - 21/4/08 from http://forum.doom9.org/showthread.php?t=125966
mkvtoolnix 2.2.0 - 4/3/08 from http://www.bunkus.org/videotools/mkvtoolnix/
Mencoder svn rev 26446 - 04/14/08 from http://oss.netfarm.it/mplayer-win32.php
Haali Media Splitter - 29/03/08 from http://haali.cs.msu.ru/mkv/
1) Inspect Disc
The first step involves gathering information about the HD or Blu-Ray you intend to transcode.
code:
eac3to.exe i: log(1).txt
This command creates a log file containing the streams and info about the streams on the HD/BR.
eac3to v2.41
command line: d:\vidtools\eac3to\eac3to.exe i: log(1).txt
------------------------------------------------------------------------------
EVO, 2 video tracks, 5 audio tracks, 12 subtitle tracks, 2:23:26
"Main Movie"
1: Joined EVO file
2: Chapters, 23 chapters with names
3: h264/AVC, 1080p24 /1.001 (16:9)
4: VC-1, 480p30 /1.001 (3:2), -84ms
5: E-AC3, English, 5.1 channels, 1536kbit/s, 48khz, dialnorm: -27dB, -84ms
6: E-AC3, Italian, 5.1 channels, 768kbit/s, 48khz, dialnorm: -27dB, -84ms
"Italian"
7: E-AC3, Spanish, 5.1 channels, 768kbit/s, 48khz, dialnorm: -27dB, -84ms
"Castilian"
8: E-AC3, English, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB, -84ms
"Director Commentary"
9: E-AC3, 2.0 channels, 192kbit/s, 48khz, dialnorm: -27dB, -111ms
10: Subtitle, English, "UK"
11: Subtitle, Italian, "Italian"
12: Subtitle, Spanish, "Castilian"
13: Subtitle, Turkish, "Turkish"
14: Subtitle, Modern Greek, "Greek"
15: Subtitle, Polish, "Polish"
16: Subtitle, Hungarian, "Hungarian"
17: Subtitle, Portuguese, "EU"
18: Subtitle, English, "UK Director Commentary"
19: Subtitle, Italian, "Italian Director Commentary"
20: Subtitle, Spanish, "Castilian Director Commentary"
21: Subtitle, English, "HUD"
Creating file "log(1).txt"...
Done.
2) Demux Tracks
Decide what tracks to demux, from the log file I could see I wanted stream 3: and 5:, and set the next command up appropriately,
Code:
eac3to.exe i: 1) 3: HDDVD.mkv 5: HDDVD.ac3 -libav
f:, is my LG BR/HD Combo Drive
1), is the Feature number
3: HDDVD.mkv, tells eac3to to demux video track 3: to a mkv file
5: HDDVD.ac3 -libav, tells eac3to to demux audio track 5: to a ac3 file using the libav encoder
I used -libav as I have read that the cineplayer codec (which I had installed and would account for previous failed attempts) is buggy and does not produce a good ac3 file for encoding purposes, and i am a cheap skate and wanted to see the results with open source/free software (not counting anydvd).
For Blu-Ray movies you may see a comment at the end of the demux process asking you to rerun the same command to process the overlap information.
A good guide for eac3to is available here http://forum.slysoft.com/showthread.php?t=15543
3) Mux the Tracks to MKV
The next step is mux the ac3 audio and video into a mkv file, you could do this with the command line or the GUI, it's up to you.
Code:
mkvmerge -o HDDVD.mkv --display-dimensions 1:1920x1080 -d 1 -A -S HDDVD.mkv -a 0 -D -S HDDVD.ac3 --track-order 0:1,1:0
4) Encode to prefered format
At this point you could use just about any video encoder that is capable of reading MKV file's, I prefer Mencoder, encode the mkv file into a avi with the following command (alter to suit your tastes/requirements you may also want to do test runs using scale=320:-2 which is significantly faster than the 1920 wide movie, about 4 times on my 3.2ghz Pentium D machine)
Code:
mencoder.exe -vf harddup,crop=1920:800:0:142 -priority normal -o Out.avi -ovc xvid -xvidencopts
bitrate=8500:max_bframes=0:vhq=0:me_quality=6:hq_ac:trellis -channels 6 -oac copy In.avi
Lately i have been doing 2 Pass encodes @ 8.5mb/s and the quality is much the same as a single pass but the final avi can be upto 1-1.5gb smaller.
I suggest a GUI to setup the mencoder command line if you aren't familiar with it, I use automen, which has stopped development, do some searching on google and you will find many Frontends for Mencoder, MeGUI and MediaCoder are a couple that spring to mind.
During the encode you can use a command like this to playback the movie to check sync, using mplayer with the -idx option, mplayer will be able to seek during playback
Code:
mplayer.exe -idx Trans.avi
Once it is complete you should have a perfectly synced AVI.
Once you know the stream numbers you want, you could easily setup a batch file to do every step of this automaticly, start with a fresh HD/BR in the drive run the script and your done by morning, something like this:
Code:
@echo off
eac3to.exe i: 1) 3: HDDVD.mkv 5: HDDVD.ac3 -libav
mkvmerge.exe -o HDDVD.mkv --display-dimensions 1:1920x1080 -d 1 -A -S HDDVD.mkv -a 0 -D -S HDDVD.ac3 --track-order 0:1,1:0
mencoder.exe -vf harddup,crop=1920:800:0:142 -priority normal -o Out.avi -ovc xvid -xvidencopts
bitrate=8500:max_bframes=0:vhq=0:me_quality=6:hq_ac:trellis -channels 6 -oac copy In.avi
You could just as easily encode to a different format, search google for mencoder options or read the mencoder/mplayer manual, and you will see how flexible it is.
Go Easy on me, it's my first guide.
update 9th May 2008:
Succesfully encoded movie's using this method:
2 Fast 2 Furious HD
Blazing Saddles HD
I Am Legend BR
King Kong HD
Live Free or Die Hard BR
Meet the Robinsons BR
Predator BR
Rambo 4 BR
Robocop BR
Serenity HD
Terminator 2 HD
Terminator 3 HD
Terminator BR
The Chronicles of Riddick HD
The Fast and the Furious Tokyo Drift HD<= extra steps were required to hard sub the bits not spoken in english
The Fast and the Furious HD
The Fifth Element BR
The Simpsons BR
Transformers HD
If anyone has any comments or suggestions feel free to let me know.