[vdr] Adding ATAPI support for dvdrecord to vdrconvert

C.Y.M syphir at syphir.sytes.net
Wed Apr 6 22:59:38 CEST 2005


When I look at the code in burn.sh (from cvs of vdrconvert), I have noticed that
a parameter is missing to support ATAPI writers with dvdrecord.  The attached
patch seems to work.  Also, a change to vdrconvert.env is required if this patch
is applied. For example:

#MEDIAWRITER="/dev/hdc:0,0,0"
MEDIAWRITER="/dev/hdc:ATAPI:0,0,0"

Regards,
C.Y.M.

-------------- next part --------------
--- vdrconvert/bin/burn.sh.orig	2004-12-29 04:35:38.000000000 -0800
+++ vdrconvert/bin/burn.sh	2005-02-12 06:16:11.000000000 -0800
@@ -49,7 +49,8 @@
 # Devices
 [ -z "$MEDIAWRITER" ]          && MEDIAWRITER="/dev/scd0:0,0,0"
 WRITER=`echo $MEDIAWRITER|cut -f 1 -d ':'`
-WRITER_ADR=`echo $MEDIAWRITER|cut -f 2 -d ':'`
+WRITER_DEV=`echo $MEDIAWRITER|cut -f 2 -d ':'`
+WRITER_ADR=`echo $MEDIAWRITER|cut -f 3 -d ':'`
 # Options
 [ -z "$DVDPLUS_RECORD_OPTS" ]  && DVDPLUS_RECORD_OPTS="-Z"
 [ -z "$DVDMIN_RECORD_OPTS" ]   && DVDMIN_RECORD_OPTS="-dao driveropts=burnfree"
@@ -174,7 +175,7 @@
                      $SVDRPSEND MESG $MEDIA_MSG_START_WRITE_IMAGE >> /dev/null 2>&1
 	             case $DVDTYPE in
 		            "DVD-RW"|"DVD-R")
-          		            $DVDMIN_RECORDCMD $DVDMIN_RECORD_OPTS dev=$WRITER_ADR $DATA
+          		            $DVDMIN_RECORDCMD $DVDMIN_RECORD_OPTS dev=$WRITER_DEV:$WRITER_ADR $DATA
 			            ;;
 		            *)
           		            $DVD_RECORDCMD $DVDPLUS_RECORD_OPTS "$WRITER=$DATA"


More information about the vdr mailing list