-/- DOD DVD Speed Ripper v1.0 -\-
---------------------------------
  Coded by dEZZY / Drink or Die



First words
-----------
This version is fairly new, and making it work can be hard.
You're warned:)

And...
You are of course only allowed to use this program with your
own purchased DVD video discs. Else you might be violating
the law, which you really shouldn't do...


Fast instructions
-----------------
1. Insert a DVD video disc.
2. Type "dodsrip d" to get the directory of it.
   (type "dodsrip d >dir.txt" if the directory list is longer than
    your display to redirect the output to a dir.txt) 
3. Type "dodsrip g <lba> <length> <outputfile>" to grab chosen file.

Notes.
- If the output file exists, all data will be _appended_ to the
  end of it. An output file will never be overwritten.
- Length is the size in bytes of the file.
- One LBA (Logical Block Address) is 2048 bytes long.


Configuration
-------------
The program needs to know how where your DVDROM is. This can
be done in two ways: EITHER you can enter your DVDROM drive
letter OR you can use standard device properties, specifying
(Host Adapter, Target ID, Logical Unit Numer). 

If you don't enter anything, it will assume device on address
0,0,0 (Host,Target ID,LUN).

You can specify device by drive letter with this option:

    /d <drive>

dodsrip /d f <command>
(DVDROM on letter F:)


Specify device propertis using these options:

    /h <host adapter>
    /t <target id>
    /l <LUN>

You go to Control Panel->System->Device Manager, open the
CDROM folder, click Properties on your DVDROM, and select
Settings tab - you can see the designated Target ID and LUN
for your drive.

dodsrip /t 5 d
will display directory of the DVD disc on the device at 0,5,0
(Host,Target,LUN).

Note, you may remember this from SCSI specs. In Windows, it is
true for IDE drives (CDROM, DVD) as well.


Example of grabbing a file
--------------------------
Basic procedure is getting a directory of your disc with the
d command, and then grab a file with the g command.

C:\rip>dodsrip d

DOD Speed Ripper v1.0 for Win98 - Code by [dEZZY / DRiNKoRDiE]
--------------------------------------------------------------
Trying to open device (HA:0,T:0,LUN:0)...
Host Adapter:   ASPI for WIN32
Device type:    CD-ROM device
Disc (C):       Yes
Disc region(s): 1
Directory of VIDEO_TS...
Name: VIDEO_TS.BUP      LBA: 1320       Length: 12549
Name: VIDEO_TS.IFO      LBA: 282        Length: 12549
Name: VIDEO_TS.VOB      LBA: 288        Length: 2113797
Name: VTS_01_0.BUP      LBA: 2127182    Length: 80133
Name: VTS_01_0.IFO      LBA: 1326       Length: 80133
Name: VTS_01_0.VOB      LBA: 1365       Length: 12044549
Name: VTS_01_1.VOB      LBA: 7246       Length: 1073740037
Name: VTS_01_2.VOB      LBA: 531533     Length: 1073740037
Name: VTS_01_3.VOB      LBA: 1055820    Length: 1073740037
Name: VTS_01_4.VOB      LBA: 1580107    Length: 1073740037
Name: VTS_01_5.VOB      LBA: 2104394    Length: 46670085

  ...I want the start of the movie (first file of length 1gb):

C:\rip>dodsrip g 7246 1073740037 video.vob

DOD Speed Ripper v1.0 for Win98 - Code by [dEZZY / DRiNKoRDiE]
--------------------------------------------------------------
Trying to open device (HA:0,T:0,LUN:0)...
Host Adapter:   ASPI for WIN32
Device type:    CD-ROM device
Disc (C):       Yes
Disc region(s): 1
Generated decryption key (or garbage): XX XX XX XX XX
Output file: asdf.vob.....................................
..........................................................
..............

BTW; The program does not invalidate the authentication
when exiting. This means you get access to encrypted files
through Windows or whatever. Useful? Not really...


What's on the disc, really?
---------------------------
All DVD video discs have a \VIDEO_TS directory, which
includes VOB files.

On the above disc, I have commented each file in this dir:
Name: VIDEO_TS.BUP  - Backup of IFO file            (not scrambled)
Name: VIDEO_TS.IFO  - Navigational info             (not scrambled)
Name: VIDEO_TS.VOB  - Copyright screen  
Name: VTS_01_0.BUP  - Backup of IFO file            (not scrambled)
Name: VTS_01_0.IFO  - Navigational info             (not scrambled)
Name: VTS_01_0.VOB  - Text (as pictures) about movie 
Name: VTS_01_1.VOB  - Movie file #1
Name: VTS_01_2.VOB  - Movie file #2 
Name: VTS_01_3.VOB  - Movie file #3 
Name: VTS_01_4.VOB  - Movie file #4
Name: VTS_01_5.VOB  - Movie file #5

DVD specs specify that movie files must be spilt on 1 gig
bonudary. If you merge those files, you'll get the whole
movie.


How to grab a movie
-------------------
You should already have figured it out. It's very simlpe.
Find the first VOB movie file (VTS_01_1.VOB from the above
list). A general rule would be the first file with size
1073740037 (1 gig). Grab this file, then grab the next,
etc..

To get all of it correctly, you should grab the entire
movie to the same file. As said above, this program appends
all data to the end of output file, the following BAT file
would do the job for us on the above disc:

------CUT---------------------CUT-------
dodsrip g 7246 1073740037 movie.vob                (VTS_01_1.VOB)
dodsrip g 531533 1073740037 movie.vob              (VTS_01_2.VOB)
dodsrip g 1055820 1073740037 movie.vob             (VTS_01_3.VOB)
dodsrip g 1580107 1073740037 movie.vob             (VTS_01_4.VOB)
dodsrip g 2104394 46670085 movie.vob               (VTS_01_5.VOB)
------CUT---------------------CUT-------

Now, you would have a veeeery big movie.vob file... :)


Problems
--------
If the program just exits with an ASPI command error, maybe
you ran it too quickly after inserting a disc? Try running
it again a couple of times.

Playing back a randomly grabbed stream from any of the VOB
files may not work because different frames are dependent of
each other and DVD players are really bad programmed. Xing
usually bugs or crashes. PowerDVD manages much better.

Also, there will be no way to tell your player what lanuage
(soundtrack) you want, subtitles, etc, so you will sometimes
hear the first found sound track (maybe not english?) when
playing.  It depeds on your player. You should run the VOB
through a filter to get it as you want after ripping.

The movie still looks encrypted? Picture looks shit and sound
is clipping... well, hold on for a newer version that supports
other ciphers.


Personal greetings (outside DoD)
--------------------------------
equinox for lending me a DVDROM (i don't own one myself).
torsen for help with testing.
mdx and _n0mad for info on DVD and aspi win32 programming.
DVDHacker for making Linux CSS authentication code.


History
-------
12.09.1999 - CSS authentication code ready.
14.09.1999 - CSS descramlber engine ready.
19.09.1999 - v0.0 released (DoD only).
20.09.1999 - v0.1 released (DoD only).
21.09.1999 - v0.2 released (DoD only).
22.09.1999 - v1.0 first version released to the world.


Enjoy.

[dEZZY / Drink or Die]
