rica
14th September 2008, 16:52
Hi,
You audio entusiasts may want to make your own BluRay backups keeping the audio as it is:
How to extract audio and how to remux it without any loss?
Your HTPC and your traditional A/V receiver with analog cables will be enough.
Lets take a look at BD/HD HD audio formats:
Uncompressed:
PCM/LPCM
Lossless:
Dolby TrueHD, DTS-HD MA (Both- variable bitrate)
Lossy HD:
Dolby D+(eac3), DTS_HD HR (Both- constant bitrate)
Here eac3to will be used for demuxing and TSMuxer/TSRemux for remuxing.
Lets start:
_ _ _ _ _ _ _ _ _ _ _ _ _
UNCOMPRESSED:
PCM:
Uncompressed:
PCM/LPCM:
A PCM track is an exact replication of the studio master, encoded on disc without compression if the replication is exactly the same as the studio master as un-downconverted. -edited-
The benefit to this is that it maintains the purity of the source without any loss of fidelity that may come from compression.
All Blu-ray disc players are required to support PCM audio while PCM is not a very popular due to the enormous amount of disc space required,PCM is not a very popular option on HD DVD.
demux:
eac3to input.m2ts output.pcm
reorginising pcm with Pcm2Tsmu to be recognized by TSMuxer:
Pcm2Tsmu input.pcm output.pcm -i 16
Remuxing to m2ts with TSMuxer.
_ _ _ _ _ _ _ _ _ _ __ _ _ _ _ _ _
LOSSLESS:
Lossless:
TrueHD:
Dolby TrueHD is a "lossless" compression codec. Although it is compressed to take up less disc space than a PCM track, once decoded it
is bit-for-bit identical to the studio master.
Support for TrueHD up to at least 2 channels is mandatory on all HD DVD players, but the majority will support it all the way to 5.1.
Discs with TrueHD tracks must also contain a Dolby Digital Plus track for 5.1 compatibility.
TrueHD is an optional format on Blu-ray. And since TrueHD is not built in a core+extension configuration, Blu-ray discs that contain a TrueHD track are also required to contain a standard Dolby Digital AC-3 track for compatibility with players that don't support TrueHD.
DTS-HD Master Audio:
Another lossless audio codec similar to Dolby TrueHD.
The difference between the two is that DTS-HD MA is built in a core+extension configuration (just like DTS-HD HR).
DTS-HD MA works in a core+extension configuration.
DTS_HD MA is optional for both BD/HD so the players which don't support DTS-HD MA, will extract the standard DTS core.
TrueHD:
BD Dolby TrueHD \It has to carry an ac3 since trueHD is an optianal format for BD:
eac3to\eac3to.exe "F:\INPUT\00002.m2ts" 7: "C:\output.thd+ac3"
------------------------------------------------------------------------------
M2TS, 1 video track, 5 audio tracks, 13 subtitle tracks, 1:44:15
1: Chapters, 16 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
*********
7: TrueHD/AC3, English, 5.1 channels, 48khz, dialnorm: -27dB
8: Subtitle (PGS), English
***************
[a07] Extracting audio track number 7...
[a07] Removing AC3 dialog normalization...
[a07] Removing TrueHD dialog normalization...
[a07] Creating file "C:\output.thd+ac3"...
Video track 2 contains 149977 frames.
eac3to processing took 18 minutes, 22 seconds.
Done.
As seen this process is just an extraction of ac3+ truehd.
HD-DVD Dolby TrueHD/mandantory format for HD-DVD: (doesn't include any ac3 since it is mandantory)
eac3to\eac3to.exe E:\HD\BLOOD_DIAMOND_HDDVD\HVDVD_TS\feature.evo 4: C:\TEST\test_02.thd+ac3
------------------------------------------------------------------------------
EVO, 2 video tracks, 6 audio tracks, 6 subtitle tracks, 1:11:18
1: VC-1, 1080p24 /1.001 (16:9) with pulldown flags
*********
4: TrueHD, English, 5.1 channels, 48khz, dialnorm: -27dB
5: E-AC3, French, 5.1 channels, 640kbps, 48khz, dialnorm: -27dB
***********
[a04] Extracting audio track number 4...
[a04] Removing TrueHD dialog normalization...
[a04] Extracting audio track number 4...
[a04] Removing TrueHD dialog normalization...
[a04] Decoding with libav/ffmpeg...
[a04] Encoding AC3 <640kbps> with libAften...
[a04] Creating file "C:\TEST\test_02.thd+ac3"...
[a04] This audio track has a constant bit depth of 16 bits.
Video track 1 contains 102564 frames.
Video track 2 contains 128146 frames.
eac3to processing took 4 minutes, 35 seconds.
Done.
As you see, eac3to adds an ac3 interleaved as madshi said:
If you want to make a demuxed HD DVD TrueHD track (or a Blu-Ray TrueHD track demuxed by an older eac3to version) fit for Scenarist Blu-Ray muxing you can do this:
Code:
eac3to source.thd dest.thd+ac3This will automatically create an AC3 track and interweave it with the TrueHD track. Of course if your source is an HD DVD folder,
you can directly do e.g. "eac3to hddvdMovie 1) 1: video.mkv 3: audio.thd+ac3". That will demux the TrueHD track and interweave an AC3 track at the same time.
If you just want to make the TrueHD track Blu-Ray compatible, but don't want to actually *ever* make use of the embedded AC3 track, you can ask eac3to to use
a really low bitrate to save space, e.g. "eac3to source dest.thd+ac3 -192".
Please be aware, though, that there's no TrueHD encoder available at this time (at least not for us consumers). So you cannot convert LPCM tracks or any other
formats to TrueHD. You can only convert TrueHD tracks to TrueHD/AC3 or vice versa. Please also be aware that you cannot specify an external AC3 file
to be used for interweaving. eac3to will always create a new one (by transcoding the TrueHD track to AC3 during processing) - except when demuxing
a TrueHD/AC3 track from a single-part m2ts movie.
So the method i follow:
demux:
eac3to input.m2ts(/evo) output.thd+ac3
Remux to m2ts with TSMuxer first,
Remux this m2ts with TSRemux to m2ts again.
NOTE:Some Blu-ray disks which have playlists containing multiple m2ts files carry audio ovarlaps/gaps.
If this audio file is a TrueHD, this can't be corrected by eac3to. In this case truehd must be converted to pcm or flac.
DTS_HD MA:
demux:
eac3to input.m2ts(/evo) output.dtshd (or dts)
Remux to m2ts with TSMuxer.
_ _ _ _ _ _ _ _ _ _ _ __ _ _ ___
LOSSY:
Lossy :
DD+
An enhancement over standard Dolby Digital, DD+ offers higher bit rates and more efficient compression, resulting in improved sound quality.
It can also support movie soundtracks up to 7.1 discrete channels.
DD+ is the base standard audio format for HD DVD. Unlike its application on Blu-ray, DD+ on HD DVD does not utilize a core+extension configuration.
Unfortunately, DD+ is optional on the Blu-ray format, and not all disc players are required to support it. Many players will simply read
the 640 kb/s core and disregard the extension.
As a result, most movie studios prefer to use either basic Dolby Digital AC-3 or some of the other advanced formats.
DTS-HD (HR):
Similar to Dolby Digital Plus, DTS-HD High Resolution is an enhancement over standard DTS that offers higher bit rates and better compression.
DTS-HD HR is also encoded as an extension to a "core" DTS track. (Note that DTS-HD HR is sometimes referred to as just "DTS-HD", which can be
confusing and possibly misleading).
Since this codec is optional for both on HD-DVD and Blu-ray, many players will only extract the (edited) DTS core and ignore the extension
DD+:
demux:
eac3to input.evo output.eac3
Remux to m2ts with TSMuxer.
You can do that. But playback will probably only work on HTPCs (if at all). Blu-Ray standalone players will not support this. And external media players (e.g. TViX and NMT) will probably not support it, either. HD DVD style E-AC3 tracks are simply not Blu-Ray compatible.
Yes, he is right. So forget it. I was just investigating whether the selected audio is working or not; i've missed the BD compatibility point. In that case convert it to ac3: use ac3 instead of eac3 (edited)
DTS-HD HR:
demux:
eac3to input.m2ts (/evo) output.dtshd (or dts)
Remux to m2ts with TSMuxer.
_ _ _ _ _ _ _ _ _ _ _ _ __ _
Playing:
First of all i remuxed all induvidual audio tracks (-without video) into m2ts and opened them on GraphStudio.
The chain was:
FileSource(Async) > Arcsoft MPEG Demux > Arcsoft audio decoder HD > Default Direct Sound Device.
Of course you can't be so sure which format you are listening since properties pages of the DS filters don't give the right info-except splitter-
This time i made short BluRays adding the video to the raw audio files and finally checked from info of Arcsoft TMT.
Everything was fine, i saw all the disks i made showed the right audio info.
Finally i compared audio only m2ts files with the BDs; i felt no difference.
Btw, thanks to nautilus7 for his help.
Some additional notes:
1) Don't confuse the core dts( existing in both DTS-HD formats) with additional ac3 to Dolby TrueHD on BDs.
Core dts is a must for decoding process of DTS_HD while additional ac3 is a should for backward compatibility. (on BD)
2) Pure TrueHD can be found on HD_DVDs and no any other program can recognize it except eac3to.
3) I think we can go on...(with some suggestions from the experts?)
Sources:
http://www.highdefdigest.com/news/show/1064
http://www.tomsguide.com/us/high-def-audio-hdmi,review-1088-4.html
Dolby and DTS white papers.
dts.com/DownloadDocument.aspx?q=a7beda1e-cfe6-4ca4-b6b2-cda9554bb6a5
download DTS-HD whitepaper, i strogly suggest this one for whom is confused with connections between A/V receiver and player.
_ _ _ _ _
You audio entusiasts may want to make your own BluRay backups keeping the audio as it is:
How to extract audio and how to remux it without any loss?
Your HTPC and your traditional A/V receiver with analog cables will be enough.
Lets take a look at BD/HD HD audio formats:
Uncompressed:
PCM/LPCM
Lossless:
Dolby TrueHD, DTS-HD MA (Both- variable bitrate)
Lossy HD:
Dolby D+(eac3), DTS_HD HR (Both- constant bitrate)
Here eac3to will be used for demuxing and TSMuxer/TSRemux for remuxing.
Lets start:
_ _ _ _ _ _ _ _ _ _ _ _ _
UNCOMPRESSED:
PCM:
Uncompressed:
PCM/LPCM:
A PCM track is an exact replication of the studio master, encoded on disc without compression if the replication is exactly the same as the studio master as un-downconverted. -edited-
The benefit to this is that it maintains the purity of the source without any loss of fidelity that may come from compression.
All Blu-ray disc players are required to support PCM audio while PCM is not a very popular due to the enormous amount of disc space required,PCM is not a very popular option on HD DVD.
demux:
eac3to input.m2ts output.pcm
reorginising pcm with Pcm2Tsmu to be recognized by TSMuxer:
Pcm2Tsmu input.pcm output.pcm -i 16
Remuxing to m2ts with TSMuxer.
_ _ _ _ _ _ _ _ _ _ __ _ _ _ _ _ _
LOSSLESS:
Lossless:
TrueHD:
Dolby TrueHD is a "lossless" compression codec. Although it is compressed to take up less disc space than a PCM track, once decoded it
is bit-for-bit identical to the studio master.
Support for TrueHD up to at least 2 channels is mandatory on all HD DVD players, but the majority will support it all the way to 5.1.
Discs with TrueHD tracks must also contain a Dolby Digital Plus track for 5.1 compatibility.
TrueHD is an optional format on Blu-ray. And since TrueHD is not built in a core+extension configuration, Blu-ray discs that contain a TrueHD track are also required to contain a standard Dolby Digital AC-3 track for compatibility with players that don't support TrueHD.
DTS-HD Master Audio:
Another lossless audio codec similar to Dolby TrueHD.
The difference between the two is that DTS-HD MA is built in a core+extension configuration (just like DTS-HD HR).
DTS-HD MA works in a core+extension configuration.
DTS_HD MA is optional for both BD/HD so the players which don't support DTS-HD MA, will extract the standard DTS core.
TrueHD:
BD Dolby TrueHD \It has to carry an ac3 since trueHD is an optianal format for BD:
eac3to\eac3to.exe "F:\INPUT\00002.m2ts" 7: "C:\output.thd+ac3"
------------------------------------------------------------------------------
M2TS, 1 video track, 5 audio tracks, 13 subtitle tracks, 1:44:15
1: Chapters, 16 chapters
2: h264/AVC, 1080p24 /1.001 (16:9)
*********
7: TrueHD/AC3, English, 5.1 channels, 48khz, dialnorm: -27dB
8: Subtitle (PGS), English
***************
[a07] Extracting audio track number 7...
[a07] Removing AC3 dialog normalization...
[a07] Removing TrueHD dialog normalization...
[a07] Creating file "C:\output.thd+ac3"...
Video track 2 contains 149977 frames.
eac3to processing took 18 minutes, 22 seconds.
Done.
As seen this process is just an extraction of ac3+ truehd.
HD-DVD Dolby TrueHD/mandantory format for HD-DVD: (doesn't include any ac3 since it is mandantory)
eac3to\eac3to.exe E:\HD\BLOOD_DIAMOND_HDDVD\HVDVD_TS\feature.evo 4: C:\TEST\test_02.thd+ac3
------------------------------------------------------------------------------
EVO, 2 video tracks, 6 audio tracks, 6 subtitle tracks, 1:11:18
1: VC-1, 1080p24 /1.001 (16:9) with pulldown flags
*********
4: TrueHD, English, 5.1 channels, 48khz, dialnorm: -27dB
5: E-AC3, French, 5.1 channels, 640kbps, 48khz, dialnorm: -27dB
***********
[a04] Extracting audio track number 4...
[a04] Removing TrueHD dialog normalization...
[a04] Extracting audio track number 4...
[a04] Removing TrueHD dialog normalization...
[a04] Decoding with libav/ffmpeg...
[a04] Encoding AC3 <640kbps> with libAften...
[a04] Creating file "C:\TEST\test_02.thd+ac3"...
[a04] This audio track has a constant bit depth of 16 bits.
Video track 1 contains 102564 frames.
Video track 2 contains 128146 frames.
eac3to processing took 4 minutes, 35 seconds.
Done.
As you see, eac3to adds an ac3 interleaved as madshi said:
If you want to make a demuxed HD DVD TrueHD track (or a Blu-Ray TrueHD track demuxed by an older eac3to version) fit for Scenarist Blu-Ray muxing you can do this:
Code:
eac3to source.thd dest.thd+ac3This will automatically create an AC3 track and interweave it with the TrueHD track. Of course if your source is an HD DVD folder,
you can directly do e.g. "eac3to hddvdMovie 1) 1: video.mkv 3: audio.thd+ac3". That will demux the TrueHD track and interweave an AC3 track at the same time.
If you just want to make the TrueHD track Blu-Ray compatible, but don't want to actually *ever* make use of the embedded AC3 track, you can ask eac3to to use
a really low bitrate to save space, e.g. "eac3to source dest.thd+ac3 -192".
Please be aware, though, that there's no TrueHD encoder available at this time (at least not for us consumers). So you cannot convert LPCM tracks or any other
formats to TrueHD. You can only convert TrueHD tracks to TrueHD/AC3 or vice versa. Please also be aware that you cannot specify an external AC3 file
to be used for interweaving. eac3to will always create a new one (by transcoding the TrueHD track to AC3 during processing) - except when demuxing
a TrueHD/AC3 track from a single-part m2ts movie.
So the method i follow:
demux:
eac3to input.m2ts(/evo) output.thd+ac3
Remux to m2ts with TSMuxer first,
Remux this m2ts with TSRemux to m2ts again.
NOTE:Some Blu-ray disks which have playlists containing multiple m2ts files carry audio ovarlaps/gaps.
If this audio file is a TrueHD, this can't be corrected by eac3to. In this case truehd must be converted to pcm or flac.
DTS_HD MA:
demux:
eac3to input.m2ts(/evo) output.dtshd (or dts)
Remux to m2ts with TSMuxer.
_ _ _ _ _ _ _ _ _ _ _ __ _ _ ___
LOSSY:
Lossy :
DD+
An enhancement over standard Dolby Digital, DD+ offers higher bit rates and more efficient compression, resulting in improved sound quality.
It can also support movie soundtracks up to 7.1 discrete channels.
DD+ is the base standard audio format for HD DVD. Unlike its application on Blu-ray, DD+ on HD DVD does not utilize a core+extension configuration.
Unfortunately, DD+ is optional on the Blu-ray format, and not all disc players are required to support it. Many players will simply read
the 640 kb/s core and disregard the extension.
As a result, most movie studios prefer to use either basic Dolby Digital AC-3 or some of the other advanced formats.
DTS-HD (HR):
Similar to Dolby Digital Plus, DTS-HD High Resolution is an enhancement over standard DTS that offers higher bit rates and better compression.
DTS-HD HR is also encoded as an extension to a "core" DTS track. (Note that DTS-HD HR is sometimes referred to as just "DTS-HD", which can be
confusing and possibly misleading).
Since this codec is optional for both on HD-DVD and Blu-ray, many players will only extract the (edited) DTS core and ignore the extension
DD+:
demux:
eac3to input.evo output.eac3
Remux to m2ts with TSMuxer.
You can do that. But playback will probably only work on HTPCs (if at all). Blu-Ray standalone players will not support this. And external media players (e.g. TViX and NMT) will probably not support it, either. HD DVD style E-AC3 tracks are simply not Blu-Ray compatible.
Yes, he is right. So forget it. I was just investigating whether the selected audio is working or not; i've missed the BD compatibility point. In that case convert it to ac3: use ac3 instead of eac3 (edited)
DTS-HD HR:
demux:
eac3to input.m2ts (/evo) output.dtshd (or dts)
Remux to m2ts with TSMuxer.
_ _ _ _ _ _ _ _ _ _ _ _ __ _
Playing:
First of all i remuxed all induvidual audio tracks (-without video) into m2ts and opened them on GraphStudio.
The chain was:
FileSource(Async) > Arcsoft MPEG Demux > Arcsoft audio decoder HD > Default Direct Sound Device.
Of course you can't be so sure which format you are listening since properties pages of the DS filters don't give the right info-except splitter-
This time i made short BluRays adding the video to the raw audio files and finally checked from info of Arcsoft TMT.
Everything was fine, i saw all the disks i made showed the right audio info.
Finally i compared audio only m2ts files with the BDs; i felt no difference.
Btw, thanks to nautilus7 for his help.
Some additional notes:
1) Don't confuse the core dts( existing in both DTS-HD formats) with additional ac3 to Dolby TrueHD on BDs.
Core dts is a must for decoding process of DTS_HD while additional ac3 is a should for backward compatibility. (on BD)
2) Pure TrueHD can be found on HD_DVDs and no any other program can recognize it except eac3to.
3) I think we can go on...(with some suggestions from the experts?)
Sources:
http://www.highdefdigest.com/news/show/1064
http://www.tomsguide.com/us/high-def-audio-hdmi,review-1088-4.html
Dolby and DTS white papers.
dts.com/DownloadDocument.aspx?q=a7beda1e-cfe6-4ca4-b6b2-cda9554bb6a5
download DTS-HD whitepaper, i strogly suggest this one for whom is confused with connections between A/V receiver and player.
_ _ _ _ _