View Full Version : DVD-Audio decryption and conversion guide
Wilbert
21st August 2007, 23:04
As title :) It can be found here:
http://avisynth.org/mediawiki/DVDAGuide
I hope you will like it, and i'm expecting your comments!
Zodraz
22nd August 2007, 17:28
Very useful and interesting. :thanks:
Just few notes:
- LPCM is not an abbreviation for Linear Pulse Compression Modification, but for Linear Pulse Code Modulation (http://en.wikipedia.org/wiki/LPCM)
- There is more ways to reproduce multichannel FLAC files, beside of the foobar (The KMPlayer, VLC...). AFAIK, the foobar is not the open source as it is stated.
- DigiOnAudio is not mentioned for MLP decoding.
mommyman
23rd August 2007, 08:09
worth to be mentioned too:
- apparently dvdcpxm cannot decrypt encrypted VR content, although it can process MKB on CPRM protected media (DVD-RAM).
- DVDAExplorer won't extract MLP track properly if it is indexed. Only the first segment of such track will be processed.
- MLP to WAV converter is a feature of DigiOnAudio2 Professional.
xkodi
27th August 2007, 20:20
- DVDAExplorer won't extract MLP track properly if it is indexed. Only the first segment of such track will be processed.
i can confirm that, good example of such DVD-Audio disc is "Diana Krall - Love Scene", but i didn't know that such structure is called "indexed MLP track", thank you, it's good to know that.
however, it's not hard to write program that extracts indexed MLP tracks, i've made one to extract the MLPs from my "Diana Krall - Love Scene" DVD-Audio disc, but the sad thing is that my hdd failed and the source code was lost (no backup).
- MLP to WAV converter is a feature of DigiOnAudio2 Professional.
again very good note, "DigiOnAudio2 Professional" is very fast and can write correct WAVE_FORMAT_EXTENSIBLE headers for both stereo and multichannel files, so FLAC and other applications can recognize the resulted WAV files as with valid header.
@ mommyman
do you know something about the CCI bits (Copy Control Information)?
as far as i can see dvdcpxm set them to 0x00 and "DVDARipper 0.99f" set them to 0x04, but because i don't know the exact meaning of those bits, i don't know which is correct.
mommyman
28th August 2007, 09:31
i can confirm that, good example of such DVD-Audio disc is "Diana Krall - Love Scene", but i didn't know that such structure is called "indexed MLP track", thank you, it's good to know that.
I don't know the official name of this structure either:)
do you know something about the CCI bits (Copy Control Information)?
See "3.3 Digital CCI Configuration" in http://www.4centity.com/data/licensing/adopter/200312CPPM_Compliance_Rules_DVD_Audio2.pdf
Difference between 0 and 4 should be in "Audio Quality Parameter": 0 for "00b", 4 for "10b". According to this spec 4 is the correct one: "When Audio Copy Permission is set to any state other than “10b” or “11b” (i.e. "00b" or "01b") the Audio Quality Parameter shall be set to “10b”."
xkodi
28th August 2007, 10:35
See "3.3 Digital CCI Configuration" in http://www.4centity.com/data/licensing/adopter/200312CPPM_Compliance_Rules_DVD_Audio2.pdf
Difference between 0 and 4 should be in "Audio Quality Parameter": 0 for "00b", 4 for "10b". According to this spec 4 is the correct one: "When Audio Copy Permission is set to any state other than “10b” or “11b” (i.e. "00b" or "01b") the Audio Quality Parameter shall be set to “10b”."
thank you!
but i'm completely puzzled now, because yesterday i made very simple test, using "Minnetonka discWelder CHROME" i've generated AOBs with all possible combinations of CCI options (that discWelder has in the CPPM settings) and then look at the headers with hex editor, here is the table of the CCI bits:
(the digits on the left are the binary representation of the byte that contains the CCI bits and on the right is the meaning, taken from the "Minnetonka discWelder CHROME" CPPM settings)
00 000 00 0 --> Copying Permitted without Restrictions
11 000 00 0 --> No Copying Permitted
10 000 00 0 --> Copying Permitted with Restrictions, Number of Copies: 1, Max Quality: 2 ch/48 kHz/16 bit
10 001 00 0 --> Copying Permitted with Restrictions, Number of Copies: 2, Max Quality: 2 ch/48 kHz/16 bit
10 010 00 0 --> Copying Permitted with Restrictions, Number of Copies: 4, Max Quality: 2 ch/48 kHz/16 bit
10 011 00 0 --> Copying Permitted with Restrictions, Number of Copies: 6, Max Quality: 2 ch/48 kHz/16 bit
10 100 00 0 --> Copying Permitted with Restrictions, Number of Copies: 8, Max Quality: 2 ch/48 kHz/16 bit
10 101 00 0 --> Copying Permitted with Restrictions, Number of Copies: 10, Max Quality: 2 ch/48 kHz/16 bit
10 111 00 0 --> Copying Permitted with Restrictions, Number of Copies: Not Restricted, Max Quality: 2 ch/48 kHz/16 bit
10 000 01 0 --> Copying Permitted with Restrictions, Number of Copies: 1, Max Quality: 2 ch
10 001 01 0 --> Copying Permitted with Restrictions, Number of Copies: 2, Max Quality: 2 ch
10 010 01 0 --> Copying Permitted with Restrictions, Number of Copies: 4, Max Quality: 2 ch
10 011 01 0 --> Copying Permitted with Restrictions, Number of Copies: 6, Max Quality: 2 ch
10 100 01 0 --> Copying Permitted with Restrictions, Number of Copies: 8, Max Quality: 2 ch
10 101 01 0 --> Copying Permitted with Restrictions, Number of Copies: 10, Max Quality: 2 ch
10 111 01 0 --> Copying Permitted with Restrictions, Number of Copies: Not Restricted, Max Quality: 2 ch
10 000 10 0 --> Copying Permitted with Restrictions, Number of Copies: 1, Max Quality: Not Restricted
10 001 10 0 --> Copying Permitted with Restrictions, Number of Copies: 2, Max Quality: Not Restricted
10 010 10 0 --> Copying Permitted with Restrictions, Number of Copies: 4, Max Quality: Not Restricted
10 011 10 0 --> Copying Permitted with Restrictions, Number of Copies: 6, Max Quality: Not Restricted
10 100 10 0 --> Copying Permitted with Restrictions, Number of Copies: 8, Max Quality: Not Restricted
10 101 10 0 --> Copying Permitted with Restrictions, Number of Copies: 10, Max Quality: Not Restricted
10 111 10 0 --> Copying Permitted with Restrictions, Number of Copies: Not Restricted, Max Quality: Not Restricted
when i have time i will verify the discWelder results and what the document says for consistency ...
... but obviously when all restrictions are off in the discWelder, it sets 0x00 for CCI, which is in break with the document you pointed, so discWelder and dvdcpxm do the same thing - set the CCI bits to 0x00 and "DVDARipper 0.99f" do what the paper says and sets the CCI bits to 0x04 ...
so it is still an open question for me, maybe in practice 0x00 is treated exactly the same as 0x04, because maybe when the first too major bits of CCI bits are zero, all other bits are ignored by the player, but to remove any doubt, test with standalone DVD-Audio player is required, if when plays copy of DVD-Audio disc with CCI bits set to 0x00 the player says 2 ch/48 kHz/16 bit, then 0x00 is wrong, but if with both 0x00 and 0x04 it says for example 5.1 ch/96 kHz/24 bit, then both values are good.
RoyalScam
10th September 2007, 22:06
I've got a question...
All I've seen so far are instructions on how to rip and convert 5.1 channel DVD-A tracks to wav.
How would you rip and convert the stereo (2 channel) DVD-A tracks present on most DVD-A discs? That's all I really want to do, and I can't seem to apply the guide's steps to that task.
Wilbert
11th September 2007, 00:12
How would you rip and convert the stereo (2 channel) DVD-A tracks present on most DVD-A discs? That's all I really want to do, and I can't seem to apply the guide's steps to that task.
Are you able to demux them with DVDAExplorer_a7.exe?
RoyalScam
11th September 2007, 17:58
Are you able to demux them with DVDAExplorer_a7.exe?
I am able to rip the DVD-A Audio TS folder with DVDFabHDDecrypter. I can then open the IFO file with DVDAExplorer_a7, and see the stereo tracks in Title 2 (Title 1 is multi-channel on this disc).
When I select a track and try to extract it, the choice for "Convert to WAV" is greyed out and unselectable. I am able to extract it to a MLP file.
Incidentally, on the "Copy Control info" field of each track in DVDAExplorer_a7, some say "Copying: Freely", and some say "Copying Restricted 1 copy", and all are listed as limited to 16bit/48khz.
Wilbert
12th September 2007, 20:21
When I select a track and try to extract it, the choice for "Convert to WAV" is greyed out and unselectable. I am able to extract it to a MLP file.
I don't get it completely. Those 5.1 tracks, are these also MLP? If so I guess you are using PPCMRipper to convert those (straight from the disc)?
You need some special (ie non-free) tools to convert MLP tracks, but i can't help you with that.
RoyalScam
13th September 2007, 00:22
I don't get it completely. Those 5.1 tracks, are these also MLP? If so I guess you are using PPCMRipper to convert those (straight from the disc)?
You need some special (ie non-free) tools to convert MLP tracks, but i can't help you with that.
No...I'm not using PPCM Ripper, nor am I even touching the 5.1 tracks.
The steps I outlined above are exactly what I've done. When I select a stereo hi-rez track from within DVDAExplorer_a7 and choose "Extract", there is a pop up window with a greyed out choice to "Convert to WAV". So I hit "Extract" and I wind up with an extracted track on my hard drive with a ".mlp" extension.
???
Zodraz
13th September 2007, 13:25
Your tracks are MLP encoded. If you select some track, you would see on main window Stream type - Packed PCM, and in Save As dialog under Save as type - Packed PCM File (*.mlp). You need to decode those MLP tracks to WAV with some another tool mentioned in this guide (or DigiOnAudio Pro which is not mentioned).
ydobon
16th September 2007, 20:26
Thanks a lot for your guide, Wilbert. Much better than the old WinDVD/PPCMRipper method.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.