From Windows to a Debian GNU/Linux desktop, sans the geekness
The Original - since June 2006 - Run Debian GNU/Linux and be Happy.
DEFINITION: compuser

The computer loaded with a Microsoft operating system that uses you instead of the other way around. Most people have compusers at home instead of computers.

 

this site  web    
The Goods
Home Page
Forum
debiantutorials.org Licensing
Website Disclaimer
Site Map
Links
w32codecs
How to really switch Mom to Linux
Documentation
Release Notes
Developers Reference
Debian Survival Guide
Debian Books
Manuals
Debian Security
Linux Dictionary
Debian "Testing"
Leaving Windows
Resize Windows Partition for Dual-Booting
Back up your Partitions, Imaging
Still Suffering Windows
Keep your Money, your Sanity and your Self-Respect
Installing Debian Etch
Debian GNU/Linux (Etch) Installation Tutorial
My Etch Desktop in 150 words or Less
Upgrade Sarge to Etch
Configure Debian Etch
Multimedia on Debian Etch
Install nVIDIA 3d driver on Debian Etch
Wireless on Debian Etch: Broadcom - bcm43xx
Klikit, Klikit good
Handy Little Things
Package Management
Peripherals & Debian Etch
Set up your web cam on Debian Etch
Printing in Debian (Browsers, too)
Your ipod on Debian Etch
Atheros Wireless
Broadcom Wireless
Etch on the Desktop
Visitors apache log reader
Andrea del Sarto
(Poetry snippet for your Ignorant Ass)
Beagle on Debian Etch
Convert Digital Camera .mov Files
Some Debian Etch System Files
My Debian Desktop
Using wget
Copying or Ripping DVD's in Linux (Debian)
Reset root password
So, you want to run Linux
Convert mov files
Securing Debian
Password Protect Grub Boot Loader
Debian Etch as Server
Debian Linux file and print server: NFS, CUPS, LPR
Stream your music with gnump3d
Simple local web server on Etch
Web Server on Debian Etch
Miscellaneous Linux
Linux Conventions
Can People read my Documents?
Install Software on your Linux System (Debian)
Partition your Hard Drive
History of debiantutorials.org
A School Without Windows (PDF)
How to talk to Tech Support
Linux Demystified
Off Topic
A DRM Dissertation
An Artist's take on Downloading Music
An Insane and Damaging lack of Understanding
On Children and Drugs
On Visitor Q
Intellectualism for the Masses
debiantutorials.org stats
Smart Crows
How old are We?
Why we run Debian
How not to ask an egomaniac like myself for an article
Sarge Specific Tutorials
Installing Debian Sarge, net install, no DHCP
Easy Graphical Sarge Installation Tutorial
Rebuilding my Debian Sarge Machine
Multimedia for Sarge
w32codecs
nVIDIA on Sarge
Trouble Burning discs: cdrecord
Athcool on Debian Sarge
Where are my Newly Installed Apps?
Easy LAMP on Debian Sarge
Archive
Sites Worth a Look
Debian Mailing List
spidercider
Linux Comparison at PolishLinux.org
Thin Clients
Common Commands
Common iptables Filtering
iwouldntsteal.net
Big-Ass iptables info Page
iptables Port Reference
README: Firewall
General Security Tips
Newbie Security
Kickass RFC's
Data Breaches
Hemp Seed Oil
linux-hardcore.com
Search for a local Computer Tech
Evelyn's Linux Cheat Sheet
Lotsa (687) Linux Commands

Favorite Utilities

Super Grub Disc
System Rescue Disc
News Feeds
visitors run
operating system
Linux
Windows
Mac
Unknown
BSD
53.3 %
42.2 %
2.10 %
1.90 %
0.10 %

web browser
Firefox
Mozilla
IE
Opera
Epiphany
41.9 %
22.0 %
21.9 %
4.30 %
3.60 %
updated 22jun08
What's Root?
Root is the super-ultra-mega. All system commands on a Linux box need to be done as root. This means installing software and changing files not in your /home directory, etc. In your terminal, if you're logged in already become root by typing su at your $ prompt, then the root password. Log in the system directly as root from a terminal, but not the graphical login. # shows root.
dediantutorials.org is ad-free
debiantutorials.org has always been and will always remain ad-free I make no unrealistic demands that you "owe me for my time and bandwidth" in order to use my site. I detest all those scumbags out there that think that they are owed something for putting a web site up. I do debiantutorials.org because I love it. You owe me nothing.
If you can walk and chew gum at the same time, you can run Linux
We have 7 guests online

    Wednesday, July 23, 2008      Contact  Etch Info  what's new in Etch  Linux Demystified  Our Forum
Copying or ripping DVDs in Linux (Debian) PDF Print E-mail
Using Debian Sarge - Using Debian (Sarge) for common tasks
Written by machiner   
Saturday, 23 April 2005
It's easy to copy your DVDs in Linux, and we use Debian here. Completely ignoring any and all philosophical or legal rhetoric, if you want to copy your "Dr. Seuss" DVD before your 4 year-old flings it across the street then you're at the right spot. Read this if you like: France bans DRM on DVDs   Also, read this interesting DRM Dissertation by Cory Doctorow.

[EDIT - New GUI DVD copy program for Linux -- see end of article.]

[EDIT: You may come across a flick that you cannot backup with the methods that I mention in this article. Specifically, there are some movies with a content protection system that scrambles the titles and introduces bogus file information designed to thwart copying. Well, no matter. In these (rare) instances I simply use vobcopy with a command like this:

$ vobcopy /media/cdrom1 -l -n 1 -O . -t /directory-for-dump

This works pretty well to copy over the files and thwart those schemes. The legality of this is dubious, Fair Use takes a pounding from the DMCA. You will have your TITLE and your VIDEO_TS directories that you can shrink if necessary and make an .ISO out of for burning.

No matter what your tastes we all love movies for whatever reason. My kids have favorites and I like to protect those favorites from and for them. At $15 to $35 a movie this type of expenditure (while part of our "entertainment" budget) is certainly at the bottom of our household expenses. DVD media is pretty inexpensive as are DVD drives. Currently, in America anyway, it costs about $0.65 per backup and takes anywhere from 20 minutes to 1.25 hours on my homemade machine to make a backup. Of course, YMMV and I tossed Windows out the same a long time ago. I use Debian.

The whole process is rather easy to do. I like to use the command-line because it doesn't get in my way. That's just me. Of course I like pretty GUI's as well and in this tutorial we'll use both. I would like to use straight CLI but mkisofs doesn't always like the way I type. Let's get started.

----------------------------------

I use the following programs to accomplish this task:

dvdbackup
DVD Shrink
K3B (I don't, but you can)
libdvdcss
dvd+rw-tools

You can also install all of the above except DVD Shrink through Synaptic.

You will find that other people use different programs. For example, many like to use, as the second step, mkisofs. Others will burn their finished .ISO file with Graveman, or some other program. For ripping/transcoding others use Mencoder (here's a mencoder tutorial) or dvd::rip. There are other ways as well. Try this with vobcopy. Do what you like.

Make sure to have the programs I just listed (or your own favorites) installed before you start ripping. In this tutorial we use a Wine emulated Windows program called DVD Shrink. Yeah - I don't really like the idea of using non-native Linux apps, but...it works, I'm not going to argue.

As well, I have already prepared a partition for this purpose. You need to do the same. If you have better than 10GB of space in your /home directory you may just use that. On my spare HDD I made a 30GB partition for this purpose. Why don't you go ahead and prepare a spot for your rips right now. I'll wait...

Let's begin. Pop that DVD of yours into your DVD drive and resist the urge to slack and watch the flick. You're working here, bub. Now, open your terminal:

ALT+F2, type xterm (or konsole, or gnome-terminal, or whatever), hit enter.

On my machine(r) removable drives are mounted upon insertion. (Can I say that?)

Now you must decide whether you want to copy the entire disc or just the feature. At our house we get pretty annoyed at being forced to watch commercials or previews. We could also care less about the extras on a disc -- but it's your life and your time, do what you feel. The following commands get the show started, pick one:

dvdbackup -M -i/dev/cdrom -o/path/to/your/directory (entire disc)

dvdbackup -F -i/dev/dvd -o/path/to/your/directory (main feature)

If you get an error reading something like this:

  • Can't read title
  • DVD title too generic, please make or change title
It's a simple fix, just add the title switch, see below

$ dvdbackup -F -n DVD_TITLE -i/dev/dvd -o/path/to/your/directory

Notice the -n DVD_TITLE added into the command.

You will notice that I have two different devices in the command here, /dev/cdrom and /dev/dvd. Your machine is different than mine and on my box either device will work.

You will see that the first thing dvdbackup does is attempt to find the encryption keys, if it does not you will not be able to copy your kid's favorite movie this way. This encryption has all sorts of ugly connotations and I won't get into it. Whether you are morally or ethically troubled by copying your own disc is up to you. FUD is FUD and like I said, we paid money for this DVD and I'll ensure that we can continue to enjoy it.

This first step takes about X minutes on my machine, depending on the length of the movie, the position of the sun, and how sweetly I ask my machine to do its job. Yours is different, more or less memory, the whole thing. I usually read some news or pummel my kids at this time. Maybe I'll go outside and have a smoke. It's pretty quick, though.

What we are going to do next is shrink up that main movie title (if necessary) and make an .ISO out of it so you can burn it to a disk. It's pretty easy...and hasn't it been easy thus far?

We'll use DVD Shrink for this part. You'll need to install WINE, or get CodeWeaver's Crossover Office (not free) in order to run DVD Shrink in Linux. Or, just fire up Synaptic, search for Wine and winesetuptk, mark 'em and install 'em. Run winesetuptk to configure your wine.

You'll have to change the default configuration of Wine so DVD Shrink doesn't crash on you. I looked around and found some good info on the Mr. Bass website concerning exactly this. If you are running wine goto the following file

~/.wine/config

and change the following:

"Windows"="win98" change to "Windows"="nt40"

.There is only one instance that you have to change. If you set up Crossover Office instead you will find the file here: ~/.cxoffice/dotwine/config. Mine says "win2k" and it's fine. I could swear that I changed it to nt40 but I guess not.

Next up download the following .dll files here . Extract those .dll files into your ~/.wine/fake_windows/Windows/System/ directory if you run Wine, or put them here if you run Crossover Office: ~/.cxoffice/dotwine/fake_windows/Windows/System.

Open DVD Shrink

In the Title bar you see some icons. Since we have already extracted the movie files we choose to Re-Author, because we're going to compress (if necessary) and make an .ISO. Go ahead and click Re-Author.

Now, using the File Manager under the DVD Browser tab, goto the extracted movie folder. Click Video_ts, then click Main Movie, then right-click on Title 1 and choose ADD.

You will see a small window appear and DVD Shrink begin to add your files. You can view the whole process as well with the built-in viewer. Only colossal geeks can appreciate this.

This can take from 35 seconds to some minutes. What you do with your time is up to you. When the ADD process is complete another box will appear with options. The defaults are pretty good but your image quality needs to be assured. On the Quality Settings tab you'll see that Compress Video with High-Quality Adaptive Error Compensation is checked off if your data is more than 4644MB. If it's not, go ahead and check that, you'll be glad that you did...and yes it will take a while. DVD Shrink

Go ahead and poke around these options if you like, but you already checked the most important one, you can go ahead and choose OK now to begin the process. This can take anywhere from 5 minutes to over an hour. Just depends on the size of the movie, machine specs, etc. The last one I did took 18 minutes at this step with high-quality compression. Schweet.

That same box with the viewer will appear at this point. I like to uncheck the viewer option because I am a colossal geek and don't need to be tempted to watch. Do what you feel.

When this process is complete (hooray!) you will have an .ISO file suitable for recording onto one (1) blank DVD. There are options in the DVD Shrink step that I didn't write about. It's your machine and your process, feel free to play around with DVD Shrink and its options. If you're wondering, yessir, you can also rip that DVD with DVD Shrink and skip the dvdbackup step.

The last step is to:

Burn the .ISO - You can use K3B, or growisofs. You can even right-click on the .ISO file in Nautilus and choose to burn it. You may have to rename and make .ISO lower-case. like this: .iso There are a number ow ways for you to burn this to disk.

In K3B, you simply choose to burn DVD .ISO image from the Tools menu. In the resulting box go find that .ISO you just made.

Burn that bad-boy. However long it takes later your DVD drive will spit out a beautiful copy of your flick. Terrific. All finished. Go outside and play.

Feel free to use the following command line option:

$ growisofs -speed=8 -Z /dev/dvd=/path/to/MOVIE_TITLE.ISO

Pick your own speed. Now, wasn't that easy? Still think Linux is hard? You go.

No doubt you have noticed that my writing style forces you to RTFA through one time prior to following the instructions. I do this because I'm a lousy writer. I hope you found this tutorial useful anyway.

----------------------------

Listen -- for a native Linux GUI DVD copy program -- try K9copy. Sure it's a KDE program, I tried it recently and while it's no end-all-be-all, it does work. It's in the Etch (testing) repositories.

-------------------------------

command line: How long is that flick?

RIP
dvdbackup -F -i/dev/dvd -o/path/to/directory (main title)
dvdbackup -F -n CAT_BALLOU -i/dev/dvd -o/mnt/vault (if you get "title-error")

Make
Try 'em out

mkisofs -dvd-video /path/to/directory> DVD_TITLE.ISO
mkisofs -dvd-video -o /path/to/directory/TITLE.iso TITLE/
mkisofs -dvd-video -v -o /path/to/resulting/dvd.iso /path/to/ripped/directory
mkisofs -dvd-video -udf -o dvd.iso /path/to/dvd/directory/
mkisofs -dvd-video -o /mnt/vault/DOG_DAY_AFTERNOON.ISO -R /mnt/vault/DOG_DAY_16X9FF .
  - That one works for me

Burn
growisofs -Z /dev/dvd=/path/to/DVD_TITLE.ISO [growisofs -Z /dev/srcd0=dvd.iso]
growisofs -dvd-compat -Z /dev/hdc -dvd-video -V LABEL /path/to/dvd/image/
growisofs -dvd-compat -Z /dev/hdd=final.iso
-OR-
dvdrecord -dao speed=8 dev=0,0,0 dvd.iso

Must have installed:

  • dvd+rw-tools
  • dvdbackup
  • libdvdcss2
  • libdvdnav4
  • libdvdread3
  • dvdrecord

Yes to dependencies.

Happy Computing.

Related Links and Articles:
Electronic Freedom Foundation
DVD in Crisis
DVD Copying Looses Free-Speech Shield
Teen Charged with DVD Cracking Tool
Son of DIVX: DVD Copy Control
DVD Case: Battle of the Basics
New York Linux Users Demonstrate at DVD Trial
MPAA FAQ

machiner 23 Apr 05   Should you need further discussion on the matter.





Reddit!Del.icio.us!Facebook!Slashdot!Netscape!Technorati!StumbleUpon!Newsvine!Furl!Yahoo!Ma.gnolia!Free social bookmarking plugins and extensions for Joomla! websites!
Trackback(0)
Comments (8)Add Comment
Righteous
written by Guest, June 15, 2005
oooh machiner your CLI makes me hottt!

OK just foolin, it\'s a heat wave in NY. But thanks for all the fun and info on DVD burning

JJ
Great Article
written by Guest, June 29, 2005
Thanks for laying out a detailed roadmap on how to do this! One question I have is: what is one doesn't want to use DVD Shrink/WINE? What linux tool(s) could you use to accomplish the same thing?

SWE
dvdshrink for linux
written by Guest, July 13, 2005
How cool is this?
http://ubuntuforums.org/showthread.php?t=5904&page=2

I don\'t know about it having never tried it, but I will. I\'m all for forgoing emulating windows apps, although the windows version of dvdshrink that I am running sure does a terrific job.

machiner
Perfect
written by Guest, March 12, 2006
Thanks for a great article. It\'s just what i needed :)
...
written by Guest, June 21, 2006
:) :grin 8) :p :x :zzz :upset :eek :cry :( :? 8) :sigh :eek :(
DVDShrink is not GPL, use K9COPY instea
written by 'Guest', August 30, 2006
You can use K9copy, an application of KDE. It use K3b for burning the DVD.

It\'s the same that DVDShrink, you can choose the video tracks, the audio tracks, and the subtitles. You can include the original menu (or not).

It\'s simply perfect for ripping and copying DVDs.


pebles
...
written by 'Guest', October 26, 2006
:grin
nOOb - Excellent guide!
written by 'Guest', March 15, 2007
Serious nOOb here... this was my 2nd rip, 3rd week in linux. 1st rip I did w/ K9... it works. I\'d like the 1:1 copy, but dd failed w/ input/output error and an 8MB iso. vobcopy worked great, so obvious why dd failed. Just need to get into iso format. And it looks like dvdshrink or dvdauthor might be the way. Then again - mkisofs looks pretty tempting, I just need to sort out the opts and operands. Know of any mkisofs command tutorials? --help was cryptic or it was too far into the AM yestersday.
Thx again for the guide. And entertaining too :)

Write comment

security code
Write the displayed characters


busy
 
Linux Stuff at digg
How folks arrive at debtoots

direct Address/bookmarks...............79.1 % (woohoo!)
Links from search engines...............17.9 %
links from external pages.................2.70 %
Updated 22jun08

Creative Commons License © debiantutorials.org Thanks for dropping by. I hope you have found this site to be helpful.   Search for a local Computer Tech  debiantutorials.org