From: Carl Baldwin Date: Sat, 13 Feb 2010 05:09:53 +0000 (-0700) Subject: Merge commit 'origin' X-Git-Tag: 2_3~2 X-Git-Url: http://git.pippins.net/embedvideo/.git/static/%24link?a=commitdiff_plain;h=1142be4419e004fa0b0aaccd0048529b6f4f0906;hp=a6cb675fdbc9300cf5474b8153feb0bf84722d86;p=rip_dvd%2F.git Merge commit 'origin' --- diff --git a/README b/README index 93c6860..235eb88 100644 --- a/README +++ b/README @@ -6,8 +6,16 @@ The following packages need to be installed on your system: Package Dependencies (apt-get install these for example): lsdvd dvdauthor gddrescue dvdbackup tovid mencoder mplayer genisoimage libdvdcss2 +NOTE: In Ubuntu, depending on your version, replace libdvdcss2 with what you find on this page. + https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs + +NOTE: After apt-get install on Ubuntu you may need to run this: + sudo /usr/share/doc/libdvdread4/install-css.sh + Specific Executable (program) Dependencies (must be found in $PATH): -volname makexml lsdvd dvdauthor gddrescue dvdbackup mencoder mplayer mkisofs +volname makexml lsdvd dvdauthor ddrescue dvdbackup mencoder mplayer mkisofs + +NOTE: The script puts /usr/share/tovid on your path which should contain makexml Optional Dependencies: lookup imdb info/posters for mythvideo: http://www.mythtv.org/wiki/Fill_mythvideo_metadata.pl diff --git a/rip_dvd b/rip_dvd index 4b32238..04a32ef 100755 --- a/rip_dvd +++ b/rip_dvd @@ -15,15 +15,8 @@ # Known Issues/Limitations: # - Mirror mode is always done in ISO mode # -# Package Dependencies (apt-get install these for example): -# lsdvd dvdauthor gddrescue dvdbackup tovid mencoder mplayer genisoimage libdvdcss2 -# -# Specific Executable (program) Dependencies (must be found in $PATH): -# volname makexml lsdvd dvdauthor gddrescue dvdbackup mencoder mplayer mkisofs HandBrakeCLI -# -# Optional Dependencies: -# lookup imdb info/posters for mythvideo: http://www.mythtv.org/wiki/Fill_mythvideo_metadata.pl -# +# See the README file for information about the dependencies +# this script has. ############################################################################################## # Global Variables diff --git a/rip_dvd.conf.dist b/rip_dvd.conf.dist index 42504ac..53949a3 100644 --- a/rip_dvd.conf.dist +++ b/rip_dvd.conf.dist @@ -6,8 +6,9 @@ # NOTE: You can override ANY of the global variables listed in the top of rip_dvd here ########################################################################################### -# specify the path to the rip_dvd script -ripcmd="/myth/video/bin/rip_dvd" +# specify the path to the rip_dvd script (no need to do this if rip_dvd is in +# the same directory as the rip_dvd.wrap script (which is likely). +# ripcmd="/myth/video/bin/rip_dvd" # Specify the device path to the DVD drive dev=/dev/dvd diff --git a/rip_dvd.wrap b/rip_dvd.wrap index 128581d..76fcb3c 100755 --- a/rip_dvd.wrap +++ b/rip_dvd.wrap @@ -21,6 +21,18 @@ if [ -z "$dvdtype" ]; then usage fi +mydir=$(cd $(dirname $0) && pwd) +if [ -z "$ripcmd" ] +then + if [ -x "$mydir/rip_dvd" ] + then + ripcmd="$mydir/rip_dvd" + else + echo >&2 "Cannot find your rip_dvd command!" + exit 1 + fi +fi + ############################################################################## # Local Machine Settings: # Sources both the "default" conf file tracked by GIT (rip_dvd.conf.dist)