![]() |
This chapter describes how you can get and install dvd::rip. You can try one of the several binary distributions or install it from the source.
Installation of dvd::rip isn't that hard, but fulfilling the requirements actually is (simply because there are a lot ;). So you should first try a binary installation using the package manager of your Linux distribution. This should track all dependencies automatically and speed up things significantly.
Christian Marillat builds video related Debian packages and publishes them on his website http://www.debian-multimedia.org. You can use apt-get to install the packages if you add one of the following entries (depending on your distribution) to your /etc/apt/sources.list file: deb http://www.debian-multimedia.org sarge main deb http://www.debian-multimedia.org etch main deb http://www.debian-multimedia.org sid main deb http://www.debian-multimedia.org experimental main You will find all packages to compile transcode on your own (if you need always the very latest versions), or can get binaries of reasonably recent transcode versions directly. The same applies to dvd::rip. The dvd::rip package is called dvdrip.
On packman.links2linux.org you find several video related RPM's, including dvd::rip and transcode: dvd::rip at packman.links2linux.org
Mandrake users can get actual dvd::rip and transcode RPM's from the Penguin Liberation Front lair. http://plf.zarb.org/
Matthias Saou does a great job in building dvd::rip and other multimedia related packages. You can find them at freshrpms.net. This is a direct link the dvd::rip package: http://freshrpms.net/rpm/perl-Video-DVDRip
You can get dvd::rip and transcode from the official gentoo package repository: http://packages.gentoo.org/search/?sstring=dvdrip
dvd::rip is available in the FreeBSD ports collection. To install from source, cd to ${PORTSDIR}/multimedia/dvdrip and type 'make install clean'. To install a binary package of the port, type 'pkg_add -r dvdrip'. Note however that the default installation of the transcode port which dvd::rip depends on is very minimalistic, it is recommended to look at the Makefile of the transcode port, enable all the options you need for dvd::rip and install the transcode port from source. Thanks to Michael Nottebrock, who maintains the FreeBSD port.
Since June 2004 we have also an official OpenBSD port of dvd::rip. You find it under graphics/dvdrip. Thanks to the maintainer Waldemar Brodkorb.
You can download dvd::rip sources from this server or all stable releases from any CPAN mirror. Local download of the latest stable release: (currently no unstable release available) dvdrip-0.98.11.tar.gzCPAN download directory: (list of mirrors) http://www.cpan.org/modules/by-authors/id/J/JR/JRED/You can download older versions from here: http://www.exit1.org/dvdrip/dist/This is a directory, which contains several user contributed files, you probably find useful: http://www.exit1.org/dvdrip/contrib/
dvd::rip is a Gtk+ based program written in Perl, using the video processing tool transcode and many other tools for the internals. So you first have to get some prerequisites before installing dvd::rip. dvd::rip expects all command line tools mentioned here to be found in the standard search PATH.
This table gives a brief overview of the tools used by dvd::rip (everything but the Perl modules - see the chapters below for more information about them). Most tools are optional - the corresponding dvd::rip modules are just switched off, if you don't have them. But you need at least the tools marked mandatory, otherwise dvd::rip will complain with an error message on startup. You can get also a dvd::rip window listing this information, refer to the corresponding chapter in the documentation for details.
You need a recent Perl version on your system. Perl 5.8.x is recommended, 5.6.0 and 5.6.1 should work also. dvd::rip won't start with Perl versions prior to 5.6.0. Actual distributions ship minimum 5.6.1, so this shouldn't be a real problem, anyway.
Since dvd::rip is mostly written in Perl it requires a bunch of Perl modules. Check if your distribution has installation packages for them, otherwise download them from CPAN and install from source. Some required Perl modules are shipped with dvd::rip for your convenience. These are pure Perl modules which need no C-Compiler or something like that for installation. dvd::rip detects if these modules are missing on your system and installs them together with its own program files. Refer to the Install from source chapter for details about this mechanism. This table lists all Perl modules, usual names for installation packages and CPAN URL's for download:
To install a Perl module from source, execute these commands: tar xfz Some-Perl-Module-x.xx.tar.gz cd Some-Perl-Module-x.xx perl Makefile.PL make test sudo make install
Some special notes about the rar program. MPlayer supports vobsub files compressed with rar, but you need a 2.x version, 3.x and higher doesn't work. You can get a 2.x version locally from here: http://www.exit1.org/dvdrip/contrib/rarlnx271.sfx.binI suggest to install the binary to e.g. /usr/local/bin. Then configure this path using the Preferences dialog.
This is quite easy, if you have managed to install the packages mentioned above... ;) Download the .tar.gz archive of the dvd::rip version you want to install. Then extract the file, change into the created directory, and execute the Makefile.PL script: # as a normal user tar xfz dvdrip-x.xx.tar.gz cd dvdrip-x.xx perl Makefile.PL As mentioned in the Required Perl modules chapter above dvd::rip can install some of the required Perl modules for you automatically. If dvd::rip detects such missing modules on your system, you get an output like this from perl Makefile.PL: Note: ----- The following modules are required for dvd::rip but not found on your system. They're shipped with dvd::rip for your convenience and will be installed automatically when you run 'make install': AnyEvent Event::ExecFlow Event::RPC You can ignore the 'prerequisite not found' warnings beyond for them. If you don't like this and want to install these modules manually just set SKIP_UNPACK_REQUIRED_MODULES before executing Makefile.PL, e.g. this way: SKIP_UNPACK_REQUIRED_MODULES=1 perl Makefile.PL Checking if your kit is complete... Looks good Warning: prerequisite AnyEvent 1.02 not found. Warning: prerequisite Event::ExecFlow 0.62 not found. Warning: prerequisite Event::RPC 0.89 not found. Writing Makefile for Video::DVDRip If your distribution has installation packages for these modules, it's recommended to use these. Install them and run 'perl Makefile.PL' again. Now run 'make test' and if no errors were reported 'make install' (as root): make test sudo make install You can ommit the "make install" step. But then you can execute the 'dvdrip' binary only from the build directory and you must put "$PWD/bin" into your PATH (export PATH=$PWD:$PATH), otherwise dvd::rip can't find its files.
Updating is just like installing. The only thing you should be aware of is switching the underlying Perl version. This way you easily can get two versions of dvd::rip installed in your system, because dvd::rip installs its libraries in your Perl library directory. Such a installation mixing isn't recommended unless you know exactly what you're doing. So it's better to remove the old version from the old Perl directory if you change the Perl version (refer to the uninstall chapter for details). Read the Changes file!I strongly suggest you should read at least the latest change log entry of the Changes file, resp. all entries of the versions you probably skipped in case of an update. It contains important release notes, e.g. about compatibility issues, and all relevant changes from release to release.
Note:
It's possible to use several dvd::rip versions in parallel on your system, but you can install only one version using make install into your system directories. Just extract another dvd::rip version you want to use somewhere, enter the created directory (dvdrip-x.xx) and execute perl Makefile.PL && make here (no make install). Add the actual directory to your PATH (export PATH=$PWD:$PATH) and you can start this version with bin/dvdrip from this directory. All files and libraries located in the actual distribution directory will be used. The . in PATH is neccessary, otherwise some dvd::rip helper binaries may be taken from another place. tar xvfz dvdrip-x.xx.tar.gz cd dvdrip-x.xx perl Makefile.PL && make export PATH=$PWD:$PATH bin/dvdrip
If you didn't use a package manager to install dvd::rip and you want to uninstall it, follow these instructions. This is necessary, if you accidentally mixed several versions on your system, which may result in a broken dvd::rip at all. In this case best thing is to remove all instances and to do a clean installation afterwards. dvd::rip mainly consists of a bunch of Perl modules which reside in the Perl library directory of your Perl interpreter. Easiest way to find this directory is to use the locate program. Then a few executables belong to dvd::rip, which also can be found using locate. This is an example session of how this works: % locate DVDRip.pm /usr/local/share/perl/5.8.0/Video/DVDRip.pm % rm -r /usr/local/share/perl/5.8.0/Video/DVDRip* % locate dvdrip /usr/bin/dvdrip /usr/bin/dvdrip-exec /usr/bin/dvdrip-master ... % rm /usr/bin/dvdrip* In words: find a Perl library directory called Video with DVDRip.pm in it. Remove the DVDRip.pm file and the subdirectory called DVDRip. Then find the location of the binaries and remove them - see the list above. If you find multiple instances this way, remove them all.
You can download a static HTML version of this documentation: http://www.exit1.org/dvdrip/dist/dvdrip-doc-html-0.98.11.tar.bz2A PDF version is also available (generated using the excellent tool htmldoc): http://www.exit1.org/dvdrip/dist/dvdrip-doc-0.98.11.pdf.bz2 |