Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You will have one heck of a time copying DVDs using dd or even ddrescue. Plan on hours or days to get through it, if you make it at all. And then what you end up with probably won't work for your purposes. Modern DVD copy protection schemes make use of intentional bad sectors which blow dd out of the water. ddrescue can theoretically work around these bad sectors, but it is SLOW. ddrescue also assumes you want to try, try, try again to recover each bad sector. This is a total waste of time when the bad sectors are there intentionally. And modern DVDs throw in a LOT of bad sectors.
I would recommend something like these two commands to rip first the video, then the audio from a DVD (you will need libdvdcss2 installed if they are copy-protected DVDs):
Notice above that it mentions "dvdnav" in the command line. That is a decoder than knows how to follow DVD structure that bypasses the intentional bad sectors. So you don't waste time with ddrescue trying to recover the unrecoverable. Depending on your distro, mplayer may or may not have been compiled with dvdnav support. If you find yours does not have it, you can download source, change a compile flag, and recompile. You will obviously replace $TITLE and $DEVICE with appropriate values.
The above is the first step in backing up a DVD manually (i.e., not using a program like "Handbrake"). Other steps include calculating sizes and shrinking the video, recombining the video and audio, authoring the DVD, and then burning it to a blank DVD media.
The above is for entertainment value only. I do not plan to provide other steps on how to copy a DVD, because this COULD be used for illegal purposes, and we don't want that.
Also, it took handbrake nearly an hour to copy one dvd. Will your suggestion be faster??
That depends on many things. What is the horsepower of your computer? As part of the copy are you also shrinking things to fit on a single layer DVD? Are you including DVD burn time in that one hour? What speed are your burning at?
Generically speaking, one hour would not be considered bad at all IMHO.
I use Toshiba 600 laptop 2GB RAM. Also, I am not good at command line, so I'll stick with handbrake or mkvtoolnix-gui, which apt-get suggested (how cool is that!) when I looked for xvidenc. I really only wanted to see if it works, because some collegues were having trouble doing it. They are film fans and have hundreds or thousands of dvds which they want to back up to external hds. I think they are in for a long process!! I was going to tell them to get a life, but I didn't want to be unkind!
They are film fans and have hundreds or thousands of dvds which they want to back up to external hds.
Then it will probably take them even more time. I am assuming here that they will want to back up the entire DVD, which would include the main feature, all the featurettes and other extras, trailers, and such. Many of the backup programs only backup the main feature (which would be one specific "title"). Typically the main feature is one title, the menus are one title, so is each extra feature, each trailer, each advertisement, etc. So a typical DVD contains many "titles" - only one of those you need to backup if you just care about the movie. Ditto for multiple audio tracks and subtitles. You don't typically need/want to back all those up, but maybe you do if you are a "film fan". If they want actual "backup DVDs" (not hard drive backup) then to hold all that stuff, and not compress things (which would probably be a no-no for a film fan), you will need to buy double layer blank DVDs. Those cost much more than single layer DVDs and present more challenges in burning successfully and playback across a wide range of devices.
It might just be easier, cheaper, more reliable, and certainly less time consuming to recommend that your friends buy two of each DVD - one for normal use and one to save as a backup. Unfortunately, IMHO, most movies these days are not worth the price of even one DVD, let alone two. And you can forget about paying the ridiculous theater admission prices to see a movie on the big screen. I've never gotten into BluRay either - high definition crap is still, well, crap. Just very clear and stunning crap.
there is a difference between backup copy (dd/ddrescue/vobcopy) and re-encoding (mplayer -dump/mencoder/xvidenc/h264enc/handbreak/...) a dvd into a compressed format.
but it creates a byte-for-byte replica of the data on the disk (approx 8 gb).
if i want to rip a movie into an mkv i tend to use this mencoder script which was generated from xvidenc (sudo apt-get install xvidenc h264enc to install)
this takes more than 3 hours on my single core atom 1 gb ram machine but you can see that this provides hundreds more options than handbreak has. the output will be about 1 - 2 gb (adjust bitrate to your liking).
Don't know if you could finagle that into a working solution. Never tried messing around with that. I highly doubt it would work. If it did, that would imply you could copy a DVD using two optical drives like this: "dd if=/dev/dvd of=/dev/dvd2" and then be able to successfully play the DVD that was burned in /dev/dvd2 (ignoring intentional bad sector problems that would interfere with the copy for this discussion). Copying a copy-protected DVD is not that easy. Think about it - you would never need Handbrake or any other DVD copy program if that simple method worked. You could just dd your source DVD to a blank DVD, copy protection and all, and then play the result in your regular DVD player. Doesn't work. Even though your regular DVD player has a libdvdcss2 equivalent built in. You have to strip the copy protection off WHILE you are playing/ripping the original DVD, not afterwards.
Sorry, but then I must ask this question: how does my Totem play the dvd at all? How would it know the difference between the mounted iso and /dev/dvd?
Or is a dvd like a CD, which, I am told, has no file system and thus cannot be mounted. That said, I can insert a music CD and look at the contents! song1.mp3, song2.mp3 ....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.