Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I'm trying to backup a DVD, my normal process is to dd the disk to an iso file but this fails.
I then tried dvdbackup and this does work but fails on the very last vob file, but it's good enough to use ffmpeg to join the vob viles and then ffmpeg again to re-encode to mp4.
The vob files all play just fine, except for this very last one which pixelates just near the end.
So I tried md5sum on the dvd and this fails like this:
Open DVD with vlc, then rip it. Many DVD drives won't let you read the data until you present valid keys. vlc does it (using libdvdcss), dd obviously knows nothing about it.
I've built up a physical collection of 1500+ discs (it's alot to me). I've seen all kinds of encryption. Some can be done with DD, some not. I've heard of some ideas about opening the disk with libdvdcss using vlc. It being open eliminates the protection or something. I never did get that to work consistently2. My go to combination is rip with MakeMKV, then compress via Handbrake. Out of my discs I've only had 2 where that failed. One was a disc that they write on demand due to lack of people buying them regularly, the other was the original lion king. In the case of The WOD disc I used dd then ran makemkv on the iso created on the disc opened with VLC (one of the few times I got that to work). Lion King I hit with straight Handbrake and it worked.
I don't think you can access a DRM protected DVD with standard Linux utilities; if VLC can read it, it should be possible to rip it - either with VLC or with other dedicated software like e.g. dvdbackup.
This DVD mentioned plays, but fails at very end. For me it hints there is some scratch or dirt, polishing the DVD surface a little may help. Remember, DVD's unlike analog records start from center, so your read error is near to edge.
DVD's go bad. The metal foil layer in the middle separates a little sometimes. When that happens they are shot. If there is a nick or scratch on the surface, try to buff it out with a damp cloth and toothpaste. Wash it off with water, dry all the way before you stick it into the drive.
If you made an iso already, and the iso has damaged bits, you can't fix that.
ddrescue works as good as anything trying to get stubborn bits off of a flaky DVD. If you can get all but 20-30kb, then the video will probably dump fine off of the DVD. You may get a few pixelated seconds.
lsdvd is a good tool to have for DVD's
Once you know what chapters you want.
I don't think you can access a DRM protected DVD with standard Linux utilities; if VLC can read it, it should be possible to rip it - either with VLC or with other dedicated software like e.g. dvdbackup.
dvdbakup did read it but the very last vob file of the title is corrupted at the very end, luckily after the end of the film, so it doesn't matter.
This DVD mentioned plays, but fails at very end. For me it hints there is some scratch or dirt, polishing the DVD surface a little may help. Remember, DVD's unlike analog records start from center, so your read error is near to edge.
Nope no damage, it's a brand new disk, I know that doesn't mean there can't be any damage but Ive checked and there isn't, well not as far as I can see
DVD's go bad. The metal foil layer in the middle separates a little sometimes. When that happens they are shot. If there is a nick or scratch on the surface, try to buff it out with a damp cloth and toothpaste. Wash it off with water, dry all the way before you stick it into the drive.
If you made an iso already, and the iso has damaged bits, you can't fix that.
ddrescue works as good as anything trying to get stubborn bits off of a flaky DVD. If you can get all but 20-30kb, then the video will probably dump fine off of the DVD. You may get a few pixelated seconds.
lsdvd is a good tool to have for DVD's
Once you know what chapters you want.
Code:
mplayer dvd://2 -dumpstream -dumpfile out.vob
This is lsdvd, you can see the rather strange structure of this dvd
With a 'brand new' disc you may need to actually clean/wash the disc (water + small amount of dissolved dish soap and rinse/dry completely) - it's not unheard of for them to retain some oil/solvent (or ??? it is) from the manufacturing process that interrupts reading. It's also possible for it to be defective from the factory.
Part of the copy protection I think. I've had them. If you don't select the correct title then the chapters will be out of order. And I mean in the .vob that you dumped from it.
The longest title isn't necessarily the correct one.
On those I sometimes do
Code:
mplayer dvdnav://
And see what order the chapters are suppose to be in. Look and see at what time a chapter starts, and what the video is at that spot. Then I find the correct title number by looking at all of the titles briefly.
I pick 3 or 4 time spots in the video, where the chapters start, and run through the titles, to see which one is in the correct order. I just use the simple tools that I have.
In your case, example:
Code:
t1=00:04:12
t2=00:23:24
t3=00:46:27
for a in {11..25}; do
for b in t1 t2 t3; do
mplayer -ss "$b" dvd://"$a"
done
done
Every time you q on mplayer, it's start the next one.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.