Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rip dvd to iso 1:1 copy
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
coolcash
n00b
n00b


Joined: 25 Oct 2002
Posts: 18

PostPosted: Wed Dec 26, 2007 10:03 pm    Post subject: rip dvd to iso 1:1 copy Reply with quote

I have looked around the forums and couldn't find an easy way to rip a dvd to iso. I don't want to do any re-encoding, or removing of features.

Any suggestions?

Thanks
Back to top
View user's profile Send private message
CooSee
Guru
Guru


Joined: 20 Nov 2004
Posts: 461
Location: Earth

PostPosted: Wed Dec 26, 2007 10:07 pm    Post subject: Re: rip dvd to iso 1:1 copy Reply with quote

coolcash wrote:
I have looked around the forums and couldn't find an easy way to rip a dvd to iso. I don't want to do any re-encoding, or removing of features.

Any suggestions?

Thanks


hello,

app-cdr/dvdshrink


CooSee ' Ya
_________________
beQuiet! Silent Base 800 Black - MSI C236A - Xeon E3-1245v5 - 32GB RAM Kingston - Sapphire Nitro+ Radeon RX590 8G - Samsung PM961 M.2 128GB - Samsung 840 EVO 120GB - Creative Sound Blaster RX PCIe - Logitech Z623 2.1 - G110 Keyboard - Mouse G400
Back to top
View user's profile Send private message
cjubon
Guru
Guru


Joined: 03 Jul 2007
Posts: 446
Location: Vienna/Europe

PostPosted: Thu Dec 27, 2007 9:51 am    Post subject: Reply with quote

CooSee wrote:
find an easy way to rip a dvd to iso
Well, just mount your DVD, and then use either mkisofs or growisofs for generating the iso file. If you don't like command line tools, you can also use a frontend like k3b: in the "burn" dialog, simply check the option "generate image only".
Back to top
View user's profile Send private message
niskel
Guru
Guru


Joined: 17 Nov 2004
Posts: 457
Location: Fredericton, NB, Canada

PostPosted: Thu Dec 27, 2007 6:28 pm    Post subject: Reply with quote

You guys are thinking too hard :roll:

Code:
dd if=/dev/dvd of=/path/to/image.iso


Replace /dev/dvd with your dvd device. /dev/dvd should probably work though.
Back to top
View user's profile Send private message
coolcash
n00b
n00b


Joined: 25 Oct 2002
Posts: 18

PostPosted: Thu Dec 27, 2007 6:30 pm    Post subject: Reply with quote

I was thinking of that. But what about CSS and read errors? I guess CSS doesn't really matter since any program can decode that now.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Thu Dec 27, 2007 6:41 pm    Post subject: Reply with quote

coolcash wrote:
I was thinking of that. But what about CSS and read errors? I guess CSS doesn't really matter since any program can decode that now.


Dvdsrhink is not a 1:1 replicator. dd is what you want, it doesn't understand css nor any other stuff, it just reads bytes from a raw stream, and dump them into another one. It doesn't understand filesystems either. It will just read /dev/dvd until the end of the device, and dump a 1:1 copy of whatever it finds into that device, even if its a lot of ceros or any other useless stuff. If you get read errors you need ddrescue instead, because dd will abort on any error.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43559
Location: 56N 3W

PostPosted: Thu Dec 27, 2007 7:54 pm    Post subject: Reply with quote

coolcash,

Most DVDs won't fit into an ISO filesystem without some processing.
ISO supports at most 2Gb files and degrades gracefully to a 4Gb hard limit. You may not put directories in the top 2Gb.

DVDs have a UDF filesystem to get around the ISO limit, which is not used for playing the DVD anyway.
Playing is accomplished using raw block lists.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
coolcash
n00b
n00b


Joined: 25 Oct 2002
Posts: 18

PostPosted: Thu Dec 27, 2007 8:03 pm    Post subject: Reply with quote

Just basically looking to backup the dvd's to a pure format without any modification. I have used utilites for windows to strip css from the dvd, this is just a bonus. I looks like dd will work, and i assume all I need to do is mount -o loop or use mplayer/xine to view them.

Thanks all.
Back to top
View user's profile Send private message
boris_qd
Apprentice
Apprentice


Joined: 29 Aug 2005
Posts: 158
Location: Bonn/Germany

PostPosted: Thu Dec 27, 2007 8:42 pm    Post subject: Reply with quote

i use the simple
Code:

cat /dev/dvd > dvd.iso
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43559
Location: 56N 3W

PostPosted: Thu Dec 27, 2007 9:21 pm    Post subject: Reply with quote

boris_qd,

That copies /dev/dvd byte for byte but does not make an ISO. The output file is whatever was on the dvd.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
niskel
Guru
Guru


Joined: 17 Nov 2004
Posts: 457
Location: Fredericton, NB, Canada

PostPosted: Thu Dec 27, 2007 9:34 pm    Post subject: Reply with quote

I think there is some misunderstandings going on here. The problem is that 'ISO' has come to be understood as 'disc image' by most all people. What I believe the OP is looking for is a disc image in which case dd (or cat, never tried it before (I can't see why it wouldn't work)) will work fine.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Thu Dec 27, 2007 9:44 pm    Post subject: Reply with quote

I have done this before, and using "dd" or "cat" is no good for CSS protected videos. The resulting disc image will still be encrypted, but you won't be able to find the encryption keys without the original media.

Code:
# pmount /dev/dvd
# vobcopy -m
# eject /dev/dvd
# mkisofs -v -dvd-video -V DVD_VIDEO -o DVD_VIDEO.iso DVD_VIDEO/
Back to top
View user's profile Send private message
niskel
Guru
Guru


Joined: 17 Nov 2004
Posts: 457
Location: Fredericton, NB, Canada

PostPosted: Thu Dec 27, 2007 9:51 pm    Post subject: Reply with quote

cyrillic wrote:
I have done this before, and using "dd" or "cat" is no good for CSS protected videos. The resulting disc image will still be encrypted, but you won't be able to find the encryption keys without the original media.


I suppose this depends on how you want to use the video. I am pretty sure anything that plays DVDs on a Linux system cracks the CSS before playing regardless. Finding a CSS key from encrypted data is trivial. So, if you intend to only use the disc image on a Linux system (or any system that will do the CSS cracking for you) you are all set to go with dd. On the flip side, if you are making the disc image so that you can burn it to play on conventional DVD players, you will have to take extra steps to decrypt the CSS ahead of time. The initial reason I suggested dd is because the OP asked for a 1:1 copy. If you decrypt the DVD to make your image, this is no longer a 1:1 copy even though the content is effectively the same.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Thu Dec 27, 2007 10:00 pm    Post subject: Reply with quote

niskel wrote:
I am pretty sure anything that plays DVDs on a Linux system cracks the CSS before playing regardless. Finding a CSS key from encrypted data is trivial. So, if you intend to only use the disc image on a Linux system (or any system that will do the CSS cracking for you) you are all set to go with dd.

This was not my experience, last time I tried it with mplayer and xine. It will spit out a bunch of errors, and then quit telling you that the content is probably encrypted (duh!). Playing the exact same content from the original media works without problems.
Back to top
View user's profile Send private message
boris_qd
Apprentice
Apprentice


Joined: 29 Aug 2005
Posts: 158
Location: Bonn/Germany

PostPosted: Thu Dec 27, 2007 10:57 pm    Post subject: Reply with quote

cat has been working for me for dvd's i have in the us (just normal dvds from the store) so i assume they're all encrypted. I usually mount the dvd with -o loop and then use xine or vlc to play it.
Back to top
View user's profile Send private message
bucciarati
n00b
n00b


Joined: 28 Dec 2007
Posts: 2

PostPosted: Fri Dec 28, 2007 12:43 am    Post subject: Reply with quote

This is what comes out when trying to cat/dd/whatever a protected disc from Paramount:

Code:

ATAPI device hdd:
  Error: Illegal request -- (Sense key=0x05)
  Read of scrambled sector without authentication -- (asc=0x6f, ascq=0x03)
  The failed "Read 10" packet command was:
  "28 00 00 01 13 00 00 00 02 00 00 00 00 00 00 00 "
end_request: I/O error, dev hdd, sector 281600
hdd: command error: status=0x51 { DriveReady SeekComplete Error }
hdd: command error: error=0x50 { LastFailedSense=0x05 }
ide: failed opcode was: unknown


Mplayer on the very same dvd works like a charm.

Please inform yourself before speaking.

http://en.wikipedia.org/wiki/ARccOS_Protection
http://en.wikipedia.org/wiki/RipGuard#Technology_Details
_________________
Debian Invaders
Back to top
View user's profile Send private message
niskel
Guru
Guru


Joined: 17 Nov 2004
Posts: 457
Location: Fredericton, NB, Canada

PostPosted: Fri Dec 28, 2007 12:58 am    Post subject: Reply with quote

bucciarati wrote:
This is what comes out when trying to cat/dd/whatever a protected disc from Paramount:

Code:

ATAPI device hdd:
  Error: Illegal request -- (Sense key=0x05)
  Read of scrambled sector without authentication -- (asc=0x6f, ascq=0x03)
  The failed "Read 10" packet command was:
  "28 00 00 01 13 00 00 00 02 00 00 00 00 00 00 00 "
end_request: I/O error, dev hdd, sector 281600
hdd: command error: status=0x51 { DriveReady SeekComplete Error }
hdd: command error: error=0x50 { LastFailedSense=0x05 }
ide: failed opcode was: unknown


Mplayer on the very same dvd works like a charm.

Please inform yourself before speaking.

http://en.wikipedia.org/wiki/ARccOS_Protection
http://en.wikipedia.org/wiki/RipGuard#Technology_Details


The ARccOS wiki page you posted says ddrescue can be used to bypass it as i92guboj already mentioned. I don't personally know about RipGuard but I bet dd/ddrescue would work for it as well.
Back to top
View user's profile Send private message
bucciarati
n00b
n00b


Joined: 28 Dec 2007
Posts: 2

PostPosted: Fri Dec 28, 2007 1:13 am    Post subject: Reply with quote

niskel wrote:
The ARccOS wiki page you posted says ddrescue can be used to bypass it as i92guboj already mentioned. I don't personally know about RipGuard but I bet dd/ddrescue would work for it as well.


No. dd_rescue can extract something from the dvd, but the kernel spits out bazillions of the very same messages i already pasted.
And when trying to play the output file, the video is thrashed.

It's like mplayer accesses the media at a different level, or css keys are needed to decrypt the data before
dumping it to disk.

Cheers
_________________
Debian Invaders
Back to top
View user's profile Send private message
andreas_st
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2007
Posts: 112
Location: 48N 16E

PostPosted: Fri Dec 28, 2007 9:19 am    Post subject: Reply with quote

media-video/dvdbackup is able to copy a DVD to hard disk without reducing the quality. It removes CSS encryption. It doesn't make an image though. You get a VIDEO_TS folder containing the VOB files.


Andreas
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43559
Location: 56N 3W

PostPosted: Fri Dec 28, 2007 11:24 am    Post subject: Reply with quote

bucciarati,

Encryption is enforced in DVD drives in two ways and for two purposes.

Early DVD drives only have the first one which relies on the software in the host PC.
Newer DVD drives do this step themselves.

Either way, no Linux players have player keys to perform the decryption and brute force the CSS keys, which are then stored in ~/ somewhere for reuse. This used to take a long time and a lot of RAM when DVDs in PCs were new but you won't notice the dely in modern equipment.
Look at and test the options in Xine, under Media | CSS Decryption Method. Only key works.

CSS is not a copy protection scheme. Its a market protection scheme. It prevents DVDs intended for one region being used in players intended for another region. Copying DVDs any of the ways discussed in this thread leaves the keys behind as they are stored outside the area reachable by computer DVD drives, so the copies (unless they are region free) will not work in a domestic DVD player. Thats an accidental side effect of the placement of the data on the disc.

Copy protection adds to the above and takes advantage of the way DVDs are played. The file system is not used. A domestic DVD player reads block lists from the DVD to know which order to play the raw blocks in. No other blocks are used. Thus copy protection usually involves creating illegal blocks all over the disk which do not form part of the intended content but which cause problems for users trying to back up the content by reading the file system or the whole disk.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1543

PostPosted: Fri Dec 28, 2007 1:53 pm    Post subject: Reply with quote

andreas_st wrote:
media-video/dvdbackup is able to copy a DVD to hard disk without reducing the quality. It removes CSS encryption. It doesn't make an image though. You get a VIDEO_TS folder containing the VOB files.


I recommend this, as well. I use it and it works perfectly. If you really need everything as "an image" instead of a directory structure, use another tool to recreate the image.

NeddySeagoon wrote:
Copying DVDs any of the ways discussed in this thread leaves the keys behind as they are stored outside the area reachable by computer DVD drives, so the copies (unless they are region free) will not work in a domestic DVD player.


Not true of this method. Dvdbackup removes css encryption when it creates the files.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43559
Location: 56N 3W

PostPosted: Fri Dec 28, 2007 3:30 pm    Post subject: Reply with quote

curmudgeon,

Yep.
curmudgeon wrote:
Dvdbackup removes css encryption
thus it creates a region free copy.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum