Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
Movies Media

Archiving DVD's with Linux? 45

Ramses0 asks: "Now that I've got my Linux box 100% functional with full DVD support, I want to archive all my media to it's 60gb hard drive. Since I don't have 60gb's of OGGable CD's, I started looking with a lustful eye at ripping and encoding my DVD collection to the hard drive as well. Most of the guides out today are targetted towards windows software, which is not an option for me. The only reference I could find to encoding under Linux is about ffmpeg on the DivX website. What is the best file format to target? DivX? VCD? What tools are available under Linux to encode DVDs? Why isn't there the equivalent of abcde for DVDs?"
This discussion has been archived. No new comments can be posted.

Archiving DVD's with Linux?

Comments Filter:
  • mencoder (Score:4, Informative)

    by invictus ( 83837 ) on Thursday April 18, 2002 @05:48PM (#3368899) Homepage Journal
    Mplayer [mplayerhq.hu] which is an excellent Linux media player (including dvd support) also comes with an encoder called mencoder which can output Divx;) avi files from your dvds, supports 2 pass encoding and subtitles, and other fun stuff like that. It works (well) for me. Mplayer is a great player in my opinion and it supports almost every file format i've encountered excluding sorenson quicktime.
    • Re:mencoder (Score:3, Informative)

      by megabeck42 ( 45659 )
      mencoder is retarded easy to use, and ridiculously powerful:

      mencoder -dvd 1 -o dvdrip.avi

      Automatic decss, dvd rip, and encoding with the algorithm of your choice, including three different divx codecs (windows, libavcodec/ffmpeg, and divx4linux.) They have a shitload of other codecs. I can use mplayer to play .wmf's and .asf's, etc. They have multipass encoding and transcoding. It has built in support for video 4 linux, dvds, etc. As well as can output via SDL, xvideo, X11, svgalib, fbdev, etc. It's efficient enough to let me play 8 simultaneous divx streams on my dual pent iii 866 (serverworks he chipset, scsi disk.) GUI frontend to mplayer, etc. Amazing stuff, IMHO.
    • I am starting to wish that somebody would port Mplayer to windows so us ms peons would have a decent media player. ^_^

      nah, the mac people need it more, they actualy think that quicktime is worth a shit, heh. ::evil grin::
  • transcode & dvdrip (Score:5, Informative)

    by Phexro ( 9814 ) on Thursday April 18, 2002 @05:52PM (#3368918)
    transcode [uni-goettingen.de] is a fantastic app. It can convert just about any kind of video stream to any other kind. It supports cropping, resizing, etc etc. Careful with the current prereleases, there are some nasty A/V sync issues. 0.6.0pre1 & 2 work best for me.

    It's pretty tough to get right on the commandline, so grab dvd::rip [exit1.org], a nice perl/gtk frontend. Most useful, dvd::rip has a nice gui for using transcode's cluster encoding. That's right, you can build a dvd-ripping cluster. I have a 4-node setup, and it only takes a few hours to rip a dvd, using two-pass DivX 4.02. Careful with the newer prereleases, there are some nasty A/V sync issues. 0.6.0pre1 & 2 seem to work best for me.

    I would suggest using one of the MPEG-4 variants (DivX 4.x, or XviD) in two-pass mode. In my experience, this produces very good quality. I rip my movies to one 1.4gb file, which I then split onto two CDs. You might be able to afford slightly larger file sizes, to do AC3 audio pass-through, for example.

    If you double or triple your storage capacity, consider just storing the unencrypted VOB files - you'll get superior audio & video, as well as all the alternate audio & subtitle tracks.
  • DD? (Score:2, Interesting)

    by ThorGod ( 456163 )
    What's wrong w/using dd? I know it'll result in some huge files, but you can use them, if with only loopback mounting of the images.
    • Nothin' wrong with dd. And you don't even need to mess around with loopback mounts. Ogle, at any rate, is perfectly happy to play the resulting files.
    • Does dd work with DVDs? I know it doesn't (normally) work with (S)VCDs, as they are CD-XA, which the vanilla kernel doesn't support.
  • Don't bother... (Score:2, Interesting)

    by OneFix ( 18661 )
    DVD is already encoded using MPEG2 compression. And anyone who has ever converted one lossy format to the other knows that the quality ends up being extremely poor (you get the worse of both formats). The other thing is, even at low quality, a 2 hour movie is going to take up at least 1/2GB...and when you're done, you only have a copy that is much worse than the origonal.

    Spend you money on a good hardware MPEG Decoder that works under linux. And as for a choice in format, OGG Tarkin will probably be the way to go in the future (once the format is defined).
    • Re:Don't bother... (Score:1, Interesting)

      by Anonymous Coward
      Tarkin won't be finished for a while yet. Vp3 [vp3.com] is LGPL and here now.
      • VP3 uses built-in smoothing to fix blocks...this makes the video very fuzzy. The VP3 codec doesn't even come close to the quality of XviD (already as well available)...

        But, there is still the problem that all of the current codecs have major quality problems when compared to DVD. The reason why DVD is so "clean" in the first place is because of the extremely high datarate...
    • the quality ends up being extremely poor

      What have you been smoking?!? Ripping a DVD to ~700MB DivX (MPEG-4) results in a quality that is better than rental VHS! Check out Doom9 [doom9.org] for more info (like this example [doom9.org] of DVD ripping).
      • Re:Don't bother... (Score:1, Interesting)

        by Anonymous Coward
        What he meant was that DVD video quality to start with is poor. A brand new VHS video will often have better picture quality than a DVD. You just have a quicker loss of quality with age with a VHS tape. This is the problem with any compression scheme, you will have loss of quality. The question is, how much loss of quality is acceptable? Those using lower end systems might not notice the difference. But as you improve your playback system quality, these faults become more evident. For me, I grudgingly accept what I agree to be poor compression on DVDs for their superior audio quality, which can by far make up for the blockiness and poor fading.
        • > A brand new VHS video will often have better picture quality than a DVD.

          Define "quality". Lines of resolution? Color accuracy? Motion artifacting? Sound? With one exception (motion artifacting, which VHS obviously doesn't have, being an analog format), even a just decent DVD will trounce the best VHS material. If you had said laser disc, you could have had a point. But VHS, and not even SVHS? I don't think so.
      • quality that is better than rental VHS!

        Haha...that does not strengthen your argument at all.

        My equipment isn't touched by rental media...talk about asking for trouble...

        And let me see...you have DVD for what reason? Action films are specifically bad about artifacts and the only way the studios get the DeeVeeDee to look decent is by throwing their best ppl at it...even then, some films can't be fixed even with the most expensive equipment.

        Even Columbia's Air Force One: SuperBit [dvdfile.com] DVD has problems with artifacts.
        • Haha...that does not strengthen your argument at all.

          My equipment isn't touched by rental media...talk about asking for trouble...


          And how common do you think that view is? Most people still don't mind renting movies on VHS.

          So if you don't like DVD's that's fine by me, but you made it sound like DVD->DivX conversion isn't acceptable by any standard.

          I seem to remember a similar discussion when MP3's became popular 5 years ago. I guess some people still won't use MP3 (or even CD's!), but if you do, you'll probably be happy with DivX. It is pretty nice to have all my favourite movies on a hard-drive so that I can view bits of them without swapping discs in the DVD player.
          • And how common do you think that view is? Most people still don't mind renting movies on VHS.

            Because most ppl are watching their rentals on a 27inch TV...not what I'ld call movie buffs...

            So if you don't like DVD's that's fine by me, but you made it sound like DVD->DivX conversion isn't acceptable by any standard.

            Did I say that I don't like DVDs? No, it's still the best consumer format currently supported by the movie studios.

            The point is, you are converting a 9GB or larger video that is compressed using MPEG2 (lossy) and you are shrinking it to a fraction of the origonal size (700 MB in one case)

            There are ALWAYS trade offs when compressing data using lossy compression.

            The point I was making is that you are using 2 lossy compression methods in this case, and what will result is a video that shows the worse of the 2 combined. Detail will be lost to some degree, halos that were not a problem before will now be noticable, certain objects and textures will become blocky, etc...
    • I have seen a bit of the DiVX rip of the FOTR screener DVD and it looks good, better than SVHS. The encoding got it down to the size of 2 CD-Rs (1.4GB) and it doesn't have too many problems with motion.

      Star Wars:TPM though was much smaller, at about 700MB and it has some problems during the action sequences. Interestingly enough, the DiVX SW:TPE is lower definition (it was mastered from VHS) and thus much smaller (300MB or so), but it still compares well to video.

  • qrpff-fast.pl? (Score:2, Interesting)

    this was posted some months ago:

    #!/usr/bin/perl -w
    # 531-byte qrpff-fast, Keith Winstein and Marc Horowitz
    # MPEG 2 PS VOB file on stdin -> descrambled output on stdout
    # arguments: title key bytes in least to most-significant order
    $_='while(read+STDIN,$_,2048){$a=29;$b=73;$c=142;$ t=255;@t=map{$_%16or$t^=$c^=(
    $m=(11,10,116,100,11,122,20,100)[$_/16%8])$t^ =(72,@z=(64,72,$a^=12*($_%16
    -2?0:$m&17)),$b^=$_%64?12:0,@z)[$_%8]}(16..271);if ((@a=unx"C*",$_)[20]&48){$h
    =5;$_=unxb24,join"",@b=map{xB8,unxb8,chr($_^$a[--$ h+84])}@ARGV;s/...$/1$&/;$
    d=unxV,xb25,$_;$e=256|(ord$b[4])>8^($f=$t&($d&g t;>12^$d>>4^
    $d^$d/8))>8^($t&($g=($q=$e>>14&7^$e)^$q*8 ^$q (($h>>=8)+=$f+(~$g&$t))for@a[128..$#a]}print +x"C*",@a}';s/x/pack+/g;eval

  • Drip and dvd::rip (Score:4, Informative)

    by Jebediah21 ( 145272 ) on Thursday April 18, 2002 @08:10PM (#3369763) Homepage Journal
    Try looking at Drip http://drip.sourceforge.net/ and dvd::rip http://www.exit1.org/dvdrip/

    Skimming Freshmeat.net is a good idea whenever you need an app.
  • by Dr.Dubious DDQ ( 11968 ) on Thursday April 18, 2002 @08:21PM (#3369815) Homepage

    Mencoder is easier, transcode is more versatile (I think).

    Mencoder is the "encoding" project that goes along with Mplayer [mplayerhq.hu], which in my opinion is probably the best-performing media player with the widest support for files and codecs (including Windows Media codecs, using the 'native' Windows DLL's) for linux at the moment, though not necessarily the easiest to use (not difficult, in my opinion, either, just not "clicky-pointy" simple like, say, Xine [sourceforge.net]).

    Trans code [uni-goettingen.de], on the other hand, has a bewildering variety of options to work through, but has a ton of functionality to go with it.

    In both cases, the software handles reading DVD's, and can convert them to other formats. Transcode handles a bunch of different formats and codecs. Mencoder is limited to .avi file format at the moment, but can put a variety of codecs into this avi (including vorbis audio, as I recall). I've also found that you can even use mencoder to "capture" mms:// files for offline perusing or conversion, which is nice, since otherwise I wouldn't get anything but the Microsoft "Download Media Player for Mac or Windows" page whenever I tried to view such things...

    For MPlayer/Mencoder, I strongly recommend reading the documentation (the software is great, but the impatience of the people on the mplayer mailing lists with people asking questions that are answered in the documentation are well known) and using a recent set of CVS sources.

    • I don't know how far along they are yet, but it APPEARS, from lurking on the mailing list, that there is some support for .ogg format media files (i.e. .ogg file with vorbis audio and, say, XVid video), and I BELIEVE they will be adding support for the format for mencoder as well, at some point. Depending on how soon this takes place, this may be an option for people wanting to archive their DVD collections...

      (I wouldn't be surprised to see support for the vp3 codec soon as well, since according to a blurb on this weeks' Linux Weekly News [lwn.net], they (that is, the guys the made vp3) apparently posted to one of the ogg development lists about getting a 'vp3 in .ogg' project going. It'll be nice to see some more semi-official work on video in .ogg...)

  • You want to archive your DVDs to DivX? Why? So that, when you destroy your DVDs, you'll have... vastly inferior copies of them on a single, non-mirrored hard drive which stands an even better chance of failing than the DVDs do?

    Hell, I'd be more interested in backing your hard drive up to a DVD-R (or something sane, like DLT or DDS-3) if I were you.

    - A.P.
  • I'm still using a machine with just a CD drive, so I have not been able to test this myself.

    Is the region encoding a matter of hardware or software? I'm an international traveler, and if I get a DVD drive for my machine I would want it to be able to read different region codes.

    If this is software based, then I'm certain that the OpenSource decoders already ignore this little detail.

    Bob-

    • All newer drives (RPC-2) have some firmware which does the decoding. However, the drives have two modes, one is the ISO9660 mode where it looks like a very big CD, and the other is DVD mode. All commercial DVD players use the latter mode and the drive decode the stream as needed.

      However, it is still readable in raw format, you can usually do the decode yourself in software.

      In any case, it is better to get a drive that can be moded to be region free with a firmware upgrade.

  • 1) There are DVD players out there for Linux now... don't bother.
    2) Get a Windows friend to RIP it for you.
    3) If you are a pirate, and want to distribute, then, chances are you can just install your pirated version of Windows and do it with that.

    Besides, you only need to rip it the first time.

    And DivX, of course... What's the point of VCD anyway.

    This topic sucks.
  • Look at DivX 5 (Score:1, Informative)

    by Anonymous Coward
    the best DVD backups to DivX i've seen used DVD::Rip and transcode under linux to rip the .vob (mpeg-2) and then Virtual Dub with the new DivX 5.01 [divx.com] encoder under windoze to encode. Bit of a long way round, but the improvement in quality between divX4 and 5 is amazing. Looking forward to the linux DivX5 encoder so can dump windope completely.
  • The famous (and best) DVD Backup Resource Doom9 [doom9.org] has a nice guide [doom9.org] on ripping DVDs under Linux using transcode, DivX 4 and a bunch of Perl scripts...
    Since it's a Doom9 Guide the quality has to be good...
    X

UNIX is hot. It's more than hot. It's steaming. It's quicksilver lightning with a laserbeam kicker. -- Michael Jay Tucker

Working...